| 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 7be1e65ab517dccbc46685103cf448c47bca204a..25aa782cb69998cc33fb108b960782f6bedc045a 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
|
| @@ -683,10 +683,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,
|
| @@ -700,9 +698,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
|
| @@ -741,7 +737,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);
|
|
|