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

Unified Diff: third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.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/Canvas2DLayerBridge.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
index 0efabea5065304afbc0f849a5302d3ac50b8cf40..bb9cfa9e6d32867abdcbf4541e2a9eb8da4377f9 100644
--- a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
+++ b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
@@ -253,12 +253,12 @@ bool Canvas2DLayerBridge::prepareIOSurfaceMailboxFromImage(
GLuint imageTexture =
skia::GrBackendObjectToGrGLTextureInfo(image->getTextureHandle(true))
->fID;
- gl->CopySubTextureCHROMIUM(imageTexture, 0, imageInfo->m_textureId, 0, 0, 0,
- 0, 0, m_size.width(), m_size.height(), GL_FALSE,
- GL_FALSE, GL_FALSE);
+ GLenum textureTarget = GC3D_TEXTURE_RECTANGLE_ARB;
+ gl->CopySubTextureCHROMIUM(
+ imageTexture, 0, textureTarget, imageInfo->m_textureId, 0, 0, 0, 0, 0,
+ m_size.width(), m_size.height(), GL_FALSE, GL_FALSE, GL_FALSE);
MailboxInfo& info = m_mailboxes.first();
- uint32_t textureTarget = GC3D_TEXTURE_RECTANGLE_ARB;
gpu::Mailbox mailbox;
gl->GenMailboxCHROMIUM(mailbox.name);
gl->ProduceTextureDirectCHROMIUM(imageInfo->m_textureId, textureTarget,

Powered by Google App Engine
This is Rietveld 408576698