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

Unified Diff: Source/core/svg/graphics/SVGImage.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
Index: Source/core/svg/graphics/SVGImage.h
diff --git a/Source/core/svg/graphics/SVGImage.h b/Source/core/svg/graphics/SVGImage.h
index 387bc06b427421bcc60441d2e3bb49c6c125d77f..5901ad00e519328ca4df1387487ccb091fb8449a 100644
--- a/Source/core/svg/graphics/SVGImage.h
+++ b/Source/core/svg/graphics/SVGImage.h
@@ -48,11 +48,11 @@ public:
RenderBox* embeddedContentBox() const;
FrameView* frameView() const;
- virtual bool isSVGImage() const { return true; }
+ virtual bool isSVGImage() const OVERRIDE { return true; }
virtual IntSize size() const OVERRIDE { return m_intrinsicSize; }
- virtual bool hasRelativeWidth() const;
- virtual bool hasRelativeHeight() const;
+ virtual bool hasRelativeWidth() const OVERRIDE;
+ virtual bool hasRelativeHeight() const OVERRIDE;
virtual void startAnimation(bool /*catchUpIfNecessary*/ = true) OVERRIDE;
virtual void stopAnimation() OVERRIDE;
@@ -68,25 +68,25 @@ private:
virtual ~SVGImage();
- virtual String filenameExtension() const;
+ virtual String filenameExtension() const OVERRIDE;
- virtual void setContainerSize(const IntSize&);
+ virtual void setContainerSize(const IntSize&) OVERRIDE;
IntSize containerSize() const;
- virtual bool usesContainerSize() const { return true; }
- virtual void computeIntrinsicDimensions(Length& intrinsicWidth, Length& intrinsicHeight, FloatSize& intrinsicRatio);
+ virtual bool usesContainerSize() const OVERRIDE { return true; }
+ virtual void computeIntrinsicDimensions(Length& intrinsicWidth, Length& intrinsicHeight, FloatSize& intrinsicRatio) OVERRIDE;
- virtual bool dataChanged(bool allDataReceived);
+ virtual bool dataChanged(bool allDataReceived) OVERRIDE;
// FIXME: SVGImages are underreporting decoded sizes and will be unable
// to prune because these functions are not implemented yet.
- virtual void destroyDecodedData(bool) { }
- virtual unsigned decodedSize() const { return 0; }
+ virtual void destroyDecodedData() OVERRIDE { }
+ virtual unsigned decodedSize() const OVERRIDE { return 0; }
// FIXME: Implement this to be less conservative.
virtual bool currentFrameKnownToBeOpaque() OVERRIDE { return false; }
SVGImage(ImageObserver*);
- virtual void draw(GraphicsContext*, const FloatRect& fromRect, const FloatRect& toRect, ColorSpace styleColorSpace, CompositeOperator, BlendMode);
+ virtual void draw(GraphicsContext*, const FloatRect& fromRect, const FloatRect& toRect, ColorSpace styleColorSpace, CompositeOperator, BlendMode) OVERRIDE;
void drawForContainer(GraphicsContext*, const FloatSize, float, const FloatRect&, const FloatRect&, ColorSpace, CompositeOperator, BlendMode);
void drawPatternForContainer(GraphicsContext*, const FloatSize, float, const FloatRect&, const AffineTransform&, const FloatPoint&, ColorSpace,
CompositeOperator, const FloatRect&);
« no previous file with comments | « Source/core/platform/image-decoders/skia/ImageDecoderSkia.cpp ('k') | Source/core/svg/graphics/SVGImageForContainer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698