Chromium Code Reviews| Index: cc/layers/layer_impl.h |
| diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h |
| index f412fdbae66138c26bd5147be5b49535ded7fa9e..160ebfa1ebe68cfe32f58ca5092bfeba31d9e4ba 100644 |
| --- a/cc/layers/layer_impl.h |
| +++ b/cc/layers/layer_impl.h |
| @@ -440,6 +440,9 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver, |
| const gfx::Transform& transform() const { return transform_; } |
| bool TransformIsAnimating() const; |
| bool TransformIsAnimatingOnImplOnly() const; |
| + void SetTransformAndInvertibility(const gfx::Transform& transform, |
| + bool transform_is_invertible); |
| + bool transform_is_invertible() const { return transform_is_invertible_; } |
| // Note this rect is in layer space (not content space). |
| void SetUpdateRect(const gfx::RectF& update_rect); |
| @@ -598,6 +601,9 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver, |
| bool hide_layer_and_subtree_ : 1; |
| bool force_render_surface_ : 1; |
| + // Prevent calculating transform_'s invertibility too frequently. |
|
ajuma
2014/03/28 18:49:07
"Cache transform_'s invertibility to avoid needing
avallee
2014/04/15 18:53:25
Done.
|
| + bool transform_is_invertible_ : 1; |
| + |
| // Set for the layer that other layers are fixed to. |
| bool is_container_for_fixed_position_layers_ : 1; |
| bool is_3d_sorted_ : 1; |