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

Unified Diff: src/codec/SkWebpCodec.h

Issue 1332053002: Fill incomplete images in SkCodec parent class (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Forgot to add SkSampler.cpp Created 5 years, 2 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/SkWebpCodec.h
diff --git a/src/codec/SkWebpCodec.h b/src/codec/SkWebpCodec.h
index d60acede7bdb4282ed4d3af5f78be44d25042364..934dc3a2731ae08f4743e5287b1441121b5796e9 100644
--- a/src/codec/SkWebpCodec.h
+++ b/src/codec/SkWebpCodec.h
@@ -21,7 +21,7 @@ public:
static SkCodec* NewFromStream(SkStream*);
static bool IsWebp(SkStream*);
protected:
- Result onGetPixels(const SkImageInfo&, void*, size_t, const Options&, SkPMColor*, int*)
+ Result onGetPixels(const SkImageInfo&, void*, size_t, const Options&, SkPMColor*, int*, int*)
override;
SkEncodedFormat onGetEncodedFormat() const override { return kWEBP_SkEncodedFormat; }
@@ -34,9 +34,16 @@ protected:
bool onDimensionsSupported(const SkISize&) override;
bool onGetValidSubset(SkIRect* /* desiredSubset */) const override;
+
+ SkSampler* getSampler() override;
private:
SkWebpCodec(const SkImageInfo&, SkStream*);
+ SkAutoTDelete<SkSampler> fSampler;
scroggo 2015/10/07 16:04:24 I don't understand why webp ever needs a sampler.
msarett 2015/10/07 17:40:41 Removed in Patch Set 11.
+ // Dummy webp sampler needs to know the destination width.
+ int fDstWidth;
+ friend class SkWebpSampler;
+
typedef SkCodec INHERITED;
};
#endif // SkWebpCodec_DEFINED

Powered by Google App Engine
This is Rietveld 408576698