Index: third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp |
index 8a959919052273ddf1112460b0821cd8c9773761..4f51bcd6c6ca4131202f1ec7c2392df9173a784a 100644 |
--- a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp |
@@ -208,7 +208,8 @@ WebLayer* ImageBuffer::platformLayer() const { |
return m_surface->layer(); |
} |
-bool ImageBuffer::copyToPlatformTexture(gpu::gles2::GLES2Interface* gl, |
+bool ImageBuffer::copyToPlatformTexture(SnapshotReason reason, |
+ gpu::gles2::GLES2Interface* gl, |
GLuint texture, |
GLenum internalFormat, |
GLenum destType, |
@@ -224,8 +225,8 @@ bool ImageBuffer::copyToPlatformTexture(gpu::gles2::GLES2Interface* gl, |
if (!isSurfaceValid()) |
return false; |
- sk_sp<const SkImage> textureImage = m_surface->newImageSnapshot( |
- PreferAcceleration, SnapshotReasonCopyToWebGLTexture); |
+ sk_sp<const SkImage> textureImage = |
+ m_surface->newImageSnapshot(PreferAcceleration, reason); |
if (!textureImage) |
return false; |