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/dftext.cpp

Issue 805543002: DM warning-free on win64 (Closed) Base URL: https://skia.googlesource.com/skia.git@w64
Patch Set: Created 6 years 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 | gm/glyph_pos_align.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/dftext.cpp
diff --git a/gm/dftext.cpp b/gm/dftext.cpp
index 16fe4bd385db9241c574cadc8698b0ee13a8caee..d501e586734272bf4e61dd504f1079e22b55cfca 100755
--- a/gm/dftext.cpp
+++ b/gm/dftext.cpp
@@ -138,8 +138,8 @@ protected:
canvas->scale(2.0f, 2.0f);
- SkAutoTArray<SkPoint> pos(textLen);
- SkAutoTArray<SkScalar> widths(textLen);
+ SkAutoTArray<SkPoint> pos(SkToInt(textLen));
+ SkAutoTArray<SkScalar> widths(SkToInt(textLen));
paint.setTextSize(textSizes[0]);
paint.getTextWidths(text, textLen, &widths[0]);
« no previous file with comments | « no previous file | gm/glyph_pos_align.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698