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

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

Issue 903273002: Update from https://crrev.com/315085 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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/layers/heads_up_display_layer_impl.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 <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"
38 #include "ui/gfx/geometry/scroll_offset.h" 39 #include "ui/gfx/geometry/scroll_offset.h"
39 #include "ui/gfx/transform.h" 40 #include "ui/gfx/transform.h"
40 41
41 namespace gfx { 42 namespace gfx {
42 class BoxF; 43 class BoxF;
43 } 44 }
44 45
45 namespace base { 46 namespace base {
46 namespace debug { 47 namespace trace_event {
47 class ConvertableToTraceFormat; 48 class ConvertableToTraceFormat;
48 } 49 }
50
51 // TODO(ssid): remove these aliases after the tracing clients are moved to the
52 // new trace_event namespace. See crbug.com/451032. ETA: March 2015
53 namespace debug {
54 using ::base::trace_event::ConvertableToTraceFormat;
49 } 55 }
56 } // namespace base
50 57
51 namespace cc { 58 namespace cc {
52 59
53 class Animation; 60 class Animation;
54 class AnimationDelegate; 61 class AnimationDelegate;
55 struct AnimationEvent; 62 struct AnimationEvent;
56 class CopyOutputRequest; 63 class CopyOutputRequest;
57 class LayerAnimationDelegate; 64 class LayerAnimationDelegate;
58 class LayerAnimationEventObserver; 65 class LayerAnimationEventObserver;
59 class LayerClient; 66 class LayerClient;
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 void SetNonFastScrollableRegion(const Region& non_fast_scrollable_region); 305 void SetNonFastScrollableRegion(const Region& non_fast_scrollable_region);
299 const Region& non_fast_scrollable_region() const { 306 const Region& non_fast_scrollable_region() const {
300 return non_fast_scrollable_region_; 307 return non_fast_scrollable_region_;
301 } 308 }
302 309
303 void SetTouchEventHandlerRegion(const Region& touch_event_handler_region); 310 void SetTouchEventHandlerRegion(const Region& touch_event_handler_region);
304 const Region& touch_event_handler_region() const { 311 const Region& touch_event_handler_region() const {
305 return touch_event_handler_region_; 312 return touch_event_handler_region_;
306 } 313 }
307 314
315 void SetScrollBlocksOn(ScrollBlocksOn scroll_blocks_on);
316 ScrollBlocksOn scroll_blocks_on() const { return scroll_blocks_on_; }
317
308 void set_did_scroll_callback(const base::Closure& callback) { 318 void set_did_scroll_callback(const base::Closure& callback) {
309 did_scroll_callback_ = callback; 319 did_scroll_callback_ = callback;
310 } 320 }
311 321
312 void SetDrawCheckerboardForMissingTiles(bool checkerboard); 322 void SetDrawCheckerboardForMissingTiles(bool checkerboard);
313 bool draw_checkerboard_for_missing_tiles() const { 323 bool draw_checkerboard_for_missing_tiles() const {
314 return draw_checkerboard_for_missing_tiles_; 324 return draw_checkerboard_for_missing_tiles_;
315 } 325 }
316 326
317 void SetForceRenderSurface(bool force_render_surface); 327 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; 670 bool hide_layer_and_subtree_ : 1;
661 bool masks_to_bounds_ : 1; 671 bool masks_to_bounds_ : 1;
662 bool contents_opaque_ : 1; 672 bool contents_opaque_ : 1;
663 bool double_sided_ : 1; 673 bool double_sided_ : 1;
664 bool should_flatten_transform_ : 1; 674 bool should_flatten_transform_ : 1;
665 bool use_parent_backface_visibility_ : 1; 675 bool use_parent_backface_visibility_ : 1;
666 bool draw_checkerboard_for_missing_tiles_ : 1; 676 bool draw_checkerboard_for_missing_tiles_ : 1;
667 bool force_render_surface_ : 1; 677 bool force_render_surface_ : 1;
668 bool transform_is_invertible_ : 1; 678 bool transform_is_invertible_ : 1;
669 bool has_render_surface_ : 1; 679 bool has_render_surface_ : 1;
680 ScrollBlocksOn scroll_blocks_on_ : 3;
670 Region non_fast_scrollable_region_; 681 Region non_fast_scrollable_region_;
671 Region touch_event_handler_region_; 682 Region touch_event_handler_region_;
672 gfx::PointF position_; 683 gfx::PointF position_;
673 SkColor background_color_; 684 SkColor background_color_;
674 float opacity_; 685 float opacity_;
675 SkXfermode::Mode blend_mode_; 686 SkXfermode::Mode blend_mode_;
676 FilterOperations filters_; 687 FilterOperations filters_;
677 FilterOperations background_filters_; 688 FilterOperations background_filters_;
678 LayerPositionConstraint position_constraint_; 689 LayerPositionConstraint position_constraint_;
679 Layer* scroll_parent_; 690 Layer* scroll_parent_;
(...skipping 28 matching lines...) Expand all
708 719
709 std::vector<FrameTimingRequest> frame_timing_requests_; 720 std::vector<FrameTimingRequest> frame_timing_requests_;
710 bool frame_timing_requests_dirty_; 721 bool frame_timing_requests_dirty_;
711 722
712 DISALLOW_COPY_AND_ASSIGN(Layer); 723 DISALLOW_COPY_AND_ASSIGN(Layer);
713 }; 724 };
714 725
715 } // namespace cc 726 } // namespace cc
716 727
717 #endif // CC_LAYERS_LAYER_H_ 728 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/layers/heads_up_display_layer_impl.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698