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

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

Issue 1271843005: cc: Remove code for drawing checkerboard quads, it's not used. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 #include <vector> 10 #include <vector>
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 return touch_event_handler_region_; 306 return touch_event_handler_region_;
307 } 307 }
308 308
309 void SetScrollBlocksOn(ScrollBlocksOn scroll_blocks_on); 309 void SetScrollBlocksOn(ScrollBlocksOn scroll_blocks_on);
310 ScrollBlocksOn scroll_blocks_on() const { return scroll_blocks_on_; } 310 ScrollBlocksOn scroll_blocks_on() const { return scroll_blocks_on_; }
311 311
312 void set_did_scroll_callback(const base::Closure& callback) { 312 void set_did_scroll_callback(const base::Closure& callback) {
313 did_scroll_callback_ = callback; 313 did_scroll_callback_ = callback;
314 } 314 }
315 315
316 void SetDrawCheckerboardForMissingTiles(bool checkerboard);
317 bool draw_checkerboard_for_missing_tiles() const {
318 return draw_checkerboard_for_missing_tiles_;
319 }
320
321 void SetForceRenderSurface(bool force_render_surface); 316 void SetForceRenderSurface(bool force_render_surface);
322 bool force_render_surface() const { return force_render_surface_; } 317 bool force_render_surface() const { return force_render_surface_; }
323 318
324 gfx::Vector2dF ScrollDelta() const { return gfx::Vector2dF(); } 319 gfx::Vector2dF ScrollDelta() const { return gfx::Vector2dF(); }
325 gfx::ScrollOffset CurrentScrollOffset() const { return scroll_offset_; } 320 gfx::ScrollOffset CurrentScrollOffset() const { return scroll_offset_; }
326 321
327 void SetDoubleSided(bool double_sided); 322 void SetDoubleSided(bool double_sided);
328 bool double_sided() const { return double_sided_; } 323 bool double_sided() const { return double_sided_; }
329 324
330 void SetShouldFlattenTransform(bool flatten); 325 void SetShouldFlattenTransform(bool flatten);
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 bool is_root_for_isolated_group_ : 1; 701 bool is_root_for_isolated_group_ : 1;
707 bool is_container_for_fixed_position_layers_ : 1; 702 bool is_container_for_fixed_position_layers_ : 1;
708 bool is_drawable_ : 1; 703 bool is_drawable_ : 1;
709 bool draws_content_ : 1; 704 bool draws_content_ : 1;
710 bool hide_layer_and_subtree_ : 1; 705 bool hide_layer_and_subtree_ : 1;
711 bool masks_to_bounds_ : 1; 706 bool masks_to_bounds_ : 1;
712 bool contents_opaque_ : 1; 707 bool contents_opaque_ : 1;
713 bool double_sided_ : 1; 708 bool double_sided_ : 1;
714 bool should_flatten_transform_ : 1; 709 bool should_flatten_transform_ : 1;
715 bool use_parent_backface_visibility_ : 1; 710 bool use_parent_backface_visibility_ : 1;
716 bool draw_checkerboard_for_missing_tiles_ : 1; 711 bool draw_checkerboard_for_missing_tiles_ : 1;
vmpstr 2015/08/03 23:53:38 Remove please
danakj 2015/08/03 23:58:05 Done.
717 bool force_render_surface_ : 1; 712 bool force_render_surface_ : 1;
718 bool transform_is_invertible_ : 1; 713 bool transform_is_invertible_ : 1;
719 bool has_render_surface_ : 1; 714 bool has_render_surface_ : 1;
720 ScrollBlocksOn scroll_blocks_on_ : 3; 715 ScrollBlocksOn scroll_blocks_on_ : 3;
721 Region non_fast_scrollable_region_; 716 Region non_fast_scrollable_region_;
722 Region touch_event_handler_region_; 717 Region touch_event_handler_region_;
723 gfx::PointF position_; 718 gfx::PointF position_;
724 SkColor background_color_; 719 SkColor background_color_;
725 float opacity_; 720 float opacity_;
726 SkXfermode::Mode blend_mode_; 721 SkXfermode::Mode blend_mode_;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 759
765 std::vector<FrameTimingRequest> frame_timing_requests_; 760 std::vector<FrameTimingRequest> frame_timing_requests_;
766 bool frame_timing_requests_dirty_; 761 bool frame_timing_requests_dirty_;
767 762
768 DISALLOW_COPY_AND_ASSIGN(Layer); 763 DISALLOW_COPY_AND_ASSIGN(Layer);
769 }; 764 };
770 765
771 } // namespace cc 766 } // namespace cc
772 767
773 #endif // CC_LAYERS_LAYER_H_ 768 #endif // CC_LAYERS_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698