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 #ifndef ColorCodecBench_DEFINED | 8 #ifndef ColorCodecBench_DEFINED |
9 #define ColorCodecBench_DEFINED | 9 #define ColorCodecBench_DEFINED |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 private: | 29 private: |
30 void decodeAndXform(); | 30 void decodeAndXform(); |
31 void xformOnly(); | 31 void xformOnly(); |
32 #if !defined(GOOGLE3) | 32 #if !defined(GOOGLE3) |
33 void decodeAndXformQCMS(); | 33 void decodeAndXformQCMS(); |
34 void xformOnlyQCMS(); | 34 void xformOnlyQCMS(); |
35 #endif | 35 #endif |
36 | 36 |
37 SkString fName; | 37 SkString fName; |
38 sk_sp<SkData> fEncoded; | 38 sk_sp<SkData> fEncoded; |
39 SkImageInfo fInfo; | 39 SkImageInfo fSrcInfo; |
| 40 SkImageInfo fDstInfo; |
40 SkAutoMalloc fDst; | 41 SkAutoMalloc fDst; |
41 SkAutoMalloc fSrc; | 42 SkAutoMalloc fSrc; |
42 sk_sp<SkColorSpace> fDstSpace; | 43 sk_sp<SkColorSpace> fDstSpace; |
43 #if defined(SK_TEST_QCMS) | 44 #if defined(SK_TEST_QCMS) |
44 SkAutoTCallVProc<qcms_profile, qcms_profile_release> fDstSpaceQCMS; | 45 SkAutoTCallVProc<qcms_profile, qcms_profile_release> fDstSpaceQCMS; |
45 #endif | 46 #endif |
46 sk_sp<SkData> fSrcData; | 47 sk_sp<SkData> fSrcData; |
47 | 48 |
48 typedef Benchmark INHERITED; | 49 typedef Benchmark INHERITED; |
49 }; | 50 }; |
50 #endif // ColorCodecBench_DEFINED | 51 #endif // ColorCodecBench_DEFINED |
OLD | NEW |