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

Unified Diff: cc/layers/layer.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
« no previous file with comments | « no previous file | cc/layers/layer.cc » ('j') | cc/layers/layer_impl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 312ae9756e220e8d0f378c9f704cd064fd17eda1..1db9c475f0d1d2947acd4c7b8b883dce1056e323 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -180,6 +180,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
void SetTransform(const gfx::Transform& transform);
const gfx::Transform& transform() const { return transform_; }
bool TransformIsAnimating() const;
+ bool transform_is_invertible() const { return transform_is_invertible_; }
void SetScrollParent(Layer* parent);
@@ -586,6 +587,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
bool draw_checkerboard_for_missing_tiles_ : 1;
bool force_render_surface_ : 1;
bool is_3d_sorted_ : 1;
+ bool transform_is_invertible_ : 1;
Region non_fast_scrollable_region_;
Region touch_event_handler_region_;
gfx::PointF position_;
« no previous file with comments | « no previous file | cc/layers/layer.cc » ('j') | cc/layers/layer_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698