Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: Source/core/html/canvas/WebGLRenderingContext.cpp

Issue 22417002: Rename ASSERT_NO_EXCEPTION_STATE and IGNORE_EXCEPTION_STATE (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 5576 matching lines...) Expand 10 before | Expand all | Expand 10 after
5587 return m_maxColorAttachments; 5587 return m_maxColorAttachments;
5588 } 5588 }
5589 5589
5590 void WebGLRenderingContext::setBackDrawBuffer(GC3Denum buf) 5590 void WebGLRenderingContext::setBackDrawBuffer(GC3Denum buf)
5591 { 5591 {
5592 m_backDrawBuffer = buf; 5592 m_backDrawBuffer = buf;
5593 } 5593 }
5594 5594
5595 void WebGLRenderingContext::restoreCurrentFramebuffer() 5595 void WebGLRenderingContext::restoreCurrentFramebuffer()
5596 { 5596 {
5597 bindFramebuffer(GraphicsContext3D::FRAMEBUFFER, m_framebufferBinding.get(), IGNORE_EXCEPTION_STATE); 5597 bindFramebuffer(GraphicsContext3D::FRAMEBUFFER, m_framebufferBinding.get(), IGNORE_EXCEPTION);
5598 } 5598 }
5599 5599
5600 void WebGLRenderingContext::restoreCurrentTexture2D() 5600 void WebGLRenderingContext::restoreCurrentTexture2D()
5601 { 5601 {
5602 bindTexture(GraphicsContext3D::TEXTURE_2D, m_textureUnits[m_activeTextureUni t].m_texture2DBinding.get(), IGNORE_EXCEPTION_STATE); 5602 bindTexture(GraphicsContext3D::TEXTURE_2D, m_textureUnits[m_activeTextureUni t].m_texture2DBinding.get(), IGNORE_EXCEPTION);
5603 } 5603 }
5604 5604
5605 void WebGLRenderingContext::multisamplingChanged(bool enabled) 5605 void WebGLRenderingContext::multisamplingChanged(bool enabled)
5606 { 5606 {
5607 if (m_multisamplingAllowed != enabled) { 5607 if (m_multisamplingAllowed != enabled) {
5608 m_multisamplingAllowed = enabled; 5608 m_multisamplingAllowed = enabled;
5609 forceLostContext(WebGLRenderingContext::AutoRecoverSyntheticLostContext) ; 5609 forceLostContext(WebGLRenderingContext::AutoRecoverSyntheticLostContext) ;
5610 } 5610 }
5611 } 5611 }
5612 5612
5613 } // namespace WebCore 5613 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | Source/core/html/parser/HTMLTreeBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698