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

Unified Diff: include/codec/SkCodec.h

Issue 1437823004: Fix -Wunused-parameter errors in SkCodec.h in Android (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update test_public_includes to test codec Created 5 years, 1 month 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 | « gyp/tools.gyp ('k') | no next file » | no next file with comments »
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 5127a7cc41233df49bb3120a65153ecd74a8dddf..d90fea8cedcf6d92ecdc8535e71962faaa376689 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;
};
« no previous file with comments | « gyp/tools.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698