Chromium Code Reviews| 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 839a8687eb16ad21f15f55e5e2aa61a5422d58a0..f5c30299565b19c3bcb90b6d73856c6ce1779d2b 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(563858/xlai): implement commit() on worker thread; currently, do |
|
danakj
2016/09/02 21:51:00
Sorry it should be
TODO(xlai): Stuff to do etc, s
xlai (Olivia)
2016/09/02 23:41:28
Done.
|
| + // nothing for worker thread. |
| + return; |
| + } |
| + getOffscreenCanvas()->getOrCreateFrameDispatcher()->dispatchFrame(); |
| +} |
| + |
| // BaseRenderingContext2D implementation |
| bool OffscreenCanvasRenderingContext2D::originClean() const |
| { |