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

Side by Side Diff: gm/gammatext.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/fontscaler.cpp ('k') | gm/getpostextpath.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 2011 Google Inc. 2 * Copyright 2011 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 GammaTextGM() { 115 GammaTextGM() {
116 116
117 } 117 }
118 118
119 protected: 119 protected:
120 virtual SkString onShortName() { 120 virtual SkString onShortName() {
121 return SkString("gammatext"); 121 return SkString("gammatext");
122 } 122 }
123 123
124 virtual SkISize onISize() { 124 virtual SkISize onISize() {
125 return make_isize(1024, HEIGHT); 125 return SkISize::Make(1024, HEIGHT);
126 } 126 }
127 127
128 static void drawGrad(SkCanvas* canvas) { 128 static void drawGrad(SkCanvas* canvas) {
129 SkPoint pts[] = { { 0, 0 }, { 0, SkIntToScalar(HEIGHT) } }; 129 SkPoint pts[] = { { 0, 0 }, { 0, SkIntToScalar(HEIGHT) } };
130 #if 0 130 #if 0
131 const SkColor colors[] = { SK_ColorBLACK, SK_ColorWHITE }; 131 const SkColor colors[] = { SK_ColorBLACK, SK_ColorWHITE };
132 SkShader* s = SkGradientShader::CreateLinear(pts, colors, NULL, 2, SkSha der::kClamp_TileMode); 132 SkShader* s = SkGradientShader::CreateLinear(pts, colors, NULL, 2, SkSha der::kClamp_TileMode);
133 #else 133 #else
134 SkShader* s = make_heatGradient(pts); 134 SkShader* s = make_heatGradient(pts);
135 #endif 135 #endif
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 private: 201 private:
202 typedef GM INHERITED; 202 typedef GM INHERITED;
203 }; 203 };
204 204
205 ////////////////////////////////////////////////////////////////////////////// 205 //////////////////////////////////////////////////////////////////////////////
206 206
207 static GM* MyFactory(void*) { return new GammaTextGM; } 207 static GM* MyFactory(void*) { return new GammaTextGM; }
208 static GMRegistry reg(MyFactory); 208 static GMRegistry reg(MyFactory);
209 209
210 } 210 }
OLDNEW
« no previous file with comments | « gm/fontscaler.cpp ('k') | gm/getpostextpath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698