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

Unified Diff: Source/WebKit/chromium/tests/ImageLayerChromiumTest.cpp

Issue 15969015: Reland again "Decode GIF image frames on demand". (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing Created 7 years, 7 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/WebKit/chromium/tests/ImageLayerChromiumTest.cpp
diff --git a/Source/WebKit/chromium/tests/ImageLayerChromiumTest.cpp b/Source/WebKit/chromium/tests/ImageLayerChromiumTest.cpp
index b8ac85bfdd934a28a3e3e4fb643372943f3b9002..0752f42c57c28e585da5928d13a8485585166055 100644
--- a/Source/WebKit/chromium/tests/ImageLayerChromiumTest.cpp
+++ b/Source/WebKit/chromium/tests/ImageLayerChromiumTest.cpp
@@ -37,8 +37,8 @@ namespace {
class MockGraphicsLayerClient : public GraphicsLayerClient {
public:
- virtual void notifyAnimationStarted(const GraphicsLayer*, double time) { }
- virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const IntRect& inClip) { }
+ virtual void notifyAnimationStarted(const GraphicsLayer*, double time) OVERRIDE { }
+ virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const IntRect& inClip) OVERRIDE { }
};
class TestImage : public Image {
@@ -60,22 +60,22 @@ public:
m_nativeImage->bitmap().setIsOpaque(opaque);
}
- virtual bool isBitmapImage() const
+ virtual bool isBitmapImage() const OVERRIDE
{
return true;
}
- virtual bool currentFrameKnownToBeOpaque()
+ virtual bool currentFrameKnownToBeOpaque() OVERRIDE
{
return m_nativeImage->bitmap().isOpaque();
}
- virtual IntSize size() const
+ virtual IntSize size() const OVERRIDE
{
return m_size;
}
- virtual PassRefPtr<NativeImageSkia> nativeImageForCurrentFrame()
+ virtual PassRefPtr<NativeImageSkia> nativeImageForCurrentFrame() OVERRIDE
{
if (m_size.isZero())
return 0;
@@ -84,18 +84,16 @@ public:
}
// Stub implementations of pure virtual Image functions.
- virtual void destroyDecodedData(bool)
+ virtual void destroyDecodedData() OVERRIDE
{
}
- virtual unsigned decodedSize() const
+ virtual unsigned decodedSize() const OVERRIDE
{
return 0u;
}
- virtual void draw(WebCore::GraphicsContext*, const WebCore::FloatRect&,
- const WebCore::FloatRect&, WebCore::ColorSpace,
- WebCore::CompositeOperator, WebCore::BlendMode)
+ virtual void draw(GraphicsContext*, const FloatRect&, const FloatRect&, ColorSpace, CompositeOperator, BlendMode) OVERRIDE
{
}

Powered by Google App Engine
This is Rietveld 408576698