Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp

Issue 2639973002: Add target argument to Copy{Sub}TextureCHROMIUM entry point (Closed)
Patch Set: use dest_target instead of target Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 493a379ba87340d99138418c06cc12e8e5a1ae15..fdd7148c33ab29f8861c9ce4b49cb6db24adf40d 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
@@ -259,12 +259,12 @@ bool ImageBuffer::copyToPlatformTexture(SnapshotReason reason,
// semantics are reversed.
// It is expected that callers of this method have already allocated
// the platform texture with the appropriate size.
- gl->CopySubTextureCHROMIUM(sourceTexture, 0, texture, 0, destPoint.x(),
- destPoint.y(), sourceSubRectangle.x(),
- sourceSubRectangle.y(), sourceSubRectangle.width(),
- sourceSubRectangle.height(),
- flipY ? GL_FALSE : GL_TRUE, GL_FALSE,
- premultiplyAlpha ? GL_FALSE : GL_TRUE);
+ gl->CopySubTextureCHROMIUM(
+ sourceTexture, 0, GL_TEXTURE_2D, texture, 0, destPoint.x(), destPoint.y(),
+ sourceSubRectangle.x(), sourceSubRectangle.y(),
+ sourceSubRectangle.width(), sourceSubRectangle.height(),
+ flipY ? GL_FALSE : GL_TRUE, GL_FALSE,
+ premultiplyAlpha ? GL_FALSE : GL_TRUE);
gl->DeleteTextures(1, &sourceTexture);

Powered by Google App Engine
This is Rietveld 408576698