Chromium Code Reviews| Index: third_party/WebKit/Source/platform/DragImage.h |
| diff --git a/third_party/WebKit/Source/platform/DragImage.h b/third_party/WebKit/Source/platform/DragImage.h |
| index 6c3acfa7ff33bb1cb15fbbbbb19f19f764e76c32..1389804a8c7b98e993d8a316a1cc0986ead2cd5e 100644 |
| --- a/third_party/WebKit/Source/platform/DragImage.h |
| +++ b/third_party/WebKit/Source/platform/DragImage.h |
| @@ -32,6 +32,7 @@ |
| #include "platform/graphics/ImageOrientation.h" |
| #include "platform/graphics/paint/DisplayItemClient.h" |
| #include "third_party/skia/include/core/SkBitmap.h" |
| +#include "third_party/skia/include/core/SkImage.h" |
| #include "wtf/Forward.h" |
| namespace blink { |
| @@ -45,12 +46,12 @@ public: |
| static PassOwnPtr<DragImage> create(Image*, |
| RespectImageOrientationEnum = DoNotRespectImageOrientation, float deviceScaleFactor = 1, |
| InterpolationQuality = InterpolationHigh, float opacity = 1, |
| - const FloatSize& imageScale = FloatSize(1, 1)); |
| + FloatSize imageScale = FloatSize(1, 1)); |
| static PassOwnPtr<DragImage> create(const KURL&, const String& label, const FontDescription& systemFont, float deviceScaleFactor); |
| ~DragImage(); |
| - static FloatSize clampedImageScale(const Image&, const IntSize&, const IntSize& maxSize); |
| + static FloatSize clampedImageScale(const IntSize&, const IntSize&, const IntSize& maxSize); |
| const SkBitmap& bitmap() { return m_bitmap; } |
| float resolutionScale() const { return m_resolutionScale; } |
| @@ -68,6 +69,8 @@ private: |
| InterpolationQuality m_interpolationQuality; |
| }; |
| +PassRefPtr<SkImage> adjustedImage(PassRefPtr<SkImage>, const IntSize&, const AffineTransform&, float opacity, InterpolationQuality = InterpolationNone); |
|
chrishtr
2015/10/02 21:53:03
This is not a descriptive enough method name. Also
|
| + |
| } |
| #endif // DragImage_h |