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

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

Issue 2610853005: Modify Copy{Sub}TextureCHROMIUM entry point to add level argument (Closed)
Patch Set: fix chromeos 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 cd0597a630fbc83d0f56d18d8cca82badeb58d4c..b0d30a41bee30fa64dadfb63de7b3cce0287ea46 100644
--- a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
+++ b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
@@ -253,8 +253,8 @@ bool Canvas2DLayerBridge::prepareIOSurfaceMailboxFromImage(
GLuint imageTexture =
skia::GrBackendObjectToGrGLTextureInfo(image->getTextureHandle(true))
->fID;
- gl->CopySubTextureCHROMIUM(imageTexture, imageInfo->m_textureId, 0, 0, 0, 0,
- m_size.width(), m_size.height(), GL_FALSE,
+ gl->CopySubTextureCHROMIUM(imageTexture, 0, 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();

Powered by Google App Engine
This is Rietveld 408576698