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

Unified Diff: include/codec/SkCodec.h

Issue 1040453002: Add SkPngChunkReader. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Peeker -> SkChunkReader, passed to constructor. Created 5 years, 9 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 | « no previous file | include/core/SkChunkReader.h » ('j') | include/core/SkChunkReader.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/codec/SkCodec.h
diff --git a/include/codec/SkCodec.h b/include/codec/SkCodec.h
index 5a69d1367d69444423c736cbbfbfc0e259c6180f..dd40e68ae668e2a7c9d5f35527ab611280416759 100644
--- a/include/codec/SkCodec.h
+++ b/include/codec/SkCodec.h
@@ -11,6 +11,7 @@
#include "SkEncodedFormat.h"
#include "SkImageGenerator.h"
#include "SkImageInfo.h"
+#include "SkRefCnt.h"
scroggo 2015/03/27 19:19:58 No longer needed.
scroggo 2015/04/01 14:53:48 Done.
#include "SkScanlineDecoder.h"
#include "SkSize.h"
#include "SkStream.h"
@@ -18,6 +19,7 @@
#include "SkTypes.h"
class SkData;
+class SkChunkReader;
/**
* Abstraction layer directly on top of an image codec.
@@ -31,7 +33,7 @@ public:
* If NULL is returned, the stream is deleted immediately. Otherwise, the
* SkCodec takes ownership of it, and will delete it when done with it.
*/
- static SkCodec* NewFromStream(SkStream*);
+ static SkCodec* NewFromStream(SkStream*, SkChunkReader* = NULL);
/**
* If this data represents an encoded image that we know how to decode,
@@ -39,7 +41,7 @@ public:
*
* Will take a ref if it returns a codec, else will not affect the data.
*/
- static SkCodec* NewFromData(SkData*);
+ static SkCodec* NewFromData(SkData*, SkChunkReader* = NULL);
/**
* Return a size that approximately supports the desired scale factor.
« no previous file with comments | « no previous file | include/core/SkChunkReader.h » ('j') | include/core/SkChunkReader.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698