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

Unified Diff: Source/core/html/canvas/WebGLRenderingContextBase.cpp

Issue 556303002: Adjust DrawingBuffer's visibility tracking behavior with lost context (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Always delete mailboxes. Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/platform/graphics/gpu/DrawingBuffer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/WebGLRenderingContextBase.cpp
diff --git a/Source/core/html/canvas/WebGLRenderingContextBase.cpp b/Source/core/html/canvas/WebGLRenderingContextBase.cpp
index 7bb3273c9b1627879cf1510da79612912f70985e..c8fe912912e8405d0acc7f35846e9d61329f626e 100644
--- a/Source/core/html/canvas/WebGLRenderingContextBase.cpp
+++ b/Source/core/html/canvas/WebGLRenderingContextBase.cpp
@@ -884,7 +884,7 @@ void WebGLRenderingContextBase::markLayerComposited()
void WebGLRenderingContextBase::setIsHidden(bool hidden)
{
- if (!isContextLost())
+ if (drawingBuffer())
drawingBuffer()->setIsHidden(hidden);
}
« no previous file with comments | « no previous file | Source/platform/graphics/gpu/DrawingBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698