| Index: third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
|
| index 274dd96676954690acf2532483fcc007b2855bf4..77096b9ad2678801122534b0a49ad4ff34c7baf0 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
|
| @@ -684,10 +684,8 @@ bool DrawingBuffer::initialize(const IntSize& size, bool useMultisampling) {
|
| }
|
|
|
| bool DrawingBuffer::copyToPlatformTexture(gpu::gles2::GLES2Interface* gl,
|
| + GLenum textureTarget,
|
| GLuint texture,
|
| - GLenum internalFormat,
|
| - GLenum destType,
|
| - GLint level,
|
| bool premultiplyAlpha,
|
| bool flipY,
|
| const IntPoint& destTextureOffset,
|
| @@ -701,9 +699,7 @@ bool DrawingBuffer::copyToPlatformTexture(gpu::gles2::GLES2Interface* gl,
|
| m_gl->Flush();
|
| }
|
|
|
| - // Assume that the destination target is GL_TEXTURE_2D.
|
| - if (!Extensions3DUtil::canUseCopyTextureCHROMIUM(
|
| - GL_TEXTURE_2D, internalFormat, destType, level))
|
| + if (!Extensions3DUtil::canUseCopyTextureCHROMIUM(textureTarget))
|
| return false;
|
|
|
| // Contexts may be in a different share group. We must transfer the texture
|
| @@ -742,7 +738,7 @@ bool DrawingBuffer::copyToPlatformTexture(gpu::gles2::GLES2Interface* gl,
|
| unpackPremultiplyAlphaNeeded = GL_TRUE;
|
|
|
| gl->CopySubTextureCHROMIUM(
|
| - sourceTexture, 0, GL_TEXTURE_2D, texture, 0, destTextureOffset.x(),
|
| + sourceTexture, 0, textureTarget, texture, 0, destTextureOffset.x(),
|
| destTextureOffset.y(), sourceSubRectangle.x(), sourceSubRectangle.y(),
|
| sourceSubRectangle.width(), sourceSubRectangle.height(), flipY,
|
| unpackPremultiplyAlphaNeeded, unpackUnpremultiplyAlphaNeeded);
|
|
|