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

Side by Side Diff: cc/layers/layer_impl.h

Issue 1115653002: Pass gfx structs by const ref(gfx::Vector2D/F) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing some build issue Created 5 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
« no previous file with comments | « cc/animation/scroll_offset_animation_curve.cc ('k') | cc/resources/texture_uploader.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 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 #ifndef CC_LAYERS_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 SetNeedsPushProperties(); 159 SetNeedsPushProperties();
160 } 160 }
161 void set_opacity_tree_index(int index) { 161 void set_opacity_tree_index(int index) {
162 opacity_tree_index_ = index; 162 opacity_tree_index_ = index;
163 SetNeedsPushProperties(); 163 SetNeedsPushProperties();
164 } 164 }
165 int clip_tree_index() const { return clip_tree_index_; } 165 int clip_tree_index() const { return clip_tree_index_; }
166 int transform_tree_index() const { return transform_tree_index_; } 166 int transform_tree_index() const { return transform_tree_index_; }
167 int opacity_tree_index() const { return opacity_tree_index_; } 167 int opacity_tree_index() const { return opacity_tree_index_; }
168 168
169 void set_offset_to_transform_parent(gfx::Vector2dF offset) { 169 void set_offset_to_transform_parent(const gfx::Vector2dF& offset) {
170 offset_to_transform_parent_ = offset; 170 offset_to_transform_parent_ = offset;
171 SetNeedsPushProperties(); 171 SetNeedsPushProperties();
172 } 172 }
173 gfx::Vector2dF offset_to_transform_parent() const { 173 gfx::Vector2dF offset_to_transform_parent() const {
174 return offset_to_transform_parent_; 174 return offset_to_transform_parent_;
175 } 175 }
176 176
177 const gfx::Rect& visible_rect_from_property_trees() const { 177 const gfx::Rect& visible_rect_from_property_trees() const {
178 return visible_rect_from_property_trees_; 178 return visible_rect_from_property_trees_;
179 } 179 }
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 829
830 std::vector<FrameTimingRequest> frame_timing_requests_; 830 std::vector<FrameTimingRequest> frame_timing_requests_;
831 bool frame_timing_requests_dirty_; 831 bool frame_timing_requests_dirty_;
832 832
833 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 833 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
834 }; 834 };
835 835
836 } // namespace cc 836 } // namespace cc
837 837
838 #endif // CC_LAYERS_LAYER_IMPL_H_ 838 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/animation/scroll_offset_animation_curve.cc ('k') | cc/resources/texture_uploader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698