| 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 CCFontAtlas_h | 5 #ifndef CCFontAtlas_h |
| 6 #define CCFontAtlas_h | 6 #define CCFontAtlas_h |
| 7 | 7 |
| 8 #if USE(ACCELERATED_COMPOSITING) | 8 #if USE(ACCELERATED_COMPOSITING) |
| 9 | 9 |
| 10 #include "IntRect.h" | 10 #include "IntRect.h" |
| 11 #include "SkBitmap.h" | 11 #include "SkBitmap.h" |
| 12 #include <string> | 12 #include <string> |
| 13 #include <wtf/OwnPtr.h> | 13 #include <wtf/OwnPtr.h> |
| 14 #include <wtf/PassOwnPtr.h> | 14 #include <wtf/PassOwnPtr.h> |
| 15 | 15 |
| 16 class SkCanvas; | 16 class SkCanvas; |
| 17 | 17 |
| 18 namespace WebCore { | 18 namespace cc { |
| 19 | 19 |
| 20 class Color; | 20 class Color; |
| 21 class FontDescription; | 21 class FontDescription; |
| 22 class GraphicsContext; | 22 class GraphicsContext; |
| 23 class IntPoint; | 23 class IntPoint; |
| 24 class IntSize; | 24 class IntSize; |
| 25 | 25 |
| 26 // This class provides basic ability to draw text onto the heads-up display. | 26 // This class provides basic ability to draw text onto the heads-up display. |
| 27 class CCFontAtlas { | 27 class CCFontAtlas { |
| 28 WTF_MAKE_NONCOPYABLE(CCFontAtlas); | 28 WTF_MAKE_NONCOPYABLE(CCFontAtlas); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 51 | 51 |
| 52 // The actual texture atlas containing all the pre-rendered glyphs. | 52 // The actual texture atlas containing all the pre-rendered glyphs. |
| 53 SkBitmap m_atlas; | 53 SkBitmap m_atlas; |
| 54 | 54 |
| 55 // The look-up tables mapping ascii characters to their IntRect locations on
the atlas. | 55 // The look-up tables mapping ascii characters to their IntRect locations on
the atlas. |
| 56 IntRect m_asciiToRectTable[128]; | 56 IntRect m_asciiToRectTable[128]; |
| 57 | 57 |
| 58 int m_fontHeight; | 58 int m_fontHeight; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace WebCore | 61 } // namespace cc |
| 62 | 62 |
| 63 #endif // USE(ACCELERATED_COMPOSITING) | 63 #endif // USE(ACCELERATED_COMPOSITING) |
| 64 | 64 |
| 65 #endif | 65 #endif |
| OLD | NEW |