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

Unified Diff: Source/core/svg/graphics/SVGImage.h

Issue 1093673002: Removing the dependency on GraphicsContext for drawing images in 2D canvas (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix svg stuff Created 5 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 d3fb05a74a84e6313ba1b6291731ec63489a91fd..088720d47ed9e8a95ebc41a433f487c083e26e26 100644
--- a/Source/core/svg/graphics/SVGImage.h
+++ b/Source/core/svg/graphics/SVGImage.h
@@ -52,17 +52,17 @@ public:
LayoutBox* embeddedContentBox() const;
- virtual bool isSVGImage() const override { return true; }
- virtual IntSize size() const override { return m_intrinsicSize; }
+ bool isSVGImage() const override { return true; }
+ IntSize size() const override { return m_intrinsicSize; }
void setURL(const KURL& url) { m_url = url; }
- virtual bool currentFrameHasSingleSecurityOrigin() const override;
+ bool currentFrameHasSingleSecurityOrigin() const override;
- virtual void startAnimation(CatchUpAnimation = CatchUp) override;
- virtual void stopAnimation() override;
- virtual void resetAnimation() override;
+ void startAnimation(CatchUpAnimation = CatchUp) override;
+ void stopAnimation() override;
+ void resetAnimation() override;
- virtual bool bitmapForCurrentFrame(SkBitmap*) override;
+ bool bitmapForCurrentFrame(SkBitmap*) override;
// Returns the SVG image document's frame.
FrameView* frameView() const;
@@ -83,25 +83,25 @@ private:
virtual ~SVGImage();
- virtual String filenameExtension() const override;
+ String filenameExtension() const override;
- virtual void setContainerSize(const IntSize&) override;
+ void setContainerSize(const IntSize&) override;
IntSize containerSize() const;
- virtual bool usesContainerSize() const override { return true; }
- virtual void computeIntrinsicDimensions(Length& intrinsicWidth, Length& intrinsicHeight, FloatSize& intrinsicRatio) override;
+ bool usesContainerSize() const override { return true; }
+ void computeIntrinsicDimensions(Length& intrinsicWidth, Length& intrinsicHeight, FloatSize& intrinsicRatio) override;
- virtual bool dataChanged(bool allDataReceived) override;
+ 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) override { }
+ void destroyDecodedData(bool) override { }
// FIXME: Implement this to be less conservative.
- virtual bool currentFrameKnownToBeOpaque() override { return false; }
+ bool currentFrameKnownToBeOpaque() override { return false; }
SVGImage(ImageObserver*);
- void draw(GraphicsContext*, const FloatRect& fromRect, const FloatRect& toRect, SkXfermode::Mode, RespectImageOrientationEnum) override;
- void drawForContainer(GraphicsContext*, const FloatSize, float, const FloatRect&, const FloatRect&, SkXfermode::Mode);
+ void draw(SkCanvas*, const SkPaint&, const FloatRect& fromRect, const FloatRect& toRect, RespectImageOrientationEnum, const ImageFilterQualityHelper*) override;
+ void drawForContainer(SkCanvas*, const SkPaint&, const FloatSize, float, const FloatRect&, const FloatRect&);
void drawPatternForContainer(GraphicsContext*, const FloatSize, float, const FloatRect&, const FloatSize&, const FloatPoint&,
SkXfermode::Mode, const FloatRect&, const IntSize& repeatSpacing);

Powered by Google App Engine
This is Rietveld 408576698