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

Unified Diff: cc/layers/layer_impl.h

Issue 217313003: Stop displaying layers with non-invertible transforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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 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;
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | cc/layers/layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698