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

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

Issue 2274643002: Assume all TURBO_HAS_* are true. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: drop RGB Created 4 years, 4 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 | « public.bzl ('k') | src/codec/SkJpegCodec.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 SkJpegCodec_DEFINED 8 #ifndef SkJpegCodec_DEFINED
9 #define SkJpegCodec_DEFINED 9 #define SkJpegCodec_DEFINED
10 10
11 // For testing.
12 #ifdef SKNX_NO_SIMD
13 #undef TURBO_HAS_CROP
14 #undef TURBO_HAS_SKIP
15 #undef TURBO_HAS_565
16 #endif
17
18 #include "SkCodec.h" 11 #include "SkCodec.h"
19 #include "SkColorSpace.h" 12 #include "SkColorSpace.h"
20 #include "SkColorSpaceXform.h" 13 #include "SkColorSpaceXform.h"
21 #include "SkImageInfo.h" 14 #include "SkImageInfo.h"
22 #include "SkSwizzler.h" 15 #include "SkSwizzler.h"
23 #include "SkStream.h" 16 #include "SkStream.h"
24 #include "SkTemplates.h" 17 #include "SkTemplates.h"
25 18
26 class JpegDecoderMgr; 19 class JpegDecoderMgr;
27 20
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 uint8_t* fSwizzleSrcRow; 131 uint8_t* fSwizzleSrcRow;
139 uint32_t* fColorXformSrcRow; 132 uint32_t* fColorXformSrcRow;
140 133
141 // libjpeg-turbo provides some subsetting. In the case that libjpeg-turbo 134 // libjpeg-turbo provides some subsetting. In the case that libjpeg-turbo
142 // cannot take the exact the subset that we need, we will use the swizzler 135 // cannot take the exact the subset that we need, we will use the swizzler
143 // to further subset the output from libjpeg-turbo. 136 // to further subset the output from libjpeg-turbo.
144 SkIRect fSwizzlerSubset; 137 SkIRect fSwizzlerSubset;
145 138
146 SkAutoTDelete<SkSwizzler> fSwizzler; 139 SkAutoTDelete<SkSwizzler> fSwizzler;
147 std::unique_ptr<SkColorSpaceXform> fColorXform; 140 std::unique_ptr<SkColorSpaceXform> fColorXform;
148 141
149 sk_sp<SkData> fICCData; 142 sk_sp<SkData> fICCData;
150 143
151 #if !defined(TURBO_HAS_SKIP)
152 SkAutoTMalloc<uint8_t> fSkipStorage;
153 #endif
154
155 typedef SkCodec INHERITED; 144 typedef SkCodec INHERITED;
156 }; 145 };
157 146
158 #endif 147 #endif
OLDNEW
« no previous file with comments | « public.bzl ('k') | src/codec/SkJpegCodec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698