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

Unified Diff: third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp

Issue 2610853005: Modify Copy{Sub}TextureCHROMIUM entry point to add level argument (Closed)
Patch Set: autogen code 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/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 2b4a2a4fa1f17f807c6c71de8d1ee1730ac9a2aa..5a506cb83bbb7cc1456dc6d90b70dd47d12377ae 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
@@ -356,8 +356,8 @@ bool DrawingBuffer::finishPrepareTextureMailboxGpu(
// in the mailbox, and copy backbuffer's contents there.
colorBufferForMailbox = createOrRecycleColorBuffer();
m_gl->CopySubTextureCHROMIUM(
- m_backColorBuffer->textureId, colorBufferForMailbox->textureId, 0, 0, 0,
- 0, m_size.width(), m_size.height(), GL_FALSE, GL_FALSE, GL_FALSE);
+ m_backColorBuffer->textureId, 0, colorBufferForMailbox->textureId, 0, 0,
+ 0, 0, 0, m_size.width(), m_size.height(), GL_FALSE, GL_FALSE, GL_FALSE);
}
// Put colorBufferForMailbox into its mailbox, and populate its
@@ -730,8 +730,8 @@ bool DrawingBuffer::copyToPlatformTexture(gpu::gles2::GLES2Interface* gl,
unpackPremultiplyAlphaNeeded = GL_TRUE;
gl->CopySubTextureCHROMIUM(
- sourceTexture, texture, destTextureOffset.x(), destTextureOffset.y(),
- sourceSubRectangle.x(), sourceSubRectangle.y(),
+ sourceTexture, 0, texture, 0, destTextureOffset.x(),
+ destTextureOffset.y(), sourceSubRectangle.x(), sourceSubRectangle.y(),
sourceSubRectangle.width(), sourceSubRectangle.height(), flipY,
unpackPremultiplyAlphaNeeded, unpackUnpremultiplyAlphaNeeded);
« gpu/GLES2/gl2extchromium.h ('K') | « third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698