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

Unified Diff: cc/layers/layer.h

Issue 1097583002: cc: Commit property trees to the compositor thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « no previous file | 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 4eb5e8173a6580bb152dec52c87a7ca359e12ab9..1f8da7e68e99d0748689d40412dc87ad0fd07ff6 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -477,6 +477,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
void Set3dSortingContextId(int id);
int sorting_context_id() const { return sorting_context_id_; }
+ // TODO(enne): should these set needs push properties?
ajuma 2015/04/16 21:58:14 I think they'll need to, since they could change w
enne (OOO) 2015/04/16 22:16:54 Done. I didn't add any "if (new != old) push" log
void set_transform_tree_index(int index) { transform_tree_index_ = index; }
void set_clip_tree_index(int index) { clip_tree_index_ = index; }
void set_opacity_tree_index(int index) { opacity_tree_index_ = index; }
@@ -504,15 +505,12 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
visible_rect_from_property_trees_ = rect;
}
- gfx::Transform screen_space_transform_from_property_trees(
- const TransformTree& tree) const;
- gfx::Transform draw_transform_from_property_trees(
- 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;
}
+ bool should_flatten_transform_from_property_tree() const {
+ return should_flatten_transform_from_property_tree_;
+ }
// 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
« no previous file with comments | « no previous file | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698