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

Unified Diff: Source/platform/graphics/test/MockImageDecoder.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
« no previous file with comments | « Source/platform/graphics/paint/TransformDisplayItem.h ('k') | Source/platform/heap/GarbageCollected.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/test/MockImageDecoder.h
diff --git a/Source/platform/graphics/test/MockImageDecoder.h b/Source/platform/graphics/test/MockImageDecoder.h
index add0fa7003dc4ea7b469d2d0c0a024391618b2df..3e75c82d9e21fd79f625048c91611df7f237d28c 100644
--- a/Source/platform/graphics/test/MockImageDecoder.h
+++ b/Source/platform/graphics/test/MockImageDecoder.h
@@ -61,45 +61,45 @@ public:
m_client->decoderBeingDestroyed();
}
- virtual IntSize decodedSize() const override
+ IntSize decodedSize() const override
{
return m_client->decodedSize().isEmpty() ? size() : m_client->decodedSize();
}
- virtual String filenameExtension() const override
+ String filenameExtension() const override
{
return "mock";
}
- virtual int repetitionCount() const override
+ int repetitionCount() const override
{
return m_client->repetitionCount();
}
- virtual bool frameIsCompleteAtIndex(size_t) const override
+ bool frameIsCompleteAtIndex(size_t) const override
{
return m_client->status() == ImageFrame::FrameComplete;
}
- virtual float frameDurationAtIndex(size_t) const override
+ float frameDurationAtIndex(size_t) const override
{
return m_client->frameDuration();
}
- virtual size_t clearCacheExceptFrame(size_t) override { return 0; }
+ size_t clearCacheExceptFrame(size_t) override { return 0; }
private:
- virtual void decodeSize() override { }
+ void decodeSize() override { }
- virtual size_t decodeFrameCount() override { return m_client->frameCount(); }
+ size_t decodeFrameCount() override { return m_client->frameCount(); }
- virtual void decode(size_t index) override
+ void decode(size_t index) override
{
m_client->decodeRequested();
m_frameBufferCache[index].setStatus(m_client->status());
}
- virtual void initializeNewFrame(size_t index) override
+ void initializeNewFrame(size_t index) override
{
m_frameBufferCache[index].setSize(size().width(), size().height());
m_frameBufferCache[index].setHasAlpha(false);
@@ -120,7 +120,7 @@ public:
return adoptPtr(new MockImageDecoderFactory(client, decodedSize));
}
- virtual PassOwnPtr<ImageDecoder> create() override
+ PassOwnPtr<ImageDecoder> create() override
{
OwnPtr<MockImageDecoder> decoder = MockImageDecoder::create(m_client);
decoder->setSize(m_decodedSize.width(), m_decodedSize.height());
« no previous file with comments | « Source/platform/graphics/paint/TransformDisplayItem.h ('k') | Source/platform/heap/GarbageCollected.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698