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

Unified Diff: third_party/WebKit/Source/platform/graphics/AcceleratedStaticBitmapImage.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/AcceleratedStaticBitmapImage.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/AcceleratedStaticBitmapImage.cpp b/third_party/WebKit/Source/platform/graphics/AcceleratedStaticBitmapImage.cpp
index cd6c85f1648d54abeb2481316c36eb081deb55f3..2b0a18d95d9cfae6d80ff596387f16b6f5e858fe 100644
--- a/third_party/WebKit/Source/platform/graphics/AcceleratedStaticBitmapImage.cpp
+++ b/third_party/WebKit/Source/platform/graphics/AcceleratedStaticBitmapImage.cpp
@@ -82,8 +82,8 @@ void AcceleratedStaticBitmapImage::copyToTexture(
destGL->WaitSyncTokenCHROMIUM(m_textureHolder->syncToken().GetData());
GLuint sourceTextureId = destGL->CreateAndConsumeTextureCHROMIUM(
GL_TEXTURE_2D, m_textureHolder->mailbox().name);
- destGL->CopyTextureCHROMIUM(sourceTextureId, destTextureId, internalFormat,
- destType, flipY, false, false);
+ destGL->CopyTextureCHROMIUM(sourceTextureId, 0, destTextureId, 0,
+ internalFormat, destType, flipY, false, false);
// This drops the |destGL| context's reference on our |m_mailbox|, but it's
// still held alive by our SkImage.
destGL->DeleteTextures(1, &sourceTextureId);
« no previous file with comments | « media/renderers/skcanvas_video_renderer.cc ('k') | third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698