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

Unified Diff: src/images/SkJpegUtility.h

Issue 21561002: Fixes for JPEG subset decoding. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Remove reference to unused file from the gyp Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/images/SkImageDecoder_libjpeg.cpp ('k') | src/images/SkJpegUtility.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/images/SkJpegUtility.h
diff --git a/src/images/SkJpegUtility.h b/src/images/SkJpegUtility.h
index 74f1a2104285f45349776e940ade2dad2eccca2c..69092ef1c38111a28a1496b16c4afb6ddd2ec642 100644
--- a/src/images/SkJpegUtility.h
+++ b/src/images/SkJpegUtility.h
@@ -34,13 +34,13 @@ void skjpeg_error_exit(j_common_ptr cinfo);
/* Our source struct for directing jpeg to our stream object.
*/
struct skjpeg_source_mgr : jpeg_source_mgr {
- skjpeg_source_mgr(SkStream* stream, SkImageDecoder* decoder, bool ownStream);
+ skjpeg_source_mgr(SkStream* stream, SkImageDecoder* decoder);
~skjpeg_source_mgr();
- SkStream* fStream;
- void* fMemoryBase;
- size_t fMemoryBaseSize;
- bool fUnrefStream;
+ // fStream is ref'ed and unref'ed
+ SkStream* fStream;
+ // Unowned pointer to the decoder, used to check if the decoding process
+ // has been cancelled.
SkImageDecoder* fDecoder;
enum {
kBufferSize = 1024
« no previous file with comments | « src/images/SkImageDecoder_libjpeg.cpp ('k') | src/images/SkJpegUtility.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698