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