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

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

Issue 132163009: [#6]Pass gfx structs by const ref (gfx::Vector2d) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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
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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 draw_properties_.render_target->render_surface()); 258 draw_properties_.render_target->render_surface());
259 return draw_properties_.render_target; 259 return draw_properties_.render_target;
260 } 260 }
261 RenderSurface* render_surface() const { 261 RenderSurface* render_surface() const {
262 return draw_properties_.render_surface.get(); 262 return draw_properties_.render_surface.get();
263 } 263 }
264 int num_unclipped_descendants() const { 264 int num_unclipped_descendants() const {
265 return draw_properties_.num_unclipped_descendants; 265 return draw_properties_.num_unclipped_descendants;
266 } 266 }
267 267
268 void SetScrollOffset(gfx::Vector2d scroll_offset); 268 void SetScrollOffset(const gfx::Vector2d& scroll_offset);
269 gfx::Vector2d scroll_offset() const { return scroll_offset_; } 269 gfx::Vector2d scroll_offset() const { return scroll_offset_; }
270 void SetScrollOffsetFromImplSide(gfx::Vector2d scroll_offset); 270 void SetScrollOffsetFromImplSide(const gfx::Vector2d& scroll_offset);
271 271
272 void SetMaxScrollOffset(gfx::Vector2d max_scroll_offset); 272 void SetMaxScrollOffset(const gfx::Vector2d& max_scroll_offset);
273 gfx::Vector2d max_scroll_offset() const { return max_scroll_offset_; } 273 gfx::Vector2d max_scroll_offset() const { return max_scroll_offset_; }
274 274
275 void SetScrollable(bool scrollable); 275 void SetScrollable(bool scrollable);
276 bool scrollable() const { return scrollable_; } 276 bool scrollable() const { return scrollable_; }
277 277
278 void SetUserScrollable(bool horizontal, bool vertical); 278 void SetUserScrollable(bool horizontal, bool vertical);
279 bool user_scrollable_horizontal() const { 279 bool user_scrollable_horizontal() const {
280 return user_scrollable_horizontal_; 280 return user_scrollable_horizontal_;
281 } 281 }
282 bool user_scrollable_vertical() const { return user_scrollable_vertical_; } 282 bool user_scrollable_vertical() const { return user_scrollable_vertical_; }
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 DrawProperties<Layer> draw_properties_; 621 DrawProperties<Layer> draw_properties_;
622 622
623 PaintProperties paint_properties_; 623 PaintProperties paint_properties_;
624 624
625 DISALLOW_COPY_AND_ASSIGN(Layer); 625 DISALLOW_COPY_AND_ASSIGN(Layer);
626 }; 626 };
627 627
628 } // namespace cc 628 } // namespace cc
629 629
630 #endif // CC_LAYERS_LAYER_H_ 630 #endif // CC_LAYERS_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698