| 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 96b08881b9914554e5263eda267f112f451c59c1..fec030f52e9f7c1751cc52fd87ee288e0011bb30 100644
|
| --- a/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp
|
| +++ b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp
|
| @@ -44,6 +44,16 @@ DEFINE_TRACE(OffscreenCanvasRenderingContext2D)
|
| BaseRenderingContext2D::trace(visitor);
|
| }
|
|
|
| +void OffscreenCanvasRenderingContext2D::commit(ExecutionContext* executionContext)
|
| +{
|
| + if (executionContext->isWorkerGlobalScope()) {
|
| + // TODO(xlai): implement commit() on worker thread; currently, do
|
| + // nothing for worker thread. See crbug.com/563858.
|
| + return;
|
| + }
|
| + getOffscreenCanvas()->getOrCreateFrameDispatcher()->dispatchFrame();
|
| +}
|
| +
|
| // BaseRenderingContext2D implementation
|
| bool OffscreenCanvasRenderingContext2D::originClean() const
|
| {
|
|
|