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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp

Issue 2391883004: Implement WebGL's commit with software compositing (Closed)
Patch Set: rebase Created 4 years, 2 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/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 7d64f6bc8f80548d0bb6392800e0d6a5c0591839..5781d3626a7e08e500eb2153a93f39e23a452b33 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
@@ -704,7 +704,8 @@ void WebGLRenderingContextBase::commit(ExceptionState& exceptionState) {
// TODO(crbug.com/646864): Make commit() work correctly with
// { preserveDrawingBuffer : true }.
getOffscreenCanvas()->getOrCreateFrameDispatcher()->dispatchFrame(
- std::move(drawingBuffer()->transferToStaticBitmapImage()));
+ std::move(drawingBuffer()->transferToStaticBitmapImage()),
+ drawingBuffer()->contextProvider()->isSoftwareRendering());
}
PassRefPtr<Image> WebGLRenderingContextBase::getImage(

Powered by Google App Engine
This is Rietveld 408576698