| 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())
|
|
|