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

Unified Diff: Source/platform/DragImage.h

Issue 886323005: Pass InterpolationQuality into DragImage to respect image-rendering:pixelated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Sync and rebase Created 5 years, 10 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
« no previous file with comments | « Source/core/page/DragController.cpp ('k') | Source/platform/DragImage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/DragImage.h
diff --git a/Source/platform/DragImage.h b/Source/platform/DragImage.h
index 9abdf5f7696bf5fc499391fa260e3c4adfda7c8b..8579e303ae526bc66676c13e1d37b3b51b993ec0 100644
--- a/Source/platform/DragImage.h
+++ b/Source/platform/DragImage.h
@@ -27,6 +27,7 @@
#define DragImage_h
#include "platform/geometry/IntSize.h"
+#include "platform/graphics/GraphicsTypes.h"
#include "platform/graphics/ImageOrientation.h"
#include "platform/graphics/paint/DisplayItemClient.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -40,7 +41,7 @@ class KURL;
class PLATFORM_EXPORT DragImage {
public:
- static PassOwnPtr<DragImage> create(Image*, RespectImageOrientationEnum = DoNotRespectImageOrientation, float deviceScaleFactor = 1);
+ static PassOwnPtr<DragImage> create(Image*, RespectImageOrientationEnum = DoNotRespectImageOrientation, float deviceScaleFactor = 1, InterpolationQuality = InterpolationHigh);
static PassOwnPtr<DragImage> create(const KURL&, const String& label, const FontDescription& systemFont, float deviceScaleFactor);
~DragImage();
@@ -53,12 +54,13 @@ public:
void dissolveToFraction(float fraction);
private:
- DragImage(const SkBitmap&, float resolutionScale);
+ DragImage(const SkBitmap&, float resolutionScale, InterpolationQuality);
DisplayItemClient displayItemClient() const { return toDisplayItemClient(this); }
SkBitmap m_bitmap;
float m_resolutionScale;
+ InterpolationQuality m_interpolationQuality;
};
}
« no previous file with comments | « Source/core/page/DragController.cpp ('k') | Source/platform/DragImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698