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

Unified Diff: gm/coloremoji.cpp

Issue 23952005: fix broken build due to coloremoji gm. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/coloremoji.cpp
diff --git a/gm/coloremoji.cpp b/gm/coloremoji.cpp
index 8316a3851cd5a4cb87c6859d9f31341ac823e198..c18806e1b7d2f5e6364863c279ad3f40350c947d 100644
--- a/gm/coloremoji.cpp
+++ b/gm/coloremoji.cpp
@@ -59,8 +59,8 @@ protected:
const int textYOffset[] = { 10, 40, 100};
SkASSERT(sizeof(textSize) == sizeof(textYOffset));
for (size_t y = 0; y < sizeof(textSize) / sizeof(int); ++y) {
- paint.setTextSize(textSize[y]);
- canvas->drawText(text, strlen(text), 10, textYOffset[y], paint);
+ paint.setTextSize(SkIntToScalar(textSize[y]));
+ canvas->drawText(text, strlen(text), 10, SkIntToScalar(textYOffset[y]), paint);
}
// setup work needed to draw text with different clips
@@ -110,7 +110,10 @@ private:
//////////////////////////////////////////////////////////////////////////////
+#if !defined(SK_BUILD_FOR_ANDROID)
+// fail for now until the appropriate freetype changes are submitted
static GM* MyFactory(void*) { return new ColorEmojiGM; }
static GMRegistry reg(MyFactory);
+#endif
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698