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

Side by Side Diff: bench/MathBench.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 | « bench/InterpBench.cpp ('k') | include/core/SkScalar.h » ('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 static float sk_fsel(float pred, float result_ge, float result_lt) { 16 static float sk_fsel(float pred, float result_ge, float result_lt) {
16 return pred >= 0 ? result_ge : result_lt; 17 return pred >= 0 ? result_ge : result_lt;
17 } 18 }
18 19
19 static float fast_floor(float x) { 20 static float fast_floor(float x) {
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 600
600 DEF_BENCH( return new FloorBench(false); ) 601 DEF_BENCH( return new FloorBench(false); )
601 DEF_BENCH( return new FloorBench(true); ) 602 DEF_BENCH( return new FloorBench(true); )
602 603
603 DEF_BENCH( return new CLZBench(false); ) 604 DEF_BENCH( return new CLZBench(false); )
604 DEF_BENCH( return new CLZBench(true); ) 605 DEF_BENCH( return new CLZBench(true); )
605 606
606 DEF_BENCH( return new NormalizeBench(); ) 607 DEF_BENCH( return new NormalizeBench(); )
607 608
608 DEF_BENCH( return new FixedMathBench(); ) 609 DEF_BENCH( return new FixedMathBench(); )
OLDNEW
« no previous file with comments | « bench/InterpBench.cpp ('k') | include/core/SkScalar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698