diff options
author | 2015-11-11 12:43:07 -0800 | |
---|---|---|
committer | 2015-11-11 12:43:07 -0800 | |
commit | 33bee090fa332b2f3db366ae0ecc3231bd8e112e (patch) | |
tree | 74233e19db37c46d1485d3485ec3d8f2209e7f4b /include/codec | |
parent | 67d7620285cdfa60158add6615db03bd48e6d8b0 (diff) |
Fix -Wunused-parameter errors in SkCodec.h in Android
BUG=skia:
Review URL: https://codereview.chromium.org/1437823004
Diffstat (limited to 'include/codec')
-rw-r--r-- | include/codec/SkCodec.h | 10 |
1 files changed, 5 insertions, 5 deletions
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; }; |