Chromium Code Reviews| Index: cc/font_atlas.h |
| diff --git a/cc/font_atlas.h b/cc/font_atlas.h |
| index 1858c12f74484f177c704a6baf97518ea315aef7..0a227a69aa6484bfb63f5c4de341eff3a5dd77fd 100644 |
| --- a/cc/font_atlas.h |
| +++ b/cc/font_atlas.h |
| @@ -9,8 +9,8 @@ |
| #include "base/basictypes.h" |
| #include "base/memory/scoped_ptr.h" |
| -#include "IntRect.h" |
| #include "third_party/skia/include/core/SkBitmap.h" |
| +#include "ui/gfx/rect.h" |
|
tfarina
2012/11/01 01:51:22
do'h! I had a patch here for this!! :(
danakj
2012/11/01 01:52:39
Oh :( Ya I threw this one up last week, but it's b
|
| class SkCanvas; |
| @@ -24,7 +24,7 @@ namespace cc { |
| // This class provides basic ability to draw text onto the heads-up display. |
| class FontAtlas { |
| public: |
| - static scoped_ptr<FontAtlas> create(SkBitmap bitmap, IntRect asciiToRectTable[128], int fontHeight) |
| + static scoped_ptr<FontAtlas> create(SkBitmap bitmap, gfx::Rect asciiToRectTable[128], int fontHeight) |
| { |
| return make_scoped_ptr(new FontAtlas(bitmap, asciiToRectTable, fontHeight)); |
| } |
| @@ -42,15 +42,15 @@ public: |
| void drawDebugAtlas(SkCanvas*, const gfx::Point& destPosition) const; |
| private: |
| - FontAtlas(SkBitmap, IntRect asciiToRectTable[128], int fontHeight); |
| + FontAtlas(SkBitmap, gfx::Rect asciiToRectTable[128], int fontHeight); |
| void drawOneLineOfTextInternal(SkCanvas*, const SkPaint&, const std::string&, const gfx::Point& destPosition) const; |
| // The actual texture atlas containing all the pre-rendered glyphs. |
| SkBitmap m_atlas; |
| - // The look-up tables mapping ascii characters to their IntRect locations on the atlas. |
| - IntRect m_asciiToRectTable[128]; |
| + // The look-up tables mapping ascii characters to their gfx::Rect locations on the atlas. |
| + gfx::Rect m_asciiToRectTable[128]; |
| int m_fontHeight; |