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

Unified Diff: Source/WebCore/platform/graphics/chromium/TiledLayerChromium.cpp

Issue 10146014: Merge 113677 - [chromium] Viewport is not filled when out of texture memory on mac (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 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
Index: Source/WebCore/platform/graphics/chromium/TiledLayerChromium.cpp
===================================================================
--- Source/WebCore/platform/graphics/chromium/TiledLayerChromium.cpp (revision 114754)
+++ Source/WebCore/platform/graphics/chromium/TiledLayerChromium.cpp (working copy)
@@ -455,10 +455,7 @@
if (!tile->managedTexture()->reserve(m_tiler->tileSize(), m_textureFormat)) {
m_skipsIdlePaint = true;
if (!idle) {
- // If the background covers the viewport, always draw this
- // layer so that checkerboarded tiles will still draw.
- if (!backgroundCoversViewport())
- m_skipsDraw = true;
+ m_skipsDraw = true;
m_tiler->reset();
m_paintRect = IntRect();
m_requestedUpdateTilesRect = IntRect();
@@ -582,7 +579,8 @@
{
if (m_skipsDraw)
return Region();
-
+ if (opaque())
+ return visibleLayerRect();
return m_tiler->opaqueRegionInLayerRect(visibleLayerRect());
}

Powered by Google App Engine
This is Rietveld 408576698