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

Unified Diff: cc/layers/layer.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: 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/base/switches.cc ('k') | cc/layers/layer.cc » ('j') | cc/layers/layer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 40909cf0cdb614629fa66cd08a064c36ff1246d1..51380152d34ed0a498b7a652984e320e6a0d0aac 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -268,6 +268,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
// These methods typically need to be overwritten by derived classes.
virtual bool DrawsContent() const;
+ virtual void PrepareToUpdate();
virtual void Update(ResourceUpdateQueue* queue,
const OcclusionTracker* occlusion,
RenderingStats* stats) {}
@@ -379,6 +380,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
void SetNeedsCommit();
void SetNeedsFullTreeSync();
+ bool IsPropertyChangeAllowed() const;
// This flag is set when layer need repainting/updating.
bool needs_display_;
@@ -473,6 +475,9 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
gfx::Transform impl_transform_;
+ // These properties that can change during Update().
+ gfx::Size last_bounds_;
+
WebKit::WebLayerScrollClient* layer_scroll_client_;
DrawProperties<Layer, RenderSurface> draw_properties_;
« no previous file with comments | « cc/base/switches.cc ('k') | cc/layers/layer.cc » ('j') | cc/layers/layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698