| 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" |
| 11 #include "cc/font_atlas.h" | 11 #include "cc/font_atlas.h" |
| 12 #include "cc/layer_impl.h" | 12 #include "cc/layer_impl.h" |
| 13 #include "cc/scoped_texture.h" | 13 #include "cc/scoped_resource.h" |
| 14 | 14 |
| 15 class SkCanvas; | 15 class SkCanvas; |
| 16 class SkPaint; | 16 class SkPaint; |
| 17 struct SkRect; | 17 struct SkRect; |
| 18 | 18 |
| 19 namespace cc { | 19 namespace cc { |
| 20 | 20 |
| 21 class DebugRectHistory; | 21 class DebugRectHistory; |
| 22 class FontAtlas; | 22 class FontAtlas; |
| 23 class FrameRateCounter; | 23 class FrameRateCounter; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 47 | 47 |
| 48 virtual const char* layerTypeAsString() const OVERRIDE; | 48 virtual const char* layerTypeAsString() const OVERRIDE; |
| 49 | 49 |
| 50 void drawHudContents(SkCanvas*); | 50 void drawHudContents(SkCanvas*); |
| 51 int drawFPSCounter(SkCanvas*, FrameRateCounter*); | 51 int drawFPSCounter(SkCanvas*, FrameRateCounter*); |
| 52 void drawFPSCounterText(SkCanvas*, SkPaint&, FrameRateCounter*, SkRect); | 52 void drawFPSCounterText(SkCanvas*, SkPaint&, FrameRateCounter*, SkRect); |
| 53 void drawFPSCounterGraph(SkCanvas*, SkPaint&, FrameRateCounter*, SkRect); | 53 void drawFPSCounterGraph(SkCanvas*, SkPaint&, FrameRateCounter*, SkRect); |
| 54 void drawDebugRects(SkCanvas*, DebugRectHistory*); | 54 void drawDebugRects(SkCanvas*, DebugRectHistory*); |
| 55 | 55 |
| 56 scoped_ptr<FontAtlas> m_fontAtlas; | 56 scoped_ptr<FontAtlas> m_fontAtlas; |
| 57 scoped_ptr<ScopedTexture> m_hudTexture; | 57 scoped_ptr<ScopedResource> m_hudTexture; |
| 58 scoped_ptr<SkCanvas> m_hudCanvas; | 58 scoped_ptr<SkCanvas> m_hudCanvas; |
| 59 | 59 |
| 60 double m_averageFPS; | 60 double m_averageFPS; |
| 61 double m_stdDeviation; | 61 double m_stdDeviation; |
| 62 | 62 |
| 63 base::TimeTicks textUpdateTime; | 63 base::TimeTicks textUpdateTime; |
| 64 | 64 |
| 65 bool m_showFPSCounter; | 65 bool m_showFPSCounter; |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 } // namespace cc | 68 } // namespace cc |
| 69 | 69 |
| 70 #endif // CC_HEADS_UP_DISPLAY_LAYER_IMPL_H_ | 70 #endif // CC_HEADS_UP_DISPLAY_LAYER_IMPL_H_ |
| OLD | NEW |