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 CCHeadsUpDisplayLayerImpl_h | 5 #ifndef CCHeadsUpDisplayLayerImpl_h |
6 #define CCHeadsUpDisplayLayerImpl_h | 6 #define CCHeadsUpDisplayLayerImpl_h |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "cc/cc_export.h" |
9 #include "cc/font_atlas.h" | 10 #include "cc/font_atlas.h" |
10 #include "cc/layer_impl.h" | 11 #include "cc/layer_impl.h" |
11 #include "cc/scoped_texture.h" | 12 #include "cc/scoped_texture.h" |
12 | 13 |
13 class SkCanvas; | 14 class SkCanvas; |
14 | 15 |
15 namespace cc { | 16 namespace cc { |
16 | 17 |
17 class DebugRectHistory; | 18 class DebugRectHistory; |
18 class FontAtlas; | 19 class FontAtlas; |
19 class FrameRateCounter; | 20 class FrameRateCounter; |
20 | 21 |
21 class HeadsUpDisplayLayerImpl : public LayerImpl { | 22 class CC_EXPORT HeadsUpDisplayLayerImpl : public LayerImpl { |
22 public: | 23 public: |
23 static scoped_ptr<HeadsUpDisplayLayerImpl> create(int id) | 24 static scoped_ptr<HeadsUpDisplayLayerImpl> create(int id) |
24 { | 25 { |
25 return make_scoped_ptr(new HeadsUpDisplayLayerImpl(id)); | 26 return make_scoped_ptr(new HeadsUpDisplayLayerImpl(id)); |
26 } | 27 } |
27 virtual ~HeadsUpDisplayLayerImpl(); | 28 virtual ~HeadsUpDisplayLayerImpl(); |
28 | 29 |
29 void setFontAtlas(scoped_ptr<FontAtlas>); | 30 void setFontAtlas(scoped_ptr<FontAtlas>); |
30 | 31 |
31 virtual void willDraw(ResourceProvider*) OVERRIDE; | 32 virtual void willDraw(ResourceProvider*) OVERRIDE; |
(...skipping 16 matching lines...) Expand all Loading... |
48 void drawDebugRects(SkCanvas*, DebugRectHistory*); | 49 void drawDebugRects(SkCanvas*, DebugRectHistory*); |
49 | 50 |
50 scoped_ptr<FontAtlas> m_fontAtlas; | 51 scoped_ptr<FontAtlas> m_fontAtlas; |
51 scoped_ptr<ScopedTexture> m_hudTexture; | 52 scoped_ptr<ScopedTexture> m_hudTexture; |
52 scoped_ptr<SkCanvas> m_hudCanvas; | 53 scoped_ptr<SkCanvas> m_hudCanvas; |
53 }; | 54 }; |
54 | 55 |
55 } // namespace cc | 56 } // namespace cc |
56 | 57 |
57 #endif // CCHeadsUpDisplayLayerImpl_h | 58 #endif // CCHeadsUpDisplayLayerImpl_h |
OLD | NEW |