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

Unified Diff: WebCore/platform/graphics/chromium/DrawingBufferChromium.cpp

Issue 14588004: Merge https://codereview.chromium.org/14896002/ to M27: Always use a separate front texture on Mac … (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/1453/Source/
Patch Set: Created 7 years, 8 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: WebCore/platform/graphics/chromium/DrawingBufferChromium.cpp
===================================================================
--- WebCore/platform/graphics/chromium/DrawingBufferChromium.cpp (revision 149621)
+++ WebCore/platform/graphics/chromium/DrawingBufferChromium.cpp (working copy)
@@ -97,6 +97,13 @@
// We need a separate front and back textures if ...
m_separateFrontTexture = m_preserveDrawingBuffer == Preserve // ... we have to preserve contents after compositing, which is done with a copy or ...
|| WebKit::Platform::current()->isThreadedCompositingEnabled(); // ... if we're in threaded mode and need to double buffer.
+#if OS(DARWIN)
+ // http://crbug.com/234428 : always use a separate front texture
+ // on Mac OS. Doing this on all GPUs, not just NVIDIA GPUs,
+ // ensures consistent behavior and is much less code.
+ m_separateFrontTexture = true;
+#endif
+
initialize(size);
}
« 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