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

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

Issue 189433003: Remove --background-color-instead-of-checkerboard flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: backgroundcolorinsteadofcheckerboard: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « cc/base/switches.cc ('k') | cc/layers/layer_impl.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 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 void SetTouchEventHandlerRegion(const Region& touch_event_handler_region); 291 void SetTouchEventHandlerRegion(const Region& touch_event_handler_region);
292 const Region& touch_event_handler_region() const { 292 const Region& touch_event_handler_region() const {
293 return touch_event_handler_region_; 293 return touch_event_handler_region_;
294 } 294 }
295 295
296 void set_did_scroll_callback(const base::Closure& callback) { 296 void set_did_scroll_callback(const base::Closure& callback) {
297 did_scroll_callback_ = callback; 297 did_scroll_callback_ = callback;
298 } 298 }
299 299
300 void SetDrawCheckerboardForMissingTiles(bool checkerboard); 300 void SetDrawCheckerboardForMissingTiles(bool checkerboard);
301 bool DrawCheckerboardForMissingTiles() const { 301 bool draw_checkerboard_for_missing_tiles() const {
302 return draw_checkerboard_for_missing_tiles_; 302 return draw_checkerboard_for_missing_tiles_;
303 } 303 }
304 304
305 void SetForceRenderSurface(bool force_render_surface); 305 void SetForceRenderSurface(bool force_render_surface);
306 bool force_render_surface() const { return force_render_surface_; } 306 bool force_render_surface() const { return force_render_surface_; }
307 307
308 gfx::Vector2d ScrollDelta() const { return gfx::Vector2d(); } 308 gfx::Vector2d ScrollDelta() const { return gfx::Vector2d(); }
309 gfx::Vector2dF TotalScrollOffset() const { 309 gfx::Vector2dF TotalScrollOffset() const {
310 // Floating point to match the LayerImpl version. 310 // Floating point to match the LayerImpl version.
311 return scroll_offset() + ScrollDelta(); 311 return scroll_offset() + ScrollDelta();
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 DrawProperties<Layer> draw_properties_; 620 DrawProperties<Layer> draw_properties_;
621 621
622 PaintProperties paint_properties_; 622 PaintProperties paint_properties_;
623 623
624 DISALLOW_COPY_AND_ASSIGN(Layer); 624 DISALLOW_COPY_AND_ASSIGN(Layer);
625 }; 625 };
626 626
627 } // namespace cc 627 } // namespace cc
628 628
629 #endif // CC_LAYERS_LAYER_H_ 629 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/base/switches.cc ('k') | cc/layers/layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698