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

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

Issue 197213014: Add an explicit flush after copyTextureCHROMIUM() to make the WebGL layer contents updated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/gpu/DrawingBuffer.cpp
diff --git a/Source/platform/graphics/gpu/DrawingBuffer.cpp b/Source/platform/graphics/gpu/DrawingBuffer.cpp
index 8b3bd008303b195f7fdd492ce4be180db5346f18..6a191d70bd37dd27aa76acff3cc53811dc191ef6 100644
--- a/Source/platform/graphics/gpu/DrawingBuffer.cpp
+++ b/Source/platform/graphics/gpu/DrawingBuffer.cpp
@@ -389,6 +389,7 @@ void DrawingBuffer::paintCompositedResultsToCanvas(ImageBuffer* imageBuffer)
if (tex) {
m_context->copyTextureCHROMIUM(GL_TEXTURE_2D, m_frontColorBuffer,
tex, 0, GL_RGBA, GL_UNSIGNED_BYTE);
+ m_context->flush();
Ken Russell (switch to Gerrit) 2014/03/17 19:17:32 Uh oh. If this is really the needed fix then there
no sievers 2014/03/17 19:48:09 We do need to glFlush() whenever we need the chang
Ken Russell (switch to Gerrit) 2014/03/17 21:34:16 My point is that there are other callers of copyTe
vmiura 2014/03/17 21:35:08 Checked if other sites have calls to flush(). Ima
piman 2014/03/18 22:43:40 Right, what matters is not the copyTextureCHROMIUM
return;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698