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

Unified Diff: cc/layer_tree_impl.h

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_host_impl.cc ('k') | cc/layer_tree_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_impl.h
diff --git a/cc/layer_tree_impl.h b/cc/layer_tree_impl.h
index 092027e7ec213287c16cd919e14558db2a5e914e..729c3d452816f9baab5e17e851f0e74394e385b8 100644
--- a/cc/layer_tree_impl.h
+++ b/cc/layer_tree_impl.h
@@ -179,6 +179,12 @@ class CC_EXPORT LayerTreeImpl {
void SetContentsTexturesPurged();
void ResetContentsTexturesPurged();
+ // Set on the active tree when the viewport size recently changed
+ // and the active tree's size is now out of date.
+ bool ViewportSizeInvalid() const;
+ void SetViewportSizeInvalid();
+ void ResetViewportSizeInvalid();
+
// Useful for debug assertions, probably shouldn't be used for anything else.
Proxy* proxy() const;
@@ -211,6 +217,7 @@ protected:
LayerList render_surface_layer_list_;
bool contents_textures_purged_;
+ bool viewport_size_invalid_;
bool needs_update_draw_properties_;
// In impl-side painting mode, this is true when the tree may contain
« no previous file with comments | « cc/layer_tree_host_impl.cc ('k') | cc/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698