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

Unified Diff: cc/layers/layer.h

Issue 953093002: cc: Derive draw opacity from property trees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make opacity tree-building optional Created 5 years, 10 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 8eb7c3d02509d84418e8525498e37f8c44c0c594..5ebf79277a4b1bb920a9cd99beedee66eb8975e0 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -472,8 +472,10 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
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; }
int clip_tree_index() const { return clip_tree_index_; }
int transform_tree_index() const { return transform_tree_index_; }
+ int opacity_tree_index() const { return opacity_tree_index_; }
void set_offset_to_transform_parent(gfx::Vector2dF offset) {
offset_to_transform_parent_ = offset;
@@ -499,6 +501,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
const TransformTree& tree) const;
gfx::Transform draw_transform_from_property_trees(
const TransformTree& tree) const;
+ float DrawOpacityFromPropertyTrees(const OpacityTree& tree) const;
// 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