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

Side by Side Diff: gm/lcdtext.cpp

Issue 281383013: skiagm::make_isize -> SkISize::Make (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 7 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/inversepaths.cpp ('k') | gm/linepaths.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 /* 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 8
9 9
10 /* Tests text rendering with LCD and subpixel rendering turned on and off. 10 /* Tests text rendering with LCD and subpixel rendering turned on and off.
(...skipping 10 matching lines...) Expand all
21 const int pointSize = 36; 21 const int pointSize = 36;
22 textHeight = SkIntToScalar(pointSize); 22 textHeight = SkIntToScalar(pointSize);
23 } 23 }
24 24
25 protected: 25 protected:
26 26
27 SkString onShortName() { 27 SkString onShortName() {
28 return SkString("lcdtext"); 28 return SkString("lcdtext");
29 } 29 }
30 30
31 SkISize onISize() { return make_isize(640, 480); } 31 SkISize onISize() { return SkISize::Make(640, 480); }
32 32
33 virtual void onDraw(SkCanvas* canvas) { 33 virtual void onDraw(SkCanvas* canvas) {
34 34
35 y = textHeight; 35 y = textHeight;
36 drawText(canvas, SkString("TEXT: SubpixelTrue LCDRenderTrue"), 36 drawText(canvas, SkString("TEXT: SubpixelTrue LCDRenderTrue"),
37 true, true); 37 true, true);
38 drawText(canvas, SkString("TEXT: SubpixelTrue LCDRenderFalse"), 38 drawText(canvas, SkString("TEXT: SubpixelTrue LCDRenderFalse"),
39 true, false); 39 true, false);
40 drawText(canvas, SkString("TEXT: SubpixelFalse LCDRenderTrue"), 40 drawText(canvas, SkString("TEXT: SubpixelFalse LCDRenderTrue"),
41 false, true); 41 false, true);
(...skipping 19 matching lines...) Expand all
61 typedef GM INHERITED; 61 typedef GM INHERITED;
62 SkScalar y, textHeight; 62 SkScalar y, textHeight;
63 }; 63 };
64 64
65 /////////////////////////////////////////////////////////////////////////////// 65 ///////////////////////////////////////////////////////////////////////////////
66 66
67 static GM* MyFactory(void*) { return new LcdTextGM; } 67 static GM* MyFactory(void*) { return new LcdTextGM; }
68 static GMRegistry reg(MyFactory); 68 static GMRegistry reg(MyFactory);
69 69
70 } 70 }
OLDNEW
« no previous file with comments | « gm/inversepaths.cpp ('k') | gm/linepaths.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698