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

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: Fix test comment for cases 2-3. Created 6 years, 8 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/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.h
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index 9af9eb5aa590ce200d403272baa45ee9293e8b7a..d6d20a6509e4422b58187bafe79c3b60ac27ad1f 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -448,6 +448,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);
@@ -607,6 +610,9 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
bool hide_layer_and_subtree_ : 1;
bool force_render_surface_ : 1;
+ // Cache transform_'s invertibility.
+ 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698