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

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

Issue 1180983002: Switch SkJpegCode to libjpeg-turbo (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix xcode builds Created 5 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 | « src/codec/SkJpegCodec.cpp ('k') | src/codec/SkJpegDecoderMgr.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 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 SkJpegDecoderMgr_DEFINED 8 #ifndef SkJpegDecoderMgr_DEFINED
9 #define SkJpegDecoderMgr_DEFINED 9 #define SkJpegDecoderMgr_DEFINED
10 10
11 #include "SkCodec.h" 11 #include "SkCodec.h"
12 #include "SkCodecPriv.h" 12 #include "SkCodecPriv.h"
13 #include "SkJpegUtility_codec.h" 13 #include "SkJpegUtility_codec.h"
14 #include "SkSwizzler.h" 14 #include "SkSwizzler.h"
15 #include "SkTemplates.h" 15 #include "SkTemplates.h"
16 16
17 // stdio is needed for jpeglib 17 // stdio is needed for jpeglib
18 #include <stdio.h> 18 #include <stdio.h>
19 19
20 extern "C" { 20 extern "C" {
21 #include "jpeglibmangler.h"
21 #include "jpeglib.h" 22 #include "jpeglib.h"
22 } 23 }
23 24
24 class JpegDecoderMgr : SkNoncopyable { 25 class JpegDecoderMgr : SkNoncopyable {
25 public: 26 public:
26 27
27 /* 28 /*
28 * Print a useful error message and return false 29 * Print a useful error message and return false
29 */ 30 */
30 bool returnFalse(const char caller[]); 31 bool returnFalse(const char caller[]);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 69
69 private: 70 private:
70 71
71 jpeg_decompress_struct fDInfo; 72 jpeg_decompress_struct fDInfo;
72 skjpeg_source_mgr fSrcMgr; 73 skjpeg_source_mgr fSrcMgr;
73 skjpeg_error_mgr fErrorMgr; 74 skjpeg_error_mgr fErrorMgr;
74 bool fInit; 75 bool fInit;
75 }; 76 };
76 77
77 #endif 78 #endif
OLDNEW
« no previous file with comments | « src/codec/SkJpegCodec.cpp ('k') | src/codec/SkJpegDecoderMgr.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698