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

Side by Side Diff: bench/ColorCodecBench.h

Issue 2035793002: Add color correction benchmark - with comparison to qcms (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Response to comments Created 4 years, 6 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') | bench/ColorCodecBench.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2016 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef ColorCodecBench_DEFINED
9 #define ColorCodecBench_DEFINED
10
11 #include "Benchmark.h"
12 #include "SkData.h"
13 #include "SkImageInfo.h"
14
15 class ColorCodecBench : public Benchmark {
16 public:
17 ColorCodecBench(const char* name, sk_sp<SkData> encoded);
18
19 protected:
20 const char* onGetName() override;
21 bool isSuitableFor(Backend backend) override;
22 void onDraw(int n, SkCanvas* canvas) override;
23 void onDelayedSetup() override;
24
25 private:
26 typedef void (*Proc)(SkData* encoded, void* dst, void* srcRow, const SkImage Info& info,
27 void* dstProfile, SkData* srcData);
28
29 SkString fName;
30 sk_sp<SkData> fEncoded;
31 SkImageInfo fInfo;
32 SkAutoMalloc fDst;
33 SkAutoMalloc fSrcRow;
34 sk_sp<SkData> fDstProfile;
35 sk_sp<SkData> fSrcProfile;
36 Proc fProc;
37
38 typedef Benchmark INHERITED;
39 };
40 #endif // ColorCodecBench_DEFINED
OLDNEW
« no previous file with comments | « no previous file | bench/ColorCodecBench.cpp » ('j') | bench/ColorCodecBench.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698