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

Side by Side Diff: gm/roundrects.cpp

Issue 2209533004: spin off easy stuff from Herb's windows GN CL (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 4 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/rects.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 2013 Google Inc. 2 * Copyright 2013 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 "SkTArray.h" 9 #include "SkTArray.h"
10 #include "SkRandom.h" 10 #include "SkRandom.h"
11 #include "SkMatrix.h" 11 #include "SkMatrix.h"
12 #include "SkBlurMaskFilter.h" 12 #include "SkBlurMaskFilter.h"
13 #include "SkColorFilter.h"
13 #include "SkGradientShader.h" 14 #include "SkGradientShader.h"
14 #include "SkBlurDrawLooper.h" 15 #include "SkBlurDrawLooper.h"
15 #include "SkRect.h" 16 #include "SkRect.h"
16 #include "SkRRect.h" 17 #include "SkRRect.h"
17 18
18 namespace skiagm { 19 namespace skiagm {
19 20
20 static SkColor gen_color(SkRandom* rand) { 21 static SkColor gen_color(SkRandom* rand) {
21 SkScalar hsv[3]; 22 SkScalar hsv[3];
22 hsv[0] = rand->nextRangeF(0.0f, 360.0f); 23 hsv[0] = rand->nextRangeF(0.0f, 360.0f);
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 345
345 typedef GM INHERITED; 346 typedef GM INHERITED;
346 }; 347 };
347 348
348 ////////////////////////////////////////////////////////////////////////////// 349 //////////////////////////////////////////////////////////////////////////////
349 350
350 static GM* MyFactory(void*) { return new RoundRectGM; } 351 static GM* MyFactory(void*) { return new RoundRectGM; }
351 static GMRegistry reg(MyFactory); 352 static GMRegistry reg(MyFactory);
352 353
353 } 354 }
OLDNEW
« no previous file with comments | « gm/rects.cpp ('k') | gm/shadows.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698