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

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

Issue 2738573002: Streamline the presentation of ImageBitmapRenderingContext (Closed)
Patch Set: Fixed expectations Created 3 years, 8 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 83c4ec96c18e21ba51863860a677f1e340238eab..17d7da40dd4082d18822f09b3911b252ea55ab49 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
@@ -168,6 +168,11 @@ void CanvasRenderingContext::didDraw(const SkIRect& dirtyRect) {
needsFinalizeFrame();
}
+void CanvasRenderingContext::didDraw() {
+ canvas()->didDraw();
+ needsFinalizeFrame();
+}
+
void CanvasRenderingContext::needsFinalizeFrame() {
if (!m_finalizeFrameScheduled) {
m_finalizeFrameScheduled = true;
@@ -178,7 +183,6 @@ void CanvasRenderingContext::needsFinalizeFrame() {
void CanvasRenderingContext::didProcessTask() {
Platform::current()->currentThread()->removeTaskObserver(this);
m_finalizeFrameScheduled = false;
-
// The end of a script task that drew content to the canvas is the point
// at which the current frame may be considered complete.
if (canvas())

Powered by Google App Engine
This is Rietveld 408576698