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

Unified Diff: cc/layers/layer.h

Issue 16023024: Add CompositingReasons to compositor layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch for landing Created 7 years, 7 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/compositing_reasons.h ('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
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index ee8cd027ceeb77c7a4940a01b65398ac718ca548..20d13ff95f36788c55d0fcca30181642bbc1f115 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -15,6 +15,7 @@
#include "cc/base/cc_export.h"
#include "cc/base/region.h"
#include "cc/base/scoped_ptr_vector.h"
+#include "cc/layers/compositing_reasons.h"
#include "cc/layers/draw_properties.h"
#include "cc/layers/layer_lists.h"
#include "cc/layers/layer_position_constraint.h"
@@ -284,6 +285,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
virtual void ReduceMemoryUsage() {}
void SetDebugName(const std::string& debug_name);
+ void SetCompositingReasons(CompositingReasons reasons);
virtual void PushPropertiesTo(LayerImpl* layer);
@@ -451,6 +453,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
gfx::PointF anchor_point_;
SkColor background_color_;
std::string debug_name_;
+ CompositingReasons compositing_reasons_;
float opacity_;
skia::RefPtr<SkImageFilter> filter_;
WebKit::WebFilterOperations filters_;
« no previous file with comments | « cc/layers/compositing_reasons.h ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698