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

Side by Side Diff: cc/layers/layer.cc

Issue 1904653002: CC Animation: Merge LayerAnimationController into ElementAnimations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor optimization: Don't init value observations if same host. Created 4 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 unified diff | Download patch
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/test/animation_test_common.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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/layers/layer.h" 5 #include "cc/layers/layer.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 1450 matching lines...) Expand 10 before | Expand all | Expand 10 after
1461 base->add_clip_children_ids(child->id()); 1461 base->add_clip_children_ids(child->id());
1462 } 1462 }
1463 1463
1464 ScrollOffsetToProto(scroll_offset_, base->mutable_scroll_offset()); 1464 ScrollOffsetToProto(scroll_offset_, base->mutable_scroll_offset());
1465 1465
1466 // TODO(nyquist): Figure out what to do with CopyRequests. 1466 // TODO(nyquist): Figure out what to do with CopyRequests.
1467 // See crbug.com/570374. 1467 // See crbug.com/570374.
1468 1468
1469 RectToProto(update_rect_, base->mutable_update_rect()); 1469 RectToProto(update_rect_, base->mutable_update_rect());
1470 1470
1471 // TODO(nyquist): Figure out what to do with LayerAnimationController. 1471 // TODO(nyquist): Figure out what to do with ElementAnimations.
1472 // See crbug.com/570376. 1472 // See crbug.com/570376.
1473 1473
1474 update_rect_ = gfx::Rect(); 1474 update_rect_ = gfx::Rect();
1475 } 1475 }
1476 1476
1477 void Layer::FromLayerSpecificPropertiesProto( 1477 void Layer::FromLayerSpecificPropertiesProto(
1478 const proto::LayerProperties& proto) { 1478 const proto::LayerProperties& proto) {
1479 DCHECK(proto.has_base()); 1479 DCHECK(proto.has_base());
1480 DCHECK(layer_tree_host_); 1480 DCHECK(layer_tree_host_);
1481 const proto::BaseLayerProperties& base = proto.base(); 1481 const proto::BaseLayerProperties& base = proto.base();
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
1820 ->data.num_copy_requests_in_subtree; 1820 ->data.num_copy_requests_in_subtree;
1821 } 1821 }
1822 1822
1823 gfx::Transform Layer::screen_space_transform() const { 1823 gfx::Transform Layer::screen_space_transform() const {
1824 DCHECK_NE(transform_tree_index_, -1); 1824 DCHECK_NE(transform_tree_index_, -1);
1825 return draw_property_utils::ScreenSpaceTransform( 1825 return draw_property_utils::ScreenSpaceTransform(
1826 this, layer_tree_host_->property_trees()->transform_tree); 1826 this, layer_tree_host_->property_trees()->transform_tree);
1827 } 1827 }
1828 1828
1829 } // namespace cc 1829 } // namespace cc
OLDNEW
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/test/animation_test_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698