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

Side by Side Diff: include/codec/SkCodec.h

Issue 2035793002: Add color correction benchmark - with comparison to qcms (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase 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 | « bench/nanobench.cpp ('k') | no next file » | 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 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 #ifndef SkCodec_DEFINED 8 #ifndef SkCodec_DEFINED
9 #define SkCodec_DEFINED 9 #define SkCodec_DEFINED
10 10
11 #include "../private/SkTemplates.h" 11 #include "../private/SkTemplates.h"
12 #include "SkColor.h" 12 #include "SkColor.h"
13 #include "SkEncodedFormat.h" 13 #include "SkEncodedFormat.h"
14 #include "SkEncodedInfo.h" 14 #include "SkEncodedInfo.h"
15 #include "SkImageInfo.h" 15 #include "SkImageInfo.h"
16 #include "SkSize.h" 16 #include "SkSize.h"
17 #include "SkStream.h" 17 #include "SkStream.h"
18 #include "SkTypes.h" 18 #include "SkTypes.h"
19 #include "SkYUVSizeInfo.h" 19 #include "SkYUVSizeInfo.h"
20 20
21 class SkColorSpace; 21 class SkColorSpace;
22 class SkData; 22 class SkData;
23 class SkPngChunkReader; 23 class SkPngChunkReader;
24 class SkSampler; 24 class SkSampler;
25 25
26 namespace DM { 26 namespace DM {
27 class CodecSrc; 27 class CodecSrc;
28 class ColorCodecSrc; 28 class ColorCodecSrc;
29 } 29 }
30 class ColorCodecBench;
30 31
31 /** 32 /**
32 * Abstraction layer directly on top of an image codec. 33 * Abstraction layer directly on top of an image codec.
33 */ 34 */
34 class SkCodec : SkNoncopyable { 35 class SkCodec : SkNoncopyable {
35 public: 36 public:
36 /** 37 /**
37 * Minimum number of bytes that must be buffered in SkStream input. 38 * Minimum number of bytes that must be buffered in SkStream input.
38 * 39 *
39 * An SkStream passed to NewFromStream must be able to use this many 40 * An SkStream passed to NewFromStream must be able to use this many
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 * Return an object which will allow forcing scanline decodes to sample in X. 770 * Return an object which will allow forcing scanline decodes to sample in X.
770 * 771 *
771 * May create a sampler, if one is not currently being used. Otherwise, doe s 772 * May create a sampler, if one is not currently being used. Otherwise, doe s
772 * not affect ownership. 773 * not affect ownership.
773 * 774 *
774 * Only valid during scanline decoding. 775 * Only valid during scanline decoding.
775 */ 776 */
776 virtual SkSampler* getSampler(bool /*createIfNecessary*/) { return nullptr; } 777 virtual SkSampler* getSampler(bool /*createIfNecessary*/) { return nullptr; }
777 778
778 // For testing with qcms 779 // For testing with qcms
779 // FIXME: Remove this when we are done comparing with qcms. 780 // FIXME: Remove these when we are done comparing with qcms.
780 friend class DM::ColorCodecSrc; 781 friend class DM::ColorCodecSrc;
782 friend class ColorCodecBench;
783
781 friend class DM::CodecSrc; // for fillIncompleteImage 784 friend class DM::CodecSrc; // for fillIncompleteImage
782 friend class SkSampledCodec; 785 friend class SkSampledCodec;
783 friend class SkIcoCodec; 786 friend class SkIcoCodec;
784 }; 787 };
785 #endif // SkCodec_DEFINED 788 #endif // SkCodec_DEFINED
OLDNEW
« no previous file with comments | « bench/nanobench.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698