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 |
| 5 #ifndef HeadsUpDisplayLayerChromium_h |
| 6 #define HeadsUpDisplayLayerChromium_h |
| 7 |
| 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "CCFontAtlas.h" |
| 10 #include "IntSize.h" |
| 11 #include "LayerChromium.h" |
| 12 |
| 13 namespace cc { |
| 14 |
| 15 class HeadsUpDisplayLayerChromium : public LayerChromium { |
| 16 public: |
| 17 static scoped_refptr<HeadsUpDisplayLayerChromium> create(); |
| 18 |
| 19 virtual void update(CCTextureUpdateQueue&, const CCOcclusionTracker*, CCRend
eringStats&) OVERRIDE; |
| 20 virtual bool drawsContent() const OVERRIDE; |
| 21 |
| 22 void setFontAtlas(scoped_ptr<CCFontAtlas>); |
| 23 |
| 24 virtual scoped_ptr<CCLayerImpl> createCCLayerImpl() OVERRIDE; |
| 25 virtual void pushPropertiesTo(CCLayerImpl*) OVERRIDE; |
| 26 |
| 27 protected: |
| 28 HeadsUpDisplayLayerChromium(); |
| 29 |
| 30 private: |
| 31 virtual ~HeadsUpDisplayLayerChromium(); |
| 32 |
| 33 scoped_ptr<CCFontAtlas> m_fontAtlas; |
| 34 }; |
| 35 |
| 36 } // namespace cc |
| 37 |
| 38 #endif |
OLD | NEW |