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

Unified Diff: Source/platform/image-decoders/png/PNGImageDecoder.h

Issue 1213003004: Fix virtual/override/final usage in Source/platform/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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: Source/platform/image-decoders/png/PNGImageDecoder.h
diff --git a/Source/platform/image-decoders/png/PNGImageDecoder.h b/Source/platform/image-decoders/png/PNGImageDecoder.h
index 3987ea1fc021d8aeb491e63cc8673ba7dbcb8e76..6ee594fb0b474ff8ad74b07ac32960b15ccea357 100644
--- a/Source/platform/image-decoders/png/PNGImageDecoder.h
+++ b/Source/platform/image-decoders/png/PNGImageDecoder.h
@@ -38,11 +38,11 @@ class PLATFORM_EXPORT PNGImageDecoder : public ImageDecoder {
WTF_MAKE_NONCOPYABLE(PNGImageDecoder);
public:
PNGImageDecoder(ImageSource::AlphaOption, ImageSource::GammaAndColorProfileOption, size_t maxDecodedBytes);
- virtual ~PNGImageDecoder();
+ ~PNGImageDecoder() override;
// ImageDecoder:
- virtual String filenameExtension() const override { return "png"; }
- virtual bool hasColorProfile() const override { return m_hasColorProfile; }
+ String filenameExtension() const override { return "png"; }
+ bool hasColorProfile() const override { return m_hasColorProfile; }
// Callbacks from libpng
void headerAvailable();
@@ -51,8 +51,8 @@ public:
private:
// ImageDecoder:
- virtual void decodeSize() override { decode(true); }
- virtual void decode(size_t) override { decode(false); }
+ void decodeSize() override { decode(true); }
+ void decode(size_t) override { decode(false); }
// Decodes the image. If |onlySize| is true, stops decoding after
// calculating the image size. If decoding fails but there is no more
« no previous file with comments | « Source/platform/image-decoders/jpeg/JPEGImageDecoder.h ('k') | Source/platform/image-decoders/webp/WEBPImageDecoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698