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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 2895793002: Track transform animation content readiness on TransformNode. (Closed)
Patch Set: Created 3 years, 7 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/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 54dc7bbd336bc73f606cdad27254392eed83b148..1095bd11b56a788350e450e0c3c078ffd9ea82f4 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -943,12 +943,15 @@ DrawResult LayerTreeHostImpl::CalculateRenderPasses(FrameData* frame) {
append_quads_data.checkerboarded_no_recording_content_area;
checkerboarded_needs_raster_content_area +=
append_quads_data.checkerboarded_needs_raster_content_area;
+ TransformNode* transform_node =
+ active_tree()->property_trees()->transform_tree.Node(
+ layer->transform_tree_index());
wkorman 2017/05/20 01:31:27 Are we assured that we will always have a transfor
pdr. 2017/05/22 17:03:34 We've had a bunch of crashes in this area recently
if (append_quads_data.num_missing_tiles > 0) {
have_missing_animated_tiles |=
- !layer->was_ever_ready_since_last_transform_animation() ||
+ !transform_node->ready_since_animation ||
layer->screen_space_transform_is_animating();
} else {
- layer->set_was_ever_ready_since_last_transform_animation(true);
+ transform_node->ready_since_animation = true;
jaydasika 2017/05/22 18:11:29 As layer->transform node is not 1:1, you can't do
}
}
frame->activation_dependencies.insert(
@@ -4235,12 +4238,7 @@ void LayerTreeHostImpl::ElementIsAnimatingChanged(
list_type);
property_trees->transform_tree.set_needs_update(true);
tree->set_needs_update_draw_properties();
- // TODO(crbug.com/702777):
- // was_ever_ready_since_last_transform_animation should not live on
- // layers.
- if (LayerImpl* layer = tree->LayerByElementId(element_id)) {
- layer->set_was_ever_ready_since_last_transform_animation(false);
- }
+ transform_node->ready_since_animation = false;
}
}
break;

Powered by Google App Engine
This is Rietveld 408576698