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

Unified Diff: Source/core/platform/graphics/GeneratedImage.h

Issue 15350006: Decode GIF image frames on demand. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased 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
« no previous file with comments | « Source/core/platform/graphics/BitmapImage.cpp ('k') | Source/core/platform/graphics/Image.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/graphics/GeneratedImage.h
diff --git a/Source/core/platform/graphics/GeneratedImage.h b/Source/core/platform/graphics/GeneratedImage.h
index 5752924733f9892410ec06a89cee8d5d38ea5865..be4974a3db0e96cd3c8866b0112382b68682161d 100644
--- a/Source/core/platform/graphics/GeneratedImage.h
+++ b/Source/core/platform/graphics/GeneratedImage.h
@@ -35,26 +35,25 @@ namespace WebCore {
class GeneratedImage : public Image {
public:
- virtual bool hasSingleSecurityOrigin() const { return true; }
+ virtual bool hasSingleSecurityOrigin() const OVERRIDE { return true; }
- virtual void setContainerSize(const IntSize& size) { m_size = size; }
- virtual bool usesContainerSize() const { return true; }
- virtual bool hasRelativeWidth() const { return true; }
- virtual bool hasRelativeHeight() const { return true; }
- virtual void computeIntrinsicDimensions(Length& intrinsicWidth, Length& intrinsicHeight, FloatSize& intrinsicRatio);
+ virtual void setContainerSize(const IntSize& size) OVERRIDE { m_size = size; }
+ virtual bool usesContainerSize() const OVERRIDE { return true; }
+ virtual bool hasRelativeWidth() const OVERRIDE { return true; }
+ virtual bool hasRelativeHeight() const OVERRIDE { return true; }
+ virtual void computeIntrinsicDimensions(Length& intrinsicWidth, Length& intrinsicHeight, FloatSize& intrinsicRatio) OVERRIDE;
- virtual IntSize size() const { return m_size; }
+ virtual IntSize size() const OVERRIDE { return m_size; }
// Assume that generated content has no decoded data we need to worry about
- virtual void destroyDecodedData(bool /*destroyAll*/ = true) { }
- virtual unsigned decodedSize() const { return 0; }
+ virtual void destroyDecodedData() OVERRIDE { }
+ virtual unsigned decodedSize() const OVERRIDE { return 0; }
virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE;
protected:
- virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator, BlendMode) = 0;
virtual void drawPattern(GraphicsContext*, const FloatRect& srcRect, const AffineTransform& patternTransform,
- const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator, const FloatRect& destRect, BlendMode) = 0;
+ const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator, const FloatRect& destRect, BlendMode) OVERRIDE = 0;
// FIXME: Implement this to be less conservative.
virtual bool currentFrameKnownToBeOpaque() OVERRIDE { return false; }
« no previous file with comments | « Source/core/platform/graphics/BitmapImage.cpp ('k') | Source/core/platform/graphics/Image.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698