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

Unified Diff: cc/layers/layer.h

Issue 13975019: Merge 194269 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1479/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/layers/contents_scaling_layer.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
===================================================================
--- cc/layers/layer.h (revision 194303)
+++ cc/layers/layer.h (working copy)
@@ -17,6 +17,7 @@
#include "cc/layers/draw_properties.h"
#include "cc/layers/layer_lists.h"
#include "cc/layers/layer_position_constraint.h"
+#include "cc/layers/paint_properties.h"
#include "cc/layers/render_surface.h"
#include "cc/trees/occlusion_tracker.h"
#include "skia/ext/refptr.h"
@@ -268,6 +269,7 @@
// These methods typically need to be overwritten by derived classes.
virtual bool DrawsContent() const;
+ virtual void SavePaintProperties();
virtual void Update(ResourceUpdateQueue* queue,
const OcclusionTracker* occlusion,
RenderingStats* stats) {}
@@ -370,6 +372,10 @@
RenderingStatsInstrumentation* rendering_stats_instrumentation() const;
+ const PaintProperties& paint_properties() const {
+ return paint_properties_;
+ }
+
protected:
friend class LayerImpl;
friend class TreeSynchronizer;
@@ -379,6 +385,7 @@
void SetNeedsCommit();
void SetNeedsFullTreeSync();
+ bool IsPropertyChangeAllowed() const;
// This flag is set when layer need repainting/updating.
bool needs_display_;
@@ -477,6 +484,8 @@
DrawProperties<Layer, RenderSurface> draw_properties_;
+ PaintProperties paint_properties_;
+
DISALLOW_COPY_AND_ASSIGN(Layer);
};
« no previous file with comments | « cc/layers/contents_scaling_layer.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698