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

Side by Side Diff: gm/shadertext2.cpp

Issue 1265033002: IWYU: 'core' target, files starting A-C. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase (a file was deleted). 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/shadertext.cpp ('k') | gm/shadows.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 #include "gm.h" 7 #include "gm.h"
8 #include "SkCanvas.h" 8 #include "SkCanvas.h"
9 #include "SkGradientShader.h" 9 #include "SkGradientShader.h"
10 #include "SkPath.h"
10 11
11 namespace skiagm { 12 namespace skiagm {
12 13
13 static void makebm(SkBitmap* bm, int w, int h) { 14 static void makebm(SkBitmap* bm, int w, int h) {
14 bm->allocN32Pixels(w, h); 15 bm->allocN32Pixels(w, h);
15 bm->eraseColor(SK_ColorTRANSPARENT); 16 bm->eraseColor(SK_ColorTRANSPARENT);
16 17
17 SkCanvas canvas(*bm); 18 SkCanvas canvas(*bm);
18 SkScalar s = SkIntToScalar(SkMin32(w, h)); 19 SkScalar s = SkIntToScalar(SkMin32(w, h));
19 static const SkPoint kPts0[] = { { 0, 0 }, { s, s } }; 20 static const SkPoint kPts0[] = { { 0, 0 }, { s, s } };
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 202
202 private: 203 private:
203 typedef GM INHERITED; 204 typedef GM INHERITED;
204 }; 205 };
205 206
206 /////////////////////////////////////////////////////////////////////////////// 207 ///////////////////////////////////////////////////////////////////////////////
207 208
208 static GM* MyFactory(void*) { return new ShaderText2GM; } 209 static GM* MyFactory(void*) { return new ShaderText2GM; }
209 static GMRegistry reg(MyFactory); 210 static GMRegistry reg(MyFactory);
210 } 211 }
OLDNEW
« no previous file with comments | « gm/shadertext.cpp ('k') | gm/shadows.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698