Chromium Code Reviews| Index: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
| diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
| index 70d9cf301bc3dc51a20b8a18a76ffbd420f4fdeb..f08f4ea5fbf4ad64a497213d0f6c17c26ffb5e29 100644 |
| --- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
| +++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
| @@ -665,7 +665,7 @@ void WebGLRenderingContextBase::commit(ExceptionState& exceptionState) |
| if (!drawingBuffer()) |
| return; |
| // TODO(crbug.com/646864): Make commit() work correctly with { preserveDrawingBuffer : true }. |
| - getOffscreenCanvas()->getOrCreateFrameDispatcher()->dispatchFrame(std::move(drawingBuffer()->transferToStaticBitmapImage())); |
| + getOffscreenCanvas()->getOrCreateFrameDispatcher()->dispatchFrame(std::move(drawingBuffer()->transferToStaticBitmapImage()), this->isAccelerated()); |
|
xlai (Olivia)
2016/09/22 16:12:24
In WebGL, this->isAccelerated() is confirmed to re
|
| } |
| PassRefPtr<Image> WebGLRenderingContextBase::getImage(AccelerationHint hint, SnapshotReason reason) const |