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

Unified Diff: cc/layers/layer.h

Issue 1013463003: Update from https://crrev.com/320931 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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 | « cc/input/input_handler.h ('k') | cc/layers/layer.cc » ('j') | no next file with comments »
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 a82da2466cec06575a495b992a53ac747630109a..e0288c729bb7550c949d8f70344503761c7d390e 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -174,6 +174,10 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
void SetIsContainerForFixedPositionLayers(bool container);
bool IsContainerForFixedPositionLayers() const;
+ gfx::Vector2dF FixedContainerSizeDelta() const {
+ return gfx::Vector2dF();
+ }
+
void SetPositionConstraint(const LayerPositionConstraint& constraint);
const LayerPositionConstraint& position_constraint() const {
return position_constraint_;
@@ -504,6 +508,10 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
const TransformTree& tree) const;
float DrawOpacityFromPropertyTrees(const OpacityTree& tree) const;
+ void set_should_flatten_transform_from_property_tree(bool should_flatten) {
+ should_flatten_transform_from_property_tree_ = should_flatten;
+ }
+
// TODO(vollick): These values are temporary and will be removed as soon as
// render surface determinations are moved out of CDP. They only exist because
// certain logic depends on whether or not a layer would render to a separate
@@ -654,6 +662,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
int opacity_tree_index_;
int clip_tree_index_;
gfx::Vector2dF offset_to_transform_parent_;
+ bool should_flatten_transform_from_property_tree_ : 1;
bool should_scroll_on_main_thread_ : 1;
bool have_wheel_event_handlers_ : 1;
bool have_scroll_event_handlers_ : 1;
« no previous file with comments | « cc/input/input_handler.h ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698