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

Side by Side Diff: gm/beziers.cpp

Issue 1273613002: Revert of IWYU: 'core' target, files starting A-C. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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/aaxfermodes.cpp ('k') | gm/bigblurs.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 2014 Google Inc. 2 * Copyright 2014 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 "SkPath.h"
10 #include "SkRandom.h" 9 #include "SkRandom.h"
11 10
12 #define W 400 11 #define W 400
13 #define H 400 12 #define H 400
14 #define N 10 13 #define N 10
15 14
16 static const SkScalar SH = SkIntToScalar(H); 15 static const SkScalar SH = SkIntToScalar(H);
17 16
18 static void rnd_quad(SkPath* p, SkPaint* paint, SkRandom& rand) { 17 static void rnd_quad(SkPath* p, SkPaint* paint, SkRandom& rand) {
19 p->moveTo(rand.nextRangeScalar(0, W), rand.nextRangeScalar(0, H)); 18 p->moveTo(rand.nextRangeScalar(0, W), rand.nextRangeScalar(0, H));
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 canvas->drawPath(p, paint); 74 canvas->drawPath(p, paint);
76 } 75 }
77 } 76 }
78 77
79 private: 78 private:
80 typedef skiagm::GM INHERITED; 79 typedef skiagm::GM INHERITED;
81 }; 80 };
82 81
83 static skiagm::GM* F0(void*) { return new BeziersGM; } 82 static skiagm::GM* F0(void*) { return new BeziersGM; }
84 static skiagm::GMRegistry R0(F0); 83 static skiagm::GMRegistry R0(F0);
OLDNEW
« no previous file with comments | « gm/aaxfermodes.cpp ('k') | gm/bigblurs.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698