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

Unified Diff: third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp

Issue 2699713005: Fix missing finalizeFrame barriers in WebGL animations (Closed)
Patch Set: Comments + readability improvements Created 3 years, 10 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
Index: third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
index ce4019c173a0769176bb9d07578c481753834b77..5db6d549ebb8dce8372800b6678c7c54e51b9c49 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
@@ -160,12 +160,11 @@ void CanvasRenderingContext::didProcessTask() {
Platform::current()->currentThread()->removeTaskObserver(this);
m_finalizeFrameScheduled = false;
- if (!canvas())
- return;
-
// The end of a script task that drew content to the canvas is the point
// at which the current frame may be considered complete.
- canvas()->finalizeFrame();
+ if (canvas())
+ canvas()->finalizeFrame();
+ finalizeFrame();
}
CanvasRenderingContext::ContextType CanvasRenderingContext::contextTypeFromId(

Powered by Google App Engine
This is Rietveld 408576698