| Index: third_party/WebKit/Source/platform/graphics/AcceleratedStaticBitmapImage.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/AcceleratedStaticBitmapImage.cpp b/third_party/WebKit/Source/platform/graphics/AcceleratedStaticBitmapImage.cpp
|
| index 3ab8fd713663034a541b2fce0a74d65c1d4cb3ae..993c37a367cfb2c7c05600e471ccc97b8956a4a4 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/AcceleratedStaticBitmapImage.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/AcceleratedStaticBitmapImage.cpp
|
| @@ -66,10 +66,11 @@ void AcceleratedStaticBitmapImage::updateSyncToken(gpu::SyncToken syncToken) {
|
|
|
| void AcceleratedStaticBitmapImage::copyToTexture(
|
| WebGraphicsContext3DProvider* destProvider,
|
| + GLenum destTarget,
|
| GLuint destTextureId,
|
| - GLenum internalFormat,
|
| - GLenum destType,
|
| - bool flipY) {
|
| + bool flipY,
|
| + const IntPoint& destPoint,
|
| + const IntRect& sourceSubRectangle) {
|
| checkThread();
|
| if (!isValid())
|
| return;
|
| @@ -82,8 +83,11 @@ void AcceleratedStaticBitmapImage::copyToTexture(
|
| destGL->WaitSyncTokenCHROMIUM(m_textureHolder->syncToken().GetData());
|
| GLuint sourceTextureId = destGL->CreateAndConsumeTextureCHROMIUM(
|
| GL_TEXTURE_2D, m_textureHolder->mailbox().name);
|
| - destGL->CopyTextureCHROMIUM(sourceTextureId, 0, GL_TEXTURE_2D, destTextureId,
|
| - 0, internalFormat, destType, flipY, false, false);
|
| + destGL->CopySubTextureCHROMIUM(
|
| + sourceTextureId, 0, destTarget, destTextureId, 0, destPoint.x(),
|
| + destPoint.y(), sourceSubRectangle.x(), sourceSubRectangle.y(),
|
| + sourceSubRectangle.width(), sourceSubRectangle.height(), flipY, false,
|
| + false);
|
| // This drops the |destGL| context's reference on our |m_mailbox|, but it's
|
| // still held alive by our SkImage.
|
| destGL->DeleteTextures(1, &sourceTextureId);
|
|
|