Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(924)

Side by Side Diff: bench/ColorCodecBench.h

Issue 2159993003: Improve naive SkColorXform to half floats (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Prettier code Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | bench/ColorCodecBench.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | bench/ColorCodecBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698