OLD | NEW |
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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "cc/layers/render_surface.h" | 23 #include "cc/layers/render_surface.h" |
24 #include "cc/output/filter_operations.h" | 24 #include "cc/output/filter_operations.h" |
25 #include "cc/trees/occlusion_tracker.h" | 25 #include "cc/trees/occlusion_tracker.h" |
26 #include "skia/ext/refptr.h" | 26 #include "skia/ext/refptr.h" |
27 #include "third_party/skia/include/core/SkColor.h" | 27 #include "third_party/skia/include/core/SkColor.h" |
28 #include "third_party/skia/include/core/SkImageFilter.h" | 28 #include "third_party/skia/include/core/SkImageFilter.h" |
29 #include "ui/gfx/rect.h" | 29 #include "ui/gfx/rect.h" |
30 #include "ui/gfx/rect_f.h" | 30 #include "ui/gfx/rect_f.h" |
31 #include "ui/gfx/transform.h" | 31 #include "ui/gfx/transform.h" |
32 | 32 |
33 namespace WebKit { | |
34 class WebLayerScrollClient; | |
35 } | |
36 | |
37 namespace cc { | 33 namespace cc { |
38 | 34 |
39 class Animation; | 35 class Animation; |
40 class AnimationDelegate; | 36 class AnimationDelegate; |
41 struct AnimationEvent; | 37 struct AnimationEvent; |
42 class CopyOutputRequest; | 38 class CopyOutputRequest; |
43 class LayerAnimationDelegate; | 39 class LayerAnimationDelegate; |
44 class LayerAnimationEventObserver; | 40 class LayerAnimationEventObserver; |
45 class LayerImpl; | 41 class LayerImpl; |
| 42 class LayerScrollClient; |
46 class LayerTreeHost; | 43 class LayerTreeHost; |
47 class LayerTreeImpl; | 44 class LayerTreeImpl; |
48 class PriorityCalculator; | 45 class PriorityCalculator; |
49 class RenderingStatsInstrumentation; | 46 class RenderingStatsInstrumentation; |
50 class ResourceUpdateQueue; | 47 class ResourceUpdateQueue; |
51 class ScrollbarLayer; | 48 class ScrollbarLayer; |
52 struct AnimationEvent; | 49 struct AnimationEvent; |
53 struct RenderingStats; | 50 struct RenderingStats; |
54 | 51 |
55 // Base class for composited layers. Special layer types are derived from | 52 // Base class for composited layers. Special layer types are derived from |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 void SetNonFastScrollableRegion(const Region& non_fast_scrollable_region); | 224 void SetNonFastScrollableRegion(const Region& non_fast_scrollable_region); |
228 const Region& non_fast_scrollable_region() const { | 225 const Region& non_fast_scrollable_region() const { |
229 return non_fast_scrollable_region_; | 226 return non_fast_scrollable_region_; |
230 } | 227 } |
231 | 228 |
232 void SetTouchEventHandlerRegion(const Region& touch_event_handler_region); | 229 void SetTouchEventHandlerRegion(const Region& touch_event_handler_region); |
233 const Region& touch_event_handler_region() const { | 230 const Region& touch_event_handler_region() const { |
234 return touch_event_handler_region_; | 231 return touch_event_handler_region_; |
235 } | 232 } |
236 | 233 |
237 void set_layer_scroll_client(WebKit::WebLayerScrollClient* client) { | 234 void set_layer_scroll_client(LayerScrollClient* client) { |
238 layer_scroll_client_ = client; | 235 layer_scroll_client_ = client; |
239 } | 236 } |
240 | 237 |
241 void SetDrawCheckerboardForMissingTiles(bool checkerboard); | 238 void SetDrawCheckerboardForMissingTiles(bool checkerboard); |
242 bool DrawCheckerboardForMissingTiles() const { | 239 bool DrawCheckerboardForMissingTiles() const { |
243 return draw_checkerboard_for_missing_tiles_; | 240 return draw_checkerboard_for_missing_tiles_; |
244 } | 241 } |
245 | 242 |
246 void SetForceRenderSurface(bool force_render_surface); | 243 void SetForceRenderSurface(bool force_render_surface); |
247 bool force_render_surface() const { return force_render_surface_; } | 244 bool force_render_surface() const { return force_render_surface_; } |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 gfx::Transform sublayer_transform_; | 478 gfx::Transform sublayer_transform_; |
482 | 479 |
483 // Replica layer used for reflections. | 480 // Replica layer used for reflections. |
484 scoped_refptr<Layer> replica_layer_; | 481 scoped_refptr<Layer> replica_layer_; |
485 | 482 |
486 // Transient properties. | 483 // Transient properties. |
487 float raster_scale_; | 484 float raster_scale_; |
488 | 485 |
489 ScopedPtrVector<CopyOutputRequest> copy_requests_; | 486 ScopedPtrVector<CopyOutputRequest> copy_requests_; |
490 | 487 |
491 WebKit::WebLayerScrollClient* layer_scroll_client_; | 488 LayerScrollClient* layer_scroll_client_; |
492 | 489 |
493 DrawProperties<Layer, RenderSurface> draw_properties_; | 490 DrawProperties<Layer, RenderSurface> draw_properties_; |
494 | 491 |
495 PaintProperties paint_properties_; | 492 PaintProperties paint_properties_; |
496 | 493 |
497 DISALLOW_COPY_AND_ASSIGN(Layer); | 494 DISALLOW_COPY_AND_ASSIGN(Layer); |
498 }; | 495 }; |
499 | 496 |
500 } // namespace cc | 497 } // namespace cc |
501 | 498 |
502 #endif // CC_LAYERS_LAYER_H_ | 499 #endif // CC_LAYERS_LAYER_H_ |
OLD | NEW |