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

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 nits and rebase to 182333 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
« no previous file with comments | « 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 45148a33d257ee5cf0c73e7ebf4fd422b56bb44d..7e57fa4e62c7ffe4938e99bd527e38a346ed828c 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 the active tree has
+ // evicted resources 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);
« no previous file with comments | « cc/layer_tree_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698