OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 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 "Resources.h" | 9 #include "Resources.h" |
10 #include "SkAutoPixmapStorage.h" | |
11 #include "SkData.h" | 10 #include "SkData.h" |
12 #include "SkImage.h" | 11 #include "SkImage.h" |
13 #include "SkPDFBitmap.h" | 12 #include "SkPDFBitmap.h" |
14 #include "SkPDFUtils.h" | 13 #include "SkPDFUtils.h" |
15 #include "SkPixmap.h" | 14 #include "SkPixmap.h" |
16 #include "SkRandom.h" | 15 #include "SkRandom.h" |
17 | 16 |
18 namespace { | 17 namespace { |
19 struct NullWStream : public SkWStream { | 18 struct NullWStream : public SkWStream { |
20 NullWStream() : fN(0) {} | 19 NullWStream() : fN(0) {} |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 (void)SkPDFUtils::FloatToDecimal(f, dst); | 162 (void)SkPDFUtils::FloatToDecimal(f, dst); |
164 } | 163 } |
165 } | 164 } |
166 }; | 165 }; |
167 | 166 |
168 } // namespace | 167 } // namespace |
169 DEF_BENCH(return new PDFImageBench;) | 168 DEF_BENCH(return new PDFImageBench;) |
170 DEF_BENCH(return new PDFJpegImageBench;) | 169 DEF_BENCH(return new PDFJpegImageBench;) |
171 DEF_BENCH(return new PDFCompressionBench;) | 170 DEF_BENCH(return new PDFCompressionBench;) |
172 DEF_BENCH(return new PDFScalarBench;) | 171 DEF_BENCH(return new PDFScalarBench;) |
OLD | NEW |