| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 "SkBitmap.h" | 10 #include "SkBitmap.h" |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 SkAutoTDelete<SkImageDecoder> fDecoder; | 106 SkAutoTDelete<SkImageDecoder> fDecoder; |
| 107 const SkString fFilename; | 107 const SkString fFilename; |
| 108 SkMemoryStream fStream; | 108 SkMemoryStream fStream; |
| 109 bool fSkipZeroes; | 109 bool fSkipZeroes; |
| 110 bool fValid; | 110 bool fValid; |
| 111 | 111 |
| 112 typedef Benchmark INHERITED; | 112 typedef Benchmark INHERITED; |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 // Enable the true version once the feature is checked in. | 115 // Enable the true version once the feature is checked in. |
| 116 DEF_BENCH( return SkNEW_ARGS(SkipZeroesBench, ("arrow.png", true))); | 116 DEF_BENCH(return new SkipZeroesBench("arrow.png", true)); |
| 117 DEF_BENCH( return SkNEW_ARGS(SkipZeroesBench, ("arrow.png", false))); | 117 DEF_BENCH(return new SkipZeroesBench("arrow.png", false)); |
| OLD | NEW |