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

Unified Diff: Source/platform/image-decoders/jpeg/JPEGImageDecoder.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/jpeg/JPEGImageDecoder.h
diff --git a/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h b/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h
index 5e24b4392eb630e2a85dc35e7475028c7858c8dd..1f89a902be78fb397995677cda36643aeb8c2e5d 100644
--- a/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h
+++ b/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h
@@ -41,17 +41,17 @@ class PLATFORM_EXPORT JPEGImageDecoder : public ImageDecoder {
WTF_MAKE_NONCOPYABLE(JPEGImageDecoder);
public:
JPEGImageDecoder(ImageSource::AlphaOption, ImageSource::GammaAndColorProfileOption, size_t maxDecodedBytes);
- virtual ~JPEGImageDecoder();
+ ~JPEGImageDecoder() override;
// ImageDecoder:
- virtual String filenameExtension() const override { return "jpg"; }
- virtual bool hasColorProfile() const override { return m_hasColorProfile; }
- virtual IntSize decodedSize() const override { return m_decodedSize; }
- virtual IntSize decodedYUVSize(int component, SizeType) const override;
- virtual bool setSize(unsigned width, unsigned height) override;
- virtual bool canDecodeToYUV() override;
- virtual bool decodeToYUV() override;
- virtual void setImagePlanes(PassOwnPtr<ImagePlanes>) override;
+ String filenameExtension() const override { return "jpg"; }
+ bool hasColorProfile() const override { return m_hasColorProfile; }
+ IntSize decodedSize() const override { return m_decodedSize; }
+ IntSize decodedYUVSize(int component, SizeType) const override;
+ bool setSize(unsigned width, unsigned height) override;
+ bool canDecodeToYUV() override;
+ bool decodeToYUV() override;
+ void setImagePlanes(PassOwnPtr<ImagePlanes>) override;
bool hasImagePlanes() const { return m_imagePlanes; }
bool outputScanlines();
@@ -64,8 +64,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/ico/ICOImageDecoder.h ('k') | Source/platform/image-decoders/png/PNGImageDecoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698