OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_HEADS_UP_DISPLAY_LAYER_IMPL_H_ | 5 #ifndef CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ |
6 #define CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ | 6 #define CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
15 #include "cc/base/cc_export.h" | 15 #include "cc/base/cc_export.h" |
16 #include "cc/debug/debug_rect_history.h" | 16 #include "cc/debug/debug_rect_history.h" |
17 #include "cc/layers/layer_impl.h" | 17 #include "cc/layers/layer_impl.h" |
18 #include "cc/resources/memory_history.h" | 18 #include "cc/resources/memory_history.h" |
19 #include "cc/resources/scoped_resource.h" | 19 #include "cc/resources/scoped_resource.h" |
20 #include "third_party/skia/include/core/SkRefCnt.h" | 20 #include "third_party/skia/include/core/SkRefCnt.h" |
21 | 21 |
22 class SkCanvas; | 22 class SkCanvas; |
23 class SkPaint; | 23 class SkPaint; |
24 class SkTypeface; | 24 class SkTypeface; |
25 struct SkRect; | 25 struct SkRect; |
26 | 26 |
27 namespace cc { | 27 namespace cc { |
28 | 28 |
29 class FrameRateCounter; | 29 class FrameRateCounter; |
30 class PaintTimeCounter; | |
31 | 30 |
32 class CC_EXPORT HeadsUpDisplayLayerImpl : public LayerImpl { | 31 class CC_EXPORT HeadsUpDisplayLayerImpl : public LayerImpl { |
33 public: | 32 public: |
34 static std::unique_ptr<HeadsUpDisplayLayerImpl> Create( | 33 static std::unique_ptr<HeadsUpDisplayLayerImpl> Create( |
35 LayerTreeImpl* tree_impl, | 34 LayerTreeImpl* tree_impl, |
36 int id) { | 35 int id) { |
37 return base::WrapUnique(new HeadsUpDisplayLayerImpl(tree_impl, id)); | 36 return base::WrapUnique(new HeadsUpDisplayLayerImpl(tree_impl, id)); |
38 } | 37 } |
39 ~HeadsUpDisplayLayerImpl() override; | 38 ~HeadsUpDisplayLayerImpl() override; |
40 | 39 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 std::vector<DebugRect> paint_rects_; | 146 std::vector<DebugRect> paint_rects_; |
148 | 147 |
149 base::TimeTicks time_of_last_graph_update_; | 148 base::TimeTicks time_of_last_graph_update_; |
150 | 149 |
151 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayerImpl); | 150 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayerImpl); |
152 }; | 151 }; |
153 | 152 |
154 } // namespace cc | 153 } // namespace cc |
155 | 154 |
156 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ | 155 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ |
OLD | NEW |