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

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

Issue 1260673002: SkScaledCodec class (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Reset fSwizzler in onStart Created 5 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
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
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 bool handleRewind(); 106 bool handleRewind();
107 107
108 /* 108 /*
109 * Checks if the conversion between the input image and the requested output 109 * Checks if the conversion between the input image and the requested output
110 * image has been implemented 110 * image has been implemented
111 * Sets the output color space 111 * Sets the output color space
112 */ 112 */
113 bool setOutputColorSpace(const SkImageInfo& dst); 113 bool setOutputColorSpace(const SkImageInfo& dst);
114 114
115 /* 115 /*
116 * Checks if we can scale to the requested dimensions and scales the dimensi ons 116 * Checks if we can natively scale to the requested dimensions and natively scales the
117 * if possible 117 * dimensions if possible
118 */ 118 */
119 bool scaleToDimensions(uint32_t width, uint32_t height); 119 bool nativelyScaleToDimensions(uint32_t width, uint32_t height);
120
121 /*
122 * Create the swizzler based on the encoded format
123 */
124 void initializeSwizzler(const SkImageInfo& dstInfo, void* dst, size_t dstRow Bytes,
125 const Options& options);
126 120
127 SkAutoTDelete<JpegDecoderMgr> fDecoderMgr; 121 SkAutoTDelete<JpegDecoderMgr> fDecoderMgr;
128 122
129 friend class SkJpegScanlineDecoder; 123 friend class SkJpegScanlineDecoder;
130 124
131 typedef SkCodec INHERITED; 125 typedef SkCodec INHERITED;
132 }; 126 };
133 127
134 #endif 128 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698