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

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

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/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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 234
235 void AddClipChild(Layer* child); 235 void AddClipChild(Layer* child);
236 void RemoveClipChild(Layer* child); 236 void RemoveClipChild(Layer* child);
237 237
238 std::set<Layer*>* clip_children() { return clip_children_.get(); } 238 std::set<Layer*>* clip_children() { return clip_children_.get(); }
239 const std::set<Layer*>* clip_children() const { 239 const std::set<Layer*>* clip_children() const {
240 return clip_children_.get(); 240 return clip_children_.get();
241 } 241 }
242 242
243 // TODO(enne): Fix style here (and everywhere) once LayerImpl does the same. 243 // TODO(enne): Fix style here (and everywhere) once LayerImpl does the same.
244 gfx::Transform draw_transform() const;
245 gfx::Transform screen_space_transform() const; 244 gfx::Transform screen_space_transform() const;
246 245
247 void set_num_unclipped_descendants(size_t descendants) { 246 void set_num_unclipped_descendants(size_t descendants) {
248 num_unclipped_descendants_ = descendants; 247 num_unclipped_descendants_ = descendants;
249 } 248 }
250 size_t num_unclipped_descendants() const { 249 size_t num_unclipped_descendants() const {
251 return num_unclipped_descendants_; 250 return num_unclipped_descendants_;
252 } 251 }
253 252
254 void SetScrollOffset(const gfx::ScrollOffset& scroll_offset); 253 void SetScrollOffset(const gfx::ScrollOffset& scroll_offset);
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 691
693 std::vector<FrameTimingRequest> frame_timing_requests_; 692 std::vector<FrameTimingRequest> frame_timing_requests_;
694 bool frame_timing_requests_dirty_; 693 bool frame_timing_requests_dirty_;
695 694
696 DISALLOW_COPY_AND_ASSIGN(Layer); 695 DISALLOW_COPY_AND_ASSIGN(Layer);
697 }; 696 };
698 697
699 } // namespace cc 698 } // namespace cc
700 699
701 #endif // CC_LAYERS_LAYER_H_ 700 #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