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

Side by Side Diff: gm/emptypath.cpp

Issue 1183753002: remove lcd (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | no next file » | 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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #include "gm.h" 8 #include "gm.h"
9 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkPaint.h" 10 #include "SkPaint.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 static const StyleAndName gStyles[] = { 57 static const StyleAndName gStyles[] = {
58 {SkPaint::kFill_Style, "Fill"}, 58 {SkPaint::kFill_Style, "Fill"},
59 {SkPaint::kStroke_Style, "Stroke"}, 59 {SkPaint::kStroke_Style, "Stroke"},
60 {SkPaint::kStrokeAndFill_Style, "Stroke And Fill"}, 60 {SkPaint::kStrokeAndFill_Style, "Stroke And Fill"},
61 }; 61 };
62 62
63 SkPaint titlePaint; 63 SkPaint titlePaint;
64 titlePaint.setColor(SK_ColorBLACK); 64 titlePaint.setColor(SK_ColorBLACK);
65 titlePaint.setAntiAlias(true); 65 titlePaint.setAntiAlias(true);
66 sk_tool_utils::set_portable_typeface_always(&titlePaint); 66 sk_tool_utils::set_portable_typeface_always(&titlePaint);
67 titlePaint.setLCDRenderText(true);
68 titlePaint.setTextSize(15 * SK_Scalar1); 67 titlePaint.setTextSize(15 * SK_Scalar1);
69 const char title[] = "Empty Paths Drawn Into Rectangle Clips With " 68 const char title[] = "Empty Paths Drawn Into Rectangle Clips With "
70 "Indicated Style and Fill"; 69 "Indicated Style and Fill";
71 canvas->drawText(title, strlen(title), 70 canvas->drawText(title, strlen(title),
72 20 * SK_Scalar1, 71 20 * SK_Scalar1,
73 20 * SK_Scalar1, 72 20 * SK_Scalar1,
74 titlePaint); 73 titlePaint);
75 74
76 SkRandom rand; 75 SkRandom rand;
77 SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1); 76 SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 private: 125 private:
127 typedef GM INHERITED; 126 typedef GM INHERITED;
128 }; 127 };
129 128
130 ////////////////////////////////////////////////////////////////////////////// 129 //////////////////////////////////////////////////////////////////////////////
131 130
132 static GM* MyFactory(void*) { return new EmptyPathGM; } 131 static GM* MyFactory(void*) { return new EmptyPathGM; }
133 static GMRegistry reg(MyFactory); 132 static GMRegistry reg(MyFactory);
134 133
135 } 134 }
OLDNEW
« 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