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

Unified Diff: cc/thread_proxy.cc

Issue 12212156: cc: Only allow trees created at the current viewport size to draw. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix to contents purged style approach Created 7 years, 10 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
« cc/layer_tree_host.cc ('K') | « cc/layer_tree_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/thread_proxy.cc
diff --git a/cc/thread_proxy.cc b/cc/thread_proxy.cc
index fe92817ea58a659061e98380f4953a1c5dd5043c..9e01ae23639a8a363726d374ab28cc7679aac4f6 100644
--- a/cc/thread_proxy.cc
+++ b/cc/thread_proxy.cc
@@ -1176,9 +1176,10 @@ void ThreadProxy::renewTreePriority()
if (m_smoothnessTakesPriorityExpirationTime > base::TimeTicks::Now())
priority = SMOOTHNESS_TAKES_PRIORITY;
- // New content always takes priority when we have an active tree with
- // evicted resources.
- if (m_layerTreeHostImpl->activeTree()->ContentsTexturesPurged())
+ // New content always takes priority when we the active tree has
enne (OOO) 2013/02/13 22:41:53 s/we //
+ // evicted resources or invalid viewport size.
enne (OOO) 2013/02/13 22:41:53 s/or/or there is an invalid viewport size/
+ if (m_layerTreeHostImpl->activeTree()->ContentsTexturesPurged() ||
+ m_layerTreeHostImpl->activeTree()->ViewportSizeInvalid())
priority = NEW_CONTENT_TAKES_PRIORITY;
m_layerTreeHostImpl->setTreePriority(priority);
« cc/layer_tree_host.cc ('K') | « cc/layer_tree_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698