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

Unified Diff: cc/trees/draw_property_utils.cc

Issue 2048723002: cc: Compute mask draw properties directly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
Index: cc/trees/draw_property_utils.cc
diff --git a/cc/trees/draw_property_utils.cc b/cc/trees/draw_property_utils.cc
index fef5d28d672cbc6909cf6eedcb8717d861e8d15a..0723013b467d8fa9292b88c78f09009618004b03 100644
--- a/cc/trees/draw_property_utils.cc
+++ b/cc/trees/draw_property_utils.cc
@@ -1090,6 +1090,18 @@ void ComputeLayerDrawProperties(LayerImpl* layer,
layer, bounds_in_target_space, layer->draw_properties().clip_rect);
}
+void ComputeMaskDrawProperties(LayerImpl* mask_layer,
+ const PropertyTrees* property_trees) {
+ // Mask draw properties are used only for rastering, so most of the draw
+ // properties computed for other layers are not needed.
+ mask_layer->draw_properties().screen_space_transform =
+ ScreenSpaceTransformInternal(mask_layer,
+ property_trees->transform_tree.Node(
+ mask_layer->transform_tree_index()));
+ mask_layer->draw_properties().visible_layer_rect =
+ gfx::Rect(mask_layer->bounds());
ajuma 2016/06/07 17:59:39 We were previously using the owning layer's bounds
+}
+
void ComputeSurfaceDrawProperties(const PropertyTrees* property_trees,
RenderSurfaceImpl* render_surface) {
const ClipNode* clip_node =

Powered by Google App Engine
This is Rietveld 408576698