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

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

Issue 784463002: Add initial CC support for scroll-blocks-on (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: jdduke CR feedback Created 5 years, 10 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/input/input_handler.h ('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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/observer_list.h" 14 #include "base/observer_list.h"
15 #include "cc/animation/layer_animation_controller.h" 15 #include "cc/animation/layer_animation_controller.h"
16 #include "cc/animation/layer_animation_value_observer.h" 16 #include "cc/animation/layer_animation_value_observer.h"
17 #include "cc/animation/layer_animation_value_provider.h" 17 #include "cc/animation/layer_animation_value_provider.h"
18 #include "cc/base/cc_export.h" 18 #include "cc/base/cc_export.h"
19 #include "cc/base/region.h" 19 #include "cc/base/region.h"
20 #include "cc/base/scoped_ptr_vector.h" 20 #include "cc/base/scoped_ptr_vector.h"
21 #include "cc/debug/frame_timing_request.h" 21 #include "cc/debug/frame_timing_request.h"
22 #include "cc/debug/micro_benchmark.h" 22 #include "cc/debug/micro_benchmark.h"
23 #include "cc/layers/draw_properties.h" 23 #include "cc/layers/draw_properties.h"
24 #include "cc/layers/layer_lists.h" 24 #include "cc/layers/layer_lists.h"
25 #include "cc/layers/layer_position_constraint.h" 25 #include "cc/layers/layer_position_constraint.h"
26 #include "cc/layers/paint_properties.h" 26 #include "cc/layers/paint_properties.h"
27 #include "cc/layers/render_surface.h" 27 #include "cc/layers/render_surface.h"
28 #include "cc/layers/scroll_blocks_on.h"
28 #include "cc/output/filter_operations.h" 29 #include "cc/output/filter_operations.h"
29 #include "cc/trees/property_tree.h" 30 #include "cc/trees/property_tree.h"
30 #include "skia/ext/refptr.h" 31 #include "skia/ext/refptr.h"
31 #include "third_party/skia/include/core/SkColor.h" 32 #include "third_party/skia/include/core/SkColor.h"
32 #include "third_party/skia/include/core/SkImageFilter.h" 33 #include "third_party/skia/include/core/SkImageFilter.h"
33 #include "third_party/skia/include/core/SkPicture.h" 34 #include "third_party/skia/include/core/SkPicture.h"
34 #include "third_party/skia/include/core/SkXfermode.h" 35 #include "third_party/skia/include/core/SkXfermode.h"
35 #include "ui/gfx/geometry/point3_f.h" 36 #include "ui/gfx/geometry/point3_f.h"
36 #include "ui/gfx/geometry/rect.h" 37 #include "ui/gfx/geometry/rect.h"
37 #include "ui/gfx/geometry/rect_f.h" 38 #include "ui/gfx/geometry/rect_f.h"
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 void SetNonFastScrollableRegion(const Region& non_fast_scrollable_region); 299 void SetNonFastScrollableRegion(const Region& non_fast_scrollable_region);
299 const Region& non_fast_scrollable_region() const { 300 const Region& non_fast_scrollable_region() const {
300 return non_fast_scrollable_region_; 301 return non_fast_scrollable_region_;
301 } 302 }
302 303
303 void SetTouchEventHandlerRegion(const Region& touch_event_handler_region); 304 void SetTouchEventHandlerRegion(const Region& touch_event_handler_region);
304 const Region& touch_event_handler_region() const { 305 const Region& touch_event_handler_region() const {
305 return touch_event_handler_region_; 306 return touch_event_handler_region_;
306 } 307 }
307 308
309 void SetScrollBlocksOn(ScrollBlocksOn scroll_blocks_on);
310 ScrollBlocksOn scroll_blocks_on() const { return scroll_blocks_on_; }
311
308 void set_did_scroll_callback(const base::Closure& callback) { 312 void set_did_scroll_callback(const base::Closure& callback) {
309 did_scroll_callback_ = callback; 313 did_scroll_callback_ = callback;
310 } 314 }
311 315
312 void SetDrawCheckerboardForMissingTiles(bool checkerboard); 316 void SetDrawCheckerboardForMissingTiles(bool checkerboard);
313 bool draw_checkerboard_for_missing_tiles() const { 317 bool draw_checkerboard_for_missing_tiles() const {
314 return draw_checkerboard_for_missing_tiles_; 318 return draw_checkerboard_for_missing_tiles_;
315 } 319 }
316 320
317 void SetForceRenderSurface(bool force_render_surface); 321 void SetForceRenderSurface(bool force_render_surface);
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 bool hide_layer_and_subtree_ : 1; 664 bool hide_layer_and_subtree_ : 1;
661 bool masks_to_bounds_ : 1; 665 bool masks_to_bounds_ : 1;
662 bool contents_opaque_ : 1; 666 bool contents_opaque_ : 1;
663 bool double_sided_ : 1; 667 bool double_sided_ : 1;
664 bool should_flatten_transform_ : 1; 668 bool should_flatten_transform_ : 1;
665 bool use_parent_backface_visibility_ : 1; 669 bool use_parent_backface_visibility_ : 1;
666 bool draw_checkerboard_for_missing_tiles_ : 1; 670 bool draw_checkerboard_for_missing_tiles_ : 1;
667 bool force_render_surface_ : 1; 671 bool force_render_surface_ : 1;
668 bool transform_is_invertible_ : 1; 672 bool transform_is_invertible_ : 1;
669 bool has_render_surface_ : 1; 673 bool has_render_surface_ : 1;
674 ScrollBlocksOn scroll_blocks_on_ : 3;
670 Region non_fast_scrollable_region_; 675 Region non_fast_scrollable_region_;
671 Region touch_event_handler_region_; 676 Region touch_event_handler_region_;
672 gfx::PointF position_; 677 gfx::PointF position_;
673 SkColor background_color_; 678 SkColor background_color_;
674 float opacity_; 679 float opacity_;
675 SkXfermode::Mode blend_mode_; 680 SkXfermode::Mode blend_mode_;
676 FilterOperations filters_; 681 FilterOperations filters_;
677 FilterOperations background_filters_; 682 FilterOperations background_filters_;
678 LayerPositionConstraint position_constraint_; 683 LayerPositionConstraint position_constraint_;
679 Layer* scroll_parent_; 684 Layer* scroll_parent_;
(...skipping 28 matching lines...) Expand all
708 713
709 std::vector<FrameTimingRequest> frame_timing_requests_; 714 std::vector<FrameTimingRequest> frame_timing_requests_;
710 bool frame_timing_requests_dirty_; 715 bool frame_timing_requests_dirty_;
711 716
712 DISALLOW_COPY_AND_ASSIGN(Layer); 717 DISALLOW_COPY_AND_ASSIGN(Layer);
713 }; 718 };
714 719
715 } // namespace cc 720 } // namespace cc
716 721
717 #endif // CC_LAYERS_LAYER_H_ 722 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/input/input_handler.h ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698