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

Unified Diff: cc/trees/layer_tree_host.h

Issue 13939005: cc: Add strict layer property change checking and handle bounds changes during paint. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/CHECK/DCHECK/ Created 7 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
« no previous file with comments | « cc/layers/tiled_layer_unittest.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host.h
diff --git a/cc/trees/layer_tree_host.h b/cc/trees/layer_tree_host.h
index bd2298cc0a2c1328b26b447b0af2fb374256755e..425bd50099e21c06374c9db328c4942f791d30b4 100644
--- a/cc/trees/layer_tree_host.h
+++ b/cc/trees/layer_tree_host.h
@@ -245,6 +245,8 @@ class CC_EXPORT LayerTreeHost : NON_EXPORTED_BASE(public RateLimiterClient) {
// Obtains a thorough dump of the LayerTreeHost as a value.
scoped_ptr<base::Value> AsValue() const;
+ bool in_paint_layer_contents() const { return in_paint_layer_contents_; }
+
protected:
LayerTreeHost(LayerTreeHostClient* client, const LayerTreeSettings& settings);
bool Initialize(scoped_ptr<Thread> impl_thread);
@@ -313,7 +315,8 @@ class CC_EXPORT LayerTreeHost : NON_EXPORTED_BASE(public RateLimiterClient) {
RateLimiterMap rate_limiters_;
float page_scale_factor_;
- float min_page_scale_factor_, max_page_scale_factor_;
+ float min_page_scale_factor_;
+ float max_page_scale_factor_;
gfx::Transform impl_transform_;
bool trigger_idle_updates_;
@@ -333,6 +336,8 @@ class CC_EXPORT LayerTreeHost : NON_EXPORTED_BASE(public RateLimiterClient) {
};
scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
+ bool in_paint_layer_contents_;
+
DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
};
« no previous file with comments | « cc/layers/tiled_layer_unittest.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698