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

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

Issue 1859733002: cc: Remove usage of Layer draw_transform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolve comments 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/layers/layer.h ('k') | cc/layers/painted_scrollbar_layer.cc » ('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 1818 matching lines...) Expand 10 before | Expand all | Expand 10 after
1829 SetNeedsPushProperties(); 1829 SetNeedsPushProperties();
1830 } 1830 }
1831 1831
1832 int Layer::num_copy_requests_in_target_subtree() { 1832 int Layer::num_copy_requests_in_target_subtree() {
1833 return layer_tree_host() 1833 return layer_tree_host()
1834 ->property_trees() 1834 ->property_trees()
1835 ->effect_tree.Node(effect_tree_index()) 1835 ->effect_tree.Node(effect_tree_index())
1836 ->data.num_copy_requests_in_subtree; 1836 ->data.num_copy_requests_in_subtree;
1837 } 1837 }
1838 1838
1839 gfx::Transform Layer::draw_transform() const {
1840 DCHECK_NE(transform_tree_index_, -1);
1841 return draw_property_utils::DrawTransform(
1842 this, layer_tree_host_->property_trees()->transform_tree);
1843 }
1844
1845 gfx::Transform Layer::screen_space_transform() const { 1839 gfx::Transform Layer::screen_space_transform() const {
1846 DCHECK_NE(transform_tree_index_, -1); 1840 DCHECK_NE(transform_tree_index_, -1);
1847 return draw_property_utils::ScreenSpaceTransform( 1841 return draw_property_utils::ScreenSpaceTransform(
1848 this, layer_tree_host_->property_trees()->transform_tree); 1842 this, layer_tree_host_->property_trees()->transform_tree);
1849 } 1843 }
1850 1844
1851 } // namespace cc 1845 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer.h ('k') | cc/layers/painted_scrollbar_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698