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

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

Issue 2808413002: Rename Layer::screen_space_transform to Layer::ScreenSpaceTransform (Closed)
Patch Set: Created 3 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/blink/web_layer_impl_fixed_bounds_unittest.cc ('k') | cc/layers/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 #ifndef CC_LAYERS_LAYER_H_ 5 #ifndef CC_LAYERS_LAYER_H_
6 #define CC_LAYERS_LAYER_H_ 6 #define CC_LAYERS_LAYER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 195
196 void SetClipParent(Layer* ancestor); 196 void SetClipParent(Layer* ancestor);
197 197
198 Layer* clip_parent() { return inputs_.clip_parent; } 198 Layer* clip_parent() { return inputs_.clip_parent; }
199 199
200 std::set<Layer*>* clip_children() { return clip_children_.get(); } 200 std::set<Layer*>* clip_children() { return clip_children_.get(); }
201 const std::set<Layer*>* clip_children() const { 201 const std::set<Layer*>* clip_children() const {
202 return clip_children_.get(); 202 return clip_children_.get();
203 } 203 }
204 204
205 // TODO(enne): Fix style here (and everywhere) once LayerImpl does the same. 205 gfx::Transform ScreenSpaceTransform() const;
206 gfx::Transform screen_space_transform() const;
207 206
208 void set_num_unclipped_descendants(size_t descendants) { 207 void set_num_unclipped_descendants(size_t descendants) {
209 num_unclipped_descendants_ = descendants; 208 num_unclipped_descendants_ = descendants;
210 } 209 }
211 size_t num_unclipped_descendants() const { 210 size_t num_unclipped_descendants() const {
212 return num_unclipped_descendants_; 211 return num_unclipped_descendants_;
213 } 212 }
214 213
215 void SetScrollOffset(const gfx::ScrollOffset& scroll_offset); 214 void SetScrollOffset(const gfx::ScrollOffset& scroll_offset);
216 215
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 // These all act like draw properties, so don't need push properties. 637 // These all act like draw properties, so don't need push properties.
639 gfx::Rect visible_layer_rect_; 638 gfx::Rect visible_layer_rect_;
640 size_t num_unclipped_descendants_; 639 size_t num_unclipped_descendants_;
641 640
642 DISALLOW_COPY_AND_ASSIGN(Layer); 641 DISALLOW_COPY_AND_ASSIGN(Layer);
643 }; 642 };
644 643
645 } // namespace cc 644 } // namespace cc
646 645
647 #endif // CC_LAYERS_LAYER_H_ 646 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/blink/web_layer_impl_fixed_bounds_unittest.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698