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: bench/PathIterBench.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 | « bench/PathBench.cpp ('k') | bench/RectoriBench.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 #include "Benchmark.h" 8 #include "Benchmark.h"
9 #include "SkBitmap.h" 9 #include "SkBitmap.h"
10 #include "SkCanvas.h" 10 #include "SkCanvas.h"
11 #include "SkColorPriv.h" 11 #include "SkColorPriv.h"
12 #include "SkPaint.h" 12 #include "SkPaint.h"
13 #include "SkPath.h"
13 #include "SkRandom.h" 14 #include "SkRandom.h"
14 #include "SkShader.h" 15 #include "SkShader.h"
15 #include "SkString.h" 16 #include "SkString.h"
16 17
17 static int rand_pts(SkRandom& rand, SkPoint pts[4]) { 18 static int rand_pts(SkRandom& rand, SkPoint pts[4]) {
18 int n = rand.nextU() & 3; 19 int n = rand.nextU() & 3;
19 n += 1; 20 n += 1;
20 21
21 for (int i = 0; i < n; ++i) { 22 for (int i = 0; i < n; ++i) {
22 pts[i].fX = rand.nextSScalar1(); 23 pts[i].fX = rand.nextSScalar1();
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 } 87 }
87 88
88 private: 89 private:
89 typedef Benchmark INHERITED; 90 typedef Benchmark INHERITED;
90 }; 91 };
91 92
92 /////////////////////////////////////////////////////////////////////////////// 93 ///////////////////////////////////////////////////////////////////////////////
93 94
94 DEF_BENCH( return new PathIterBench(false); ) 95 DEF_BENCH( return new PathIterBench(false); )
95 DEF_BENCH( return new PathIterBench(true); ) 96 DEF_BENCH( return new PathIterBench(true); )
OLDNEW
« no previous file with comments | « bench/PathBench.cpp ('k') | bench/RectoriBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698