From 33bee090fa332b2f3db366ae0ecc3231bd8e112e Mon Sep 17 00:00:00 2001 From: msarett Date: Wed, 11 Nov 2015 12:43:07 -0800 Subject: Fix -Wunused-parameter errors in SkCodec.h in Android BUG=skia: Review URL: https://codereview.chromium.org/1437823004 --- include/codec/SkCodec.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include/codec') diff --git a/include/codec/SkCodec.h b/include/codec/SkCodec.h index 5127a7cc41..d90fea8ced 100644 --- a/include/codec/SkCodec.h +++ b/include/codec/SkCodec.h @@ -483,7 +483,7 @@ protected: * kGray_8_SkColorType: Black * kIndex_8_SkColorType: First color in color table */ - virtual uint32_t onGetFillValue(SkColorType colorType, SkAlphaType alphaType) const { + virtual uint32_t onGetFillValue(SkColorType /*colorType*/, SkAlphaType alphaType) const { return kOpaque_SkAlphaType == alphaType ? SK_ColorBLACK : SK_ColorTRANSPARENT; } @@ -537,8 +537,8 @@ private: } // Methods for scanline decoding. - virtual SkCodec::Result onStartScanlineDecode(const SkImageInfo& dstInfo, - const SkCodec::Options& options, SkPMColor ctable[], int* ctableCount) { + virtual SkCodec::Result onStartScanlineDecode(const SkImageInfo& /*dstInfo*/, + const SkCodec::Options& /*options*/, SkPMColor* /*ctable*/, int* /*ctableCount*/) { return kUnimplemented; } @@ -555,7 +555,7 @@ private: return countLines == this->onGetScanlines(storage.get(), countLines, 0); } - virtual int onGetScanlines(void* dst, int countLines, size_t rowBytes) { return 0; } + virtual int onGetScanlines(void* /*dst*/, int /*countLines*/, size_t /*rowBytes*/) { return 0; } /** * On an incomplete decode, getPixels() and getScanlines() will call this function @@ -582,7 +582,7 @@ private: * * Only valid during scanline decoding. */ - virtual SkSampler* getSampler(bool createIfNecessary) { return nullptr; } + virtual SkSampler* getSampler(bool /*createIfNecessary*/) { return nullptr; } friend class SkSampledCodec; }; -- cgit v1.2.3