Index: third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h |
diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h b/third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h |
index b1a87884e55bdec926592d7697a50991e92c60b7..7e897c43ec9b1d258d860fd6e06e7cc8613b7e5f 100644 |
--- a/third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h |
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h |
@@ -46,7 +46,7 @@ enum SourceImageStatus { |
class CORE_EXPORT CanvasImageSource { |
public: |
- virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*, AccelerationHint, SnapshotReason) const = 0; |
+ virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*, AccelerationHint, SnapshotReason, const FloatSize&) const = 0; |
// IMPORTANT: Result must be independent of whether destinationContext is |
// already tainted because this function may be used to determine whether |
@@ -62,8 +62,8 @@ public: |
// source image is a subregion of the image returned by getSourceImageForCanvas. |
virtual void adjustDrawRects(FloatRect* srcRect, FloatRect* dstRect) const { } |
- virtual FloatSize elementSize() const = 0; |
- virtual FloatSize defaultDestinationSize() const { return elementSize(); } |
+ virtual FloatSize elementSize(const FloatSize& defaultObjectSize) const = 0; |
+ virtual FloatSize defaultDestinationSize(const FloatSize& defaultObjectSize) const { return elementSize(defaultObjectSize); } |
virtual const KURL& sourceURL() const { return blankURL(); } |
virtual bool isOpaque() const { return false; } |