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

Side by Side Diff: bench/InterpBench.cpp

Issue 1841123002: Reverse dependency between SkScalar.h and SkFixed.h (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 4 years, 8 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 | « no previous file | bench/MathBench.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 2015 Google Inc. 2 * Copyright 2015 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 "Benchmark.h" 8 #include "Benchmark.h"
9 #include "SkColorPriv.h" 9 #include "SkColorPriv.h"
10 #include "SkFixed.h"
10 #include "SkMatrix.h" 11 #include "SkMatrix.h"
11 #include "SkPaint.h" 12 #include "SkPaint.h"
12 #include "SkRandom.h" 13 #include "SkRandom.h"
13 #include "SkString.h" 14 #include "SkString.h"
14 15
15 #define TILE(x, width) (((x) & 0xFFFF) * width >> 16) 16 #define TILE(x, width) (((x) & 0xFFFF) * width >> 16)
16 17
17 class InterpBench : public Benchmark { 18 class InterpBench : public Benchmark {
18 enum { 19 enum {
19 kBuffer = 128, 20 kBuffer = 128,
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 typedef InterpBench INHERITED; 162 typedef InterpBench INHERITED;
162 }; 163 };
163 164
164 /////////////////////////////////////////////////////////////////////////////// 165 ///////////////////////////////////////////////////////////////////////////////
165 166
166 DEF_BENCH( return new Fixed16D16Interp(); ) 167 DEF_BENCH( return new Fixed16D16Interp(); )
167 DEF_BENCH( return new Fixed32D32Interp(); ) 168 DEF_BENCH( return new Fixed32D32Interp(); )
168 DEF_BENCH( return new Fixed16D48Interp(); ) 169 DEF_BENCH( return new Fixed16D48Interp(); )
169 DEF_BENCH( return new FloatInterp(); ) 170 DEF_BENCH( return new FloatInterp(); )
170 DEF_BENCH( return new DoubleInterp(); ) 171 DEF_BENCH( return new DoubleInterp(); )
OLDNEW
« no previous file with comments | « no previous file | bench/MathBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698