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

Unified Diff: cc/trees/draw_property_utils.h

Issue 1310283002: cc: Avoid duplicate work when computing draw properties using property trees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 3 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/trees/draw_property_utils.cc » ('j') | cc/trees/draw_property_utils.cc » ('J')
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 889a9a8a3908390cddbb238d09f196c8797c3307..c514aaf19c1c4d6926e0eb379af364587eefe7c8 100644
--- a/cc/trees/draw_property_utils.h
+++ b/cc/trees/draw_property_utils.h
@@ -6,6 +6,7 @@
#define CC_TREES_DRAW_PROPERTY_UTILS_H_
#include "cc/base/cc_export.h"
+#include "cc/layers/draw_properties.h"
#include "cc/layers/layer_lists.h"
namespace gfx {
@@ -74,25 +75,34 @@ ComputeVisibleRectsUsingPropertyTrees(LayerImpl* root_layer,
PropertyTrees* property_trees,
LayerImplList* update_layer_list);
+void CC_EXPORT ComputeLayerDrawPropertiesUsingPropertyTrees(
+ const LayerImpl* layer,
+ const PropertyTrees* property_trees,
+ bool layers_always_allowed_lcd_text,
+ bool can_use_lcd_text,
+ DrawProperties* draw_properties);
+
+struct CC_EXPORT SurfaceDrawProperties {
enne (OOO) 2015/09/02 21:51:35 It's a bit odd to have this here and DrawPropertie
ajuma 2015/09/03 15:06:49 Moved to its own file.
+ SurfaceDrawProperties();
+ ~SurfaceDrawProperties();
+
+ bool is_clipped;
+ float draw_opacity;
+ gfx::Transform draw_transform;
+ gfx::Transform screen_space_transform;
+ gfx::Transform replica_draw_transform;
+ gfx::Transform replica_screen_space_transform;
+ gfx::Rect clip_rect;
+};
+
+void CC_EXPORT ComputeSurfaceDrawPropertiesUsingPropertyTrees(
+ RenderSurfaceImpl* render_surface,
+ const PropertyTrees* property_trees,
+ SurfaceDrawProperties* draw_properties);
+
gfx::Transform CC_EXPORT
DrawTransformFromPropertyTrees(const Layer* layer, const TransformTree& tree);
-gfx::Transform CC_EXPORT DrawTransformOfRenderSurfaceFromPropertyTrees(
- const RenderSurfaceImpl* render_Surface,
- const TransformTree& tree);
-
-bool CC_EXPORT
-RenderSurfaceIsClippedFromPropertyTrees(const RenderSurfaceImpl* render_surface,
- const ClipTree& tree);
-
-gfx::Rect CC_EXPORT ClipRectOfRenderSurfaceFromPropertyTrees(
- const RenderSurfaceImpl* render_surface,
- const ClipTree& clip_tree);
-
-gfx::Transform CC_EXPORT ScreenSpaceTransformOfRenderSurfaceFromPropertyTrees(
- const RenderSurfaceImpl* render_surface,
- const TransformTree& tree);
-
gfx::Transform CC_EXPORT
DrawTransformFromPropertyTrees(const LayerImpl* layer,
const TransformTree& tree);
@@ -105,56 +115,6 @@ gfx::Transform CC_EXPORT
ScreenSpaceTransformFromPropertyTrees(const LayerImpl* layer,
const TransformTree& tree);
-bool CC_EXPORT
-ScreenSpaceTransformIsAnimatingFromPropertyTrees(const Layer* layer,
- const TransformTree& tree);
-
-bool CC_EXPORT
-ScreenSpaceTransformIsAnimatingFromPropertyTrees(const LayerImpl* layer,
- const TransformTree& tree);
-
-float CC_EXPORT
-MaximumAnimationTargetScaleFromPropertyTrees(const LayerImpl* layer,
- const TransformTree& tree);
-
-float CC_EXPORT
-StartingAnimationScaleFromPropertyTrees(const LayerImpl* layer,
- const TransformTree& tree);
-
-float CC_EXPORT DrawOpacityFromPropertyTrees(const LayerImpl* layer,
- const EffectTree& tree);
-
-float CC_EXPORT
-DrawOpacityOfRenderSurfaceFromPropertyTrees(RenderSurfaceImpl* render_surface,
- const EffectTree& tree);
-
-bool CC_EXPORT
-CanUseLcdTextFromPropertyTrees(const LayerImpl* layer,
- bool layers_always_allowed_lcd_text,
- bool can_use_lcd_text,
- PropertyTrees* property_trees);
-
-gfx::Rect CC_EXPORT DrawableContentRectOfSurfaceFromPropertyTrees(
- const RenderSurfaceImpl* render_surface,
- const TransformTree& transform_tree);
-
-gfx::Rect CC_EXPORT
-DrawableContentRectFromPropertyTrees(const LayerImpl* layer,
- const TransformTree& transform_tree);
-
-gfx::Rect CC_EXPORT
-ClipRectFromPropertyTrees(const LayerImpl* layer,
- const TransformTree& transform_tree);
-
-gfx::Transform CC_EXPORT DrawTransformOfRenderSurfaceReplicaFromPropertyTrees(
- const RenderSurfaceImpl* render_surface,
- const TransformTree& tree);
-
-gfx::Transform CC_EXPORT
-ScreenSpaceTransformOfRenderSurfaceReplicaFromPropertyTrees(
- const RenderSurfaceImpl* render_surface,
- const TransformTree& tree);
-
} // namespace cc
#endif // CC_TREES_DRAW_PROPERTY_UTILS_H_
« no previous file with comments | « no previous file | cc/trees/draw_property_utils.cc » ('j') | cc/trees/draw_property_utils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698