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

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

Issue 2320663002: Fix performance regression in WebGL to 2D canvas draws. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f603d1fdf07ffd11519a415438f9903395773640..fa89b61043337bef639bdfac0d77ade1298c2e68 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
@@ -649,7 +649,7 @@ ImageBitmap* WebGLRenderingContextBase::transferToImageBitmapBase()
return ImageBitmap::create(drawingBuffer()->transferToStaticBitmapImage());
}
-PassRefPtr<Image> WebGLRenderingContextBase::getImage(SnapshotReason reason) const
+PassRefPtr<Image> WebGLRenderingContextBase::getImage(AccelerationHint hint, SnapshotReason reason) const
{
if (!drawingBuffer())
return nullptr;
@@ -667,7 +667,7 @@ PassRefPtr<Image> WebGLRenderingContextBase::getImage(SnapshotReason reason) con
NOTREACHED();
return nullptr;
}
- return buffer->newImageSnapshot(PreferAcceleration, reason);
+ return buffer->newImageSnapshot(hint, reason);
}
namespace {
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698