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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include "cc/trees/target_property.h" | 32 #include "cc/trees/target_property.h" |
33 #include "third_party/skia/include/core/SkColor.h" | 33 #include "third_party/skia/include/core/SkColor.h" |
34 #include "third_party/skia/include/core/SkPicture.h" | 34 #include "third_party/skia/include/core/SkPicture.h" |
35 #include "third_party/skia/include/core/SkXfermode.h" | 35 #include "third_party/skia/include/core/SkXfermode.h" |
36 #include "ui/gfx/geometry/point3_f.h" | 36 #include "ui/gfx/geometry/point3_f.h" |
37 #include "ui/gfx/geometry/rect.h" | 37 #include "ui/gfx/geometry/rect.h" |
38 #include "ui/gfx/geometry/rect_f.h" | 38 #include "ui/gfx/geometry/rect_f.h" |
39 #include "ui/gfx/geometry/scroll_offset.h" | 39 #include "ui/gfx/geometry/scroll_offset.h" |
40 #include "ui/gfx/transform.h" | 40 #include "ui/gfx/transform.h" |
41 | 41 |
42 namespace gfx { | |
43 class BoxF; | |
44 } | |
45 | |
46 namespace base { | 42 namespace base { |
47 namespace trace_event { | 43 namespace trace_event { |
48 class ConvertableToTraceFormat; | 44 class ConvertableToTraceFormat; |
49 } | 45 } |
50 } | 46 } |
51 | 47 |
52 namespace cc { | 48 namespace cc { |
53 | 49 |
54 class CopyOutputRequest; | 50 class CopyOutputRequest; |
55 class LayerAnimationEventObserver; | |
56 class LayerClient; | 51 class LayerClient; |
57 class LayerImpl; | 52 class LayerImpl; |
58 class LayerTreeHost; | 53 class LayerTreeHost; |
59 class LayerTreeHostCommon; | 54 class LayerTreeHostCommon; |
60 class LayerTreeImpl; | 55 class LayerTreeImpl; |
61 class LayerTreeSettings; | |
62 class MutatorHost; | 56 class MutatorHost; |
63 class RenderingStatsInstrumentation; | |
64 class ResourceUpdateQueue; | |
65 class ScrollbarLayerInterface; | 57 class ScrollbarLayerInterface; |
66 class SimpleEnclosedRegion; | |
67 | 58 |
68 namespace proto { | 59 namespace proto { |
69 class LayerNode; | 60 class LayerNode; |
70 class LayerProperties; | 61 class LayerProperties; |
71 class LayerUpdate; | |
72 } // namespace proto | 62 } // namespace proto |
73 | 63 |
74 // Base class for composited layers. Special layer types are derived from | 64 // Base class for composited layers. Special layer types are derived from |
75 // this class. | 65 // this class. |
76 class CC_EXPORT Layer : public base::RefCounted<Layer> { | 66 class CC_EXPORT Layer : public base::RefCounted<Layer> { |
77 public: | 67 public: |
78 using LayerListType = LayerList; | 68 using LayerListType = LayerList; |
79 using LayerIdMap = std::unordered_map<int, scoped_refptr<Layer>>; | 69 using LayerIdMap = std::unordered_map<int, scoped_refptr<Layer>>; |
80 | 70 |
81 enum LayerIdLabels { | 71 enum LayerIdLabels { |
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 // These all act like draw properties, so don't need push properties. | 692 // These all act like draw properties, so don't need push properties. |
703 gfx::Rect visible_layer_rect_; | 693 gfx::Rect visible_layer_rect_; |
704 size_t num_unclipped_descendants_; | 694 size_t num_unclipped_descendants_; |
705 | 695 |
706 DISALLOW_COPY_AND_ASSIGN(Layer); | 696 DISALLOW_COPY_AND_ASSIGN(Layer); |
707 }; | 697 }; |
708 | 698 |
709 } // namespace cc | 699 } // namespace cc |
710 | 700 |
711 #endif // CC_LAYERS_LAYER_H_ | 701 #endif // CC_LAYERS_LAYER_H_ |
OLD | NEW |