Index: Source/core/svg/graphics/SVGImage.h |
=================================================================== |
--- Source/core/svg/graphics/SVGImage.h (revision 162906) |
+++ Source/core/svg/graphics/SVGImage.h (working copy) |
@@ -41,9 +41,9 @@ |
class SVGImage : public Image { |
public: |
- static PassRefPtr<SVGImage> create(ImageObserver* observer) |
+ static PassRefPtr<SVGImage> create(ImageObserver* observer, float deviceScaleFactor) |
{ |
- return adoptRef(new SVGImage(observer)); |
+ return adoptRef(new SVGImage(observer, deviceScaleFactor)); |
} |
static bool isInSVGImage(const Element*); |
@@ -62,7 +62,7 @@ |
virtual void stopAnimation() OVERRIDE; |
virtual void resetAnimation() OVERRIDE; |
- virtual PassRefPtr<NativeImageSkia> nativeImageForCurrentFrame() OVERRIDE; |
+ virtual PassRefPtr<NativeImageSkia> nativeImageForCurrentFrame(ScaleHint /*hint*/ = UseNativeScale) OVERRIDE; |
private: |
friend class AXRenderObject; |
@@ -90,7 +90,7 @@ |
// FIXME: Implement this to be less conservative. |
virtual bool currentFrameKnownToBeOpaque() OVERRIDE { return false; } |
- SVGImage(ImageObserver*); |
+ SVGImage(ImageObserver*, float deviceScaleFactor); |
virtual void draw(GraphicsContext*, const FloatRect& fromRect, const FloatRect& toRect, CompositeOperator, blink::WebBlendMode) OVERRIDE; |
void drawForContainer(GraphicsContext*, const FloatSize, float, const FloatRect&, const FloatRect&, CompositeOperator, blink::WebBlendMode); |
void drawPatternForContainer(GraphicsContext*, const FloatSize, float, const FloatRect&, const FloatSize&, const FloatPoint&, |
@@ -99,6 +99,7 @@ |
OwnPtr<SVGImageChromeClient> m_chromeClient; |
OwnPtr<Page> m_page; |
IntSize m_intrinsicSize; |
+ float m_deviceScaleFactor; |
}; |
inline SVGImage* toSVGImage(Image* image) |