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

Side by Side Diff: src/codec/SkJpegCodec.h

Issue 1702533004: Individually enable and disable SkCodecs (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Only keep the ifdefs that we really need Created 4 years, 10 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
« src/codec/SkCodec.cpp ('K') | « src/codec/SkGifCodec.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 SkJpegCodec_DEFINED 8 #ifndef SkJpegCodec_DEFINED
9 #define SkJpegCodec_DEFINED 9 #define SkJpegCodec_DEFINED
10 10
11 #include "SkCodec.h" 11 #include "SkCodec.h"
12 #include "SkImageInfo.h" 12 #include "SkImageInfo.h"
13 #include "SkJpegDecoderMgr.h" 13 #include "SkJpegDecoderMgr.h"
14 #include "SkJpegUtility_codec.h" 14 #include "SkJpegUtility_codec.h"
15 #include "SkStream.h" 15 #include "SkStream.h"
16 #include "SkTemplates.h" 16 #include "SkTemplates.h"
17 17
18 extern "C" {
msarett 2016/02/17 14:34:54 Doesn't help much, SkJpegUtility_codec.h includes
19 #include "jpeglib.h"
20 }
21
22 /* 18 /*
23 * 19 *
24 * This class implements the decoding for jpeg images 20 * This class implements the decoding for jpeg images
25 * 21 *
26 */ 22 */
27 class SkJpegCodec : public SkCodec { 23 class SkJpegCodec : public SkCodec {
28 public: 24 public:
29 static bool IsJpeg(const void*, size_t); 25 static bool IsJpeg(const void*, size_t);
30 26
31 /* 27 /*
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 113
118 // scanline decoding 114 // scanline decoding
119 SkAutoTMalloc<uint8_t> fStorage; // Only used if sampling is needed 115 SkAutoTMalloc<uint8_t> fStorage; // Only used if sampling is needed
120 uint8_t* fSrcRow; // Only used if sampling is needed 116 uint8_t* fSrcRow; // Only used if sampling is needed
121 SkAutoTDelete<SkSwizzler> fSwizzler; 117 SkAutoTDelete<SkSwizzler> fSwizzler;
122 118
123 typedef SkCodec INHERITED; 119 typedef SkCodec INHERITED;
124 }; 120 };
125 121
126 #endif 122 #endif
OLDNEW
« src/codec/SkCodec.cpp ('K') | « src/codec/SkGifCodec.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698