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

Unified Diff: src/codec/SkJpegCodec.h

Issue 1288483002: Consolidate SkCodec functions for handling rewind (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: src/codec/SkJpegCodec.h
diff --git a/src/codec/SkJpegCodec.h b/src/codec/SkJpegCodec.h
index 5e2135cdffb71b66faa6a2c1cb24ae895626d31d..62a5bbc4cf0f450eb4f2d92f16be0875bc222c1c 100644
--- a/src/codec/SkJpegCodec.h
+++ b/src/codec/SkJpegCodec.h
@@ -65,6 +65,8 @@ protected:
return kJPEG_SkEncodedFormat;
}
+ bool onRewind() override;
+
private:
/*
@@ -101,11 +103,6 @@ private:
SkJpegCodec(const SkImageInfo& srcInfo, SkStream* stream, JpegDecoderMgr* decoderMgr);
/*
- * Handles rewinding the input stream if it is necessary
- */
- bool handleRewind();
-
- /*
* Checks if the conversion between the input image and the requested output
* image has been implemented
* Sets the output color space

Powered by Google App Engine
This is Rietveld 408576698