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

Unified Diff: third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp

Issue 2778483002: Synchronize commits at end of JS task (Closed)
Patch Set: remove m_overdrawframe Created 3 years, 9 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/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp
diff --git a/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp
index a522c1d54fc4b7f6ca071fda2ca640612bd8cc22..ea92caf52f9a41552f7da1101b635c5b1d4ad5c2 100644
--- a/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp
+++ b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp
@@ -105,6 +105,11 @@ void OffscreenCanvasRenderingContext2D::reset() {
BaseRenderingContext2D::reset();
}
+void OffscreenCanvasRenderingContext2D::finalizeFrame() {
+ DCHECK(offscreenCanvas());
+ offscreenCanvas()->doCommitAtEndOfTask();
+}
+
ColorBehavior OffscreenCanvasRenderingContext2D::drawImageColorBehavior()
const {
return CanvasRenderingContext::colorBehaviorForMediaDrawnToCanvas();

Powered by Google App Engine
This is Rietveld 408576698