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

Unified Diff: cc/layers/layer_impl.h

Issue 1405993008: compositor-worker: plumb element id and mutable properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed layout test (and logged bug) Created 5 years, 1 month 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 543691fb367dfa15ef837c96f5e0cd84efbe25ad..953f5af0e86d709169e74dc54fd8f8b9620ae627 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -318,6 +318,12 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
bool HasPotentiallyRunningOpacityAnimation() const;
bool OpacityIsAnimatingOnImplOnly() const;
+ void SetElementId(uint64_t element_id);
+ uint64_t element_id() const { return element_id_; }
+
+ void SetMutableProperties(uint32_t properties);
+ uint32_t mutable_properties() const { return mutable_properties_; }
+
void SetBlendMode(SkXfermode::Mode);
SkXfermode::Mode blend_mode() const { return blend_mode_; }
void set_draw_blend_mode(SkXfermode::Mode blend_mode) {
@@ -836,6 +842,8 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
DrawMode current_draw_mode_;
private:
+ uint64_t element_id_;
+ uint32_t mutable_properties_;
// Rect indicating what was repainted/updated during update.
// Note that plugin layers bypass this and leave it empty.
// This is in the layer's space.

Powered by Google App Engine
This is Rietveld 408576698