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

Unified Diff: cc/layers/layer_impl.h

Issue 16023024: Add CompositingReasons to compositor layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: cc/layers/layer_impl.h
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index 64aeccb1bc90a14879f730fcf9762adf573ce60f..0bf84806d136fabf32fd49cad7887cc1a195ba3c 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -16,6 +16,7 @@
#include "cc/base/region.h"
#include "cc/base/scoped_ptr_vector.h"
#include "cc/input/input_handler.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"
@@ -200,6 +201,14 @@ class CC_EXPORT LayerImpl : LayerAnimationValueObserver {
void SetDebugName(const std::string& debug_name) { debug_name_ = debug_name; }
std::string debug_name() const { return debug_name_; }
+ void SetCompositingReasons(CompositingReasons reasons) {
+ compositing_reasons_ = reasons;
+ }
+
+ CompositingReasons compositing_reasons() const {
+ return compositing_reasons_;
+ }
+
bool ShowDebugBorders() const;
// These invalidate the host's render surface layer list. The caller
@@ -515,6 +524,7 @@ class CC_EXPORT LayerImpl : LayerAnimationValueObserver {
// Debug layer name.
std::string debug_name_;
+ CompositingReasons compositing_reasons_;
WebKit::WebFilterOperations filters_;
WebKit::WebFilterOperations background_filters_;
« cc/layers/layer.cc ('K') | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698