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

Side by Side Diff: gm/stringart.cpp

Issue 1262703002: make tests portable by using 565 compatible colors (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix dstreadshuffle text portable gm Created 5 years, 4 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 unified diff | Download patch
« no previous file with comments | « gm/skbug1719.cpp ('k') | gm/strokes.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "gm.h" 8 #include "gm.h"
9 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkPath.h" 10 #include "SkPath.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 length*SkScalarSin(step) + center.fY); 48 length*SkScalarSin(step) + center.fY);
49 path.lineTo(rp); 49 path.lineTo(rp);
50 length += angle / SkScalarHalf(SK_ScalarPI); 50 length += angle / SkScalarHalf(SK_ScalarPI);
51 step += angle; 51 step += angle;
52 } 52 }
53 path.close(); 53 path.close();
54 54
55 SkPaint paint; 55 SkPaint paint;
56 paint.setAntiAlias(true); 56 paint.setAntiAlias(true);
57 paint.setStyle(SkPaint::kStroke_Style); 57 paint.setStyle(SkPaint::kStroke_Style);
58 paint.setColor(0xFF007700); 58 paint.setColor(sk_tool_utils::color_to_565(0xFF007700));
59 59
60 canvas->drawPath(path, paint); 60 canvas->drawPath(path, paint);
61 } 61 }
62 62
63 private: 63 private:
64 typedef GM INHERITED; 64 typedef GM INHERITED;
65 }; 65 };
66 66
67 DEF_GM( return new StringArtGM; ) 67 DEF_GM( return new StringArtGM; )
OLDNEW
« no previous file with comments | « gm/skbug1719.cpp ('k') | gm/strokes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698