| 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_HEADS_UP_DISPLAY_LAYER_IMPL_H_ | 5 #ifndef CC_HEADS_UP_DISPLAY_LAYER_IMPL_H_ |
| 6 #define CC_HEADS_UP_DISPLAY_LAYER_IMPL_H_ | 6 #define CC_HEADS_UP_DISPLAY_LAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/time.h" | 9 #include "base/time.h" |
| 10 #include "cc/cc_export.h" | 10 #include "cc/cc_export.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 class CC_EXPORT HeadsUpDisplayLayerImpl : public LayerImpl { | 26 class CC_EXPORT HeadsUpDisplayLayerImpl : public LayerImpl { |
| 27 public: | 27 public: |
| 28 static scoped_ptr<HeadsUpDisplayLayerImpl> create(LayerTreeImpl* treeImpl, i
nt id) | 28 static scoped_ptr<HeadsUpDisplayLayerImpl> create(LayerTreeImpl* treeImpl, i
nt id) |
| 29 { | 29 { |
| 30 return make_scoped_ptr(new HeadsUpDisplayLayerImpl(treeImpl, id)); | 30 return make_scoped_ptr(new HeadsUpDisplayLayerImpl(treeImpl, id)); |
| 31 } | 31 } |
| 32 virtual ~HeadsUpDisplayLayerImpl(); | 32 virtual ~HeadsUpDisplayLayerImpl(); |
| 33 | 33 |
| 34 void setFontAtlas(scoped_ptr<FontAtlas>); | 34 void setFontAtlas(scoped_ptr<FontAtlas>); |
| 35 | 35 |
| 36 virtual scoped_ptr<LayerImpl> createLayerImpl(LayerTreeImpl* treeImpl) OVERR
IDE; |
| 37 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE; |
| 38 |
| 36 virtual void willDraw(ResourceProvider*) OVERRIDE; | 39 virtual void willDraw(ResourceProvider*) OVERRIDE; |
| 37 virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE; | 40 virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE; |
| 38 void updateHudTexture(ResourceProvider*); | 41 void updateHudTexture(ResourceProvider*); |
| 39 virtual void didDraw(ResourceProvider*) OVERRIDE; | 42 virtual void didDraw(ResourceProvider*) OVERRIDE; |
| 40 | 43 |
| 41 virtual void didLoseOutputSurface() OVERRIDE; | 44 virtual void didLoseOutputSurface() OVERRIDE; |
| 42 | 45 |
| 43 virtual bool layerIsAlwaysDamaged() const OVERRIDE; | 46 virtual bool layerIsAlwaysDamaged() const OVERRIDE; |
| 44 | 47 |
| 45 private: | 48 private: |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 85 |
| 83 Graph m_fpsGraph; | 86 Graph m_fpsGraph; |
| 84 Graph m_paintTimeGraph; | 87 Graph m_paintTimeGraph; |
| 85 | 88 |
| 86 base::TimeTicks m_timeOfLastGraphUpdate; | 89 base::TimeTicks m_timeOfLastGraphUpdate; |
| 87 }; | 90 }; |
| 88 | 91 |
| 89 } // namespace cc | 92 } // namespace cc |
| 90 | 93 |
| 91 #endif // CC_HEADS_UP_DISPLAY_LAYER_IMPL_H_ | 94 #endif // CC_HEADS_UP_DISPLAY_LAYER_IMPL_H_ |
| OLD | NEW |