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

Unified Diff: cc/trees/draw_property_utils.h

Issue 1097583002: cc: Commit property trees to the compositor thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Win bool conversion compile fix 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 | « cc/layers/layer_impl.cc ('k') | cc/trees/draw_property_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/draw_property_utils.h
diff --git a/cc/trees/draw_property_utils.h b/cc/trees/draw_property_utils.h
index cf1fde420663f2f619583eef38bcea9627ad7ea6..986720782a56a6f0ccef1dc4201bbde2d543768f 100644
--- a/cc/trees/draw_property_utils.h
+++ b/cc/trees/draw_property_utils.h
@@ -16,6 +16,7 @@ namespace cc {
class ClipTree;
class Layer;
+class LayerImpl;
class OpacityTree;
class TransformTree;
class PropertyTrees;
@@ -35,14 +36,52 @@ void CC_EXPORT ComputeTransforms(TransformTree* transform_tree);
// visible content rect is the clipped content space rect that will be used for
// recording.
void CC_EXPORT
+BuildPropertyTreesAndComputeVisibleRects(Layer* root_layer,
+ const Layer* page_scale_layer,
+ float page_scale_factor,
+ float device_scale_factor,
+ const gfx::Rect& viewport,
+ const gfx::Transform& device_transform,
+ PropertyTrees* property_trees);
+
+void CC_EXPORT
+BuildPropertyTreesAndComputeVisibleRects(LayerImpl* root_layer,
+ const LayerImpl* page_scale_layer,
+ float page_scale_factor,
+ float device_scale_factor,
+ const gfx::Rect& viewport,
+ const gfx::Transform& device_transform,
+ PropertyTrees* property_trees);
+
+void CC_EXPORT
ComputeVisibleRectsUsingPropertyTrees(Layer* root_layer,
- const Layer* page_scale_layer,
- float page_scale_factor,
- float device_scale_factor,
- const gfx::Rect& viewport,
- const gfx::Transform& device_transform,
PropertyTrees* property_trees);
+void CC_EXPORT
+ComputeVisibleRectsUsingPropertyTrees(LayerImpl* root_layer,
+ PropertyTrees* property_trees);
+
+gfx::Transform CC_EXPORT
+DrawTransformFromPropertyTrees(const Layer* layer, const TransformTree& tree);
+
+gfx::Transform CC_EXPORT
+DrawTransformFromPropertyTrees(const LayerImpl* layer,
+ const TransformTree& tree);
+
+gfx::Transform CC_EXPORT
+ScreenSpaceTransformFromPropertyTrees(const Layer* layer,
+ const TransformTree& tree);
+
+gfx::Transform CC_EXPORT
+ScreenSpaceTransformFromPropertyTrees(const LayerImpl* layer,
+ const TransformTree& tree);
+
+float CC_EXPORT
+DrawOpacityFromPropertyTrees(const Layer* layer, const OpacityTree& tree);
+
+float CC_EXPORT
+DrawOpacityFromPropertyTrees(const LayerImpl* layer, const OpacityTree& tree);
+
} // namespace cc
#endif // CC_TREES_DRAW_PROPERTY_UTILS_H_
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/trees/draw_property_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698