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

Side by Side Diff: cc/trees/layer_tree_host.cc

Issue 1957533002: cc : Track opacity animation changes on effect tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1340 matching lines...) Expand 10 before | Expand all | Expand 10 after
1351 1351
1352 void LayerTreeHost::ElementTransformIsPotentiallyAnimatingChanged( 1352 void LayerTreeHost::ElementTransformIsPotentiallyAnimatingChanged(
1353 ElementId element_id, 1353 ElementId element_id,
1354 ElementListType list_type, 1354 ElementListType list_type,
1355 bool is_animating) { 1355 bool is_animating) {
1356 Layer* layer = LayerById(element_id); 1356 Layer* layer = LayerById(element_id);
1357 DCHECK(layer); 1357 DCHECK(layer);
1358 layer->OnTransformIsPotentiallyAnimatingChanged(is_animating); 1358 layer->OnTransformIsPotentiallyAnimatingChanged(is_animating);
1359 } 1359 }
1360 1360
1361 void LayerTreeHost::ElementOpacityIsCurrentlyAnimatingChanged(
1362 ElementId element_id,
1363 bool is_currently_animating) {
1364 Layer* layer = LayerById(element_id);
1365 DCHECK(layer);
1366 layer->OnOpacityIsCurrentlyAnimatingChanged(is_currently_animating);
1367 }
1368
1361 gfx::ScrollOffset LayerTreeHost::GetScrollOffsetForAnimation( 1369 gfx::ScrollOffset LayerTreeHost::GetScrollOffsetForAnimation(
1362 ElementId element_id) const { 1370 ElementId element_id) const {
1363 Layer* layer = LayerById(element_id); 1371 Layer* layer = LayerById(element_id);
1364 DCHECK(layer); 1372 DCHECK(layer);
1365 return layer->ScrollOffsetForAnimation(); 1373 return layer->ScrollOffsetForAnimation();
1366 } 1374 }
1367 1375
1368 bool LayerTreeHost::ScrollOffsetAnimationWasInterrupted( 1376 bool LayerTreeHost::ScrollOffsetAnimationWasInterrupted(
1369 const Layer* layer) const { 1377 const Layer* layer) const {
1370 return animation_host_->ScrollOffsetAnimationWasInterrupted(layer->id()); 1378 return animation_host_->ScrollOffsetAnimationWasInterrupted(layer->id());
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
1634 int seq_num = property_trees_.sequence_number; 1642 int seq_num = property_trees_.sequence_number;
1635 LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) { 1643 LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) {
1636 layer->set_property_tree_sequence_number(seq_num); 1644 layer->set_property_tree_sequence_number(seq_num);
1637 }); 1645 });
1638 1646
1639 surface_id_namespace_ = proto.surface_id_namespace(); 1647 surface_id_namespace_ = proto.surface_id_namespace();
1640 next_surface_sequence_ = proto.next_surface_sequence(); 1648 next_surface_sequence_ = proto.next_surface_sequence();
1641 } 1649 }
1642 1650
1643 } // namespace cc 1651 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698