Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1142)

Unified Diff: cc/font_atlas.h

Issue 11360010: cc: Pass gfx::Size type to FontAtlas drawText() function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/font_atlas.cc » ('j') | cc/heads_up_display_layer_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/font_atlas.h
diff --git a/cc/font_atlas.h b/cc/font_atlas.h
index f9baea14fc2b8963457cd728e3052c11c28bbb24..1858c12f74484f177c704a6baf97518ea315aef7 100644
--- a/cc/font_atlas.h
+++ b/cc/font_atlas.h
@@ -16,12 +16,11 @@ class SkCanvas;
namespace gfx {
class Point;
+class Size;
}
namespace cc {
-class IntSize;
-
// This class provides basic ability to draw text onto the heads-up display.
class FontAtlas {
public:
@@ -34,10 +33,10 @@ public:
// Draws multiple lines of text where each line of text is separated by '\n'.
// - Correct glyphs will be drawn for ASCII codes in the range 32-127; any characters
// outside that range will be displayed as a default rectangle glyph.
- // - IntSize clip is used to avoid wasting time drawing things that are outside the
+ // - gfx::Size clip is used to avoid wasting time drawing things that are outside the
// target canvas bounds.
// - Should only be called only on the impl thread.
- void drawText(SkCanvas*, const SkPaint&, const std::string& text, const gfx::Point& destPosition, const IntSize& clip) const;
+ void drawText(SkCanvas*, const SkPaint&, const std::string& text, const gfx::Point& destPosition, const gfx::Size& clip) const;
// Draws the entire atlas at the specified position, just for debugging purposes.
void drawDebugAtlas(SkCanvas*, const gfx::Point& destPosition) const;
« no previous file with comments | « no previous file | cc/font_atlas.cc » ('j') | cc/heads_up_display_layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698