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

Side by Side Diff: cc/heads_up_display_layer_impl.h

Issue 11365025: Make cc a component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « cc/gl_renderer.h ('k') | cc/image_layer.h » ('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 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
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
OLDNEW
« no previous file with comments | « cc/gl_renderer.h ('k') | cc/image_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698