| OLD | NEW |
| 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 "SkImageDecoder.h" | 9 #include "SkImageDecoder.h" |
| 10 #include "SkImageInfo.h" | 10 #include "SkImageInfo.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 SkColorType colorType, | 24 SkColorType colorType, |
| 25 uint32_t subsetWidth, | 25 uint32_t subsetWidth, |
| 26 uint32_t subsetHeight, | 26 uint32_t subsetHeight, |
| 27 uint32_t offsetLeft, | 27 uint32_t offsetLeft, |
| 28 uint32_t offsetTop, | 28 uint32_t offsetTop, |
| 29 bool useCodec); | 29 bool useCodec); |
| 30 | 30 |
| 31 protected: | 31 protected: |
| 32 const char* onGetName() override; | 32 const char* onGetName() override; |
| 33 bool isSuitableFor(Backend backend) override; | 33 bool isSuitableFor(Backend backend) override; |
| 34 void onDraw(const int n, SkCanvas* canvas) override; | 34 void onDraw(int n, SkCanvas* canvas) override; |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 SkString fName; | 37 SkString fName; |
| 38 SkColorType fColorType; | 38 SkColorType fColorType; |
| 39 const uint32_t fSubsetWidth; | 39 const uint32_t fSubsetWidth; |
| 40 const uint32_t fSubsetHeight; | 40 const uint32_t fSubsetHeight; |
| 41 const uint32_t fOffsetLeft; | 41 const uint32_t fOffsetLeft; |
| 42 const uint32_t fOffsetTop; | 42 const uint32_t fOffsetTop; |
| 43 const bool fUseCodec; | 43 const bool fUseCodec; |
| 44 SkAutoTDelete<SkMemoryStream> fStream; | 44 SkAutoTDelete<SkMemoryStream> fStream; |
| 45 typedef Benchmark INHERITED; | 45 typedef Benchmark INHERITED; |
| 46 }; | 46 }; |
| OLD | NEW |