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

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: 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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f5dca1ded28146612b52ebfe8bc9c2b0e7fbcba5..713c351f8cd66290fb73679d89f8dacea603abf7 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);
« no previous file with comments | « 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