aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/codec/SkWbmpCodec.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/codec/SkWbmpCodec.h')
-rw-r--r--src/codec/SkWbmpCodec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/codec/SkWbmpCodec.h b/src/codec/SkWbmpCodec.h
index f81b428e4f..03287710e0 100644
--- a/src/codec/SkWbmpCodec.h
+++ b/src/codec/SkWbmpCodec.h
@@ -21,7 +21,7 @@ public:
* Creates a wbmp codec
* Takes ownership of the stream
*/
- static SkCodec* NewFromStream(SkStream*, Result*);
+ static std::unique_ptr<SkCodec> MakeFromStream(std::unique_ptr<SkStream>, Result*);
protected:
SkEncodedImageFormat onGetEncodedFormat() const override;
@@ -44,7 +44,7 @@ private:
*/
bool readRow(uint8_t* row);
- SkWbmpCodec(int width, int height, const SkEncodedInfo&, SkStream*);
+ SkWbmpCodec(int width, int height, const SkEncodedInfo&, std::unique_ptr<SkStream>);
const size_t fSrcRowBytes;