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

Unified Diff: Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHost.cpp

Issue 10658010: Revert 121000 - [chromium] LayerRendererChromium is not getting visibility messages in single threa… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 6 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 | « Source/WebCore/ChangeLog ('k') | Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHost.cpp
===================================================================
--- Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHost.cpp (revision 121110)
+++ Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHost.cpp (working copy)
@@ -296,28 +296,7 @@
return false;
}
m_triggerIdlePaints = false;
-
- // If the texture manager's limit is set to zero (e.g. invisible tab)
- // we won't be able to paint. We temporarily set it to a non-zero value
- // and bring it back down to zero after we composite and read-back.
- bool needsAllocationReset = false;
- bool savedMemoryAllocationsIsForDisplay = false;
- if (!m_memoryAllocationBytes) {
- needsAllocationReset = true;
- savedMemoryAllocationsIsForDisplay = m_memoryAllocationIsForDisplay;
-
- m_memoryAllocationBytes = TextureManager::highLimitBytes(viewportSize());
- m_memoryAllocationIsForDisplay = m_visible;
- }
-
bool ret = m_proxy->compositeAndReadback(pixels, rect);
-
- // Set texture manager's limit back to zero.
- if (needsAllocationReset) {
- setContentsMemoryAllocationLimitBytes(0);
- m_memoryAllocationIsForDisplay = savedMemoryAllocationsIsForDisplay;
- }
-
m_triggerIdlePaints = true;
return ret;
}
@@ -420,9 +399,9 @@
setContentsMemoryAllocationLimitBytes(0);
else
setContentsMemoryAllocationLimitBytes(m_contentsTextureManager->preferredMemoryLimitBytes());
- } else {
- setNeedsForcedCommit();
}
+
+ setNeedsForcedCommit();
}
void CCLayerTreeHost::setContentsMemoryAllocationLimitBytes(size_t bytes)
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698