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 { |