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

Unified Diff: third_party/WebKit/Source/platform/DragImageTest.cpp

Issue 2559013002: Add ColorBehavior to blink::Image draw methods (Closed)
Patch Set: Rebase Created 4 years 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: third_party/WebKit/Source/platform/DragImageTest.cpp
diff --git a/third_party/WebKit/Source/platform/DragImageTest.cpp b/third_party/WebKit/Source/platform/DragImageTest.cpp
index 8dc491a40c0f421da4570a07340140573c949bb6..3b88abeb44ecc020b8b1ba897d7a619b894a68d1 100644
--- a/third_party/WebKit/Source/platform/DragImageTest.cpp
+++ b/third_party/WebKit/Source/platform/DragImageTest.cpp
@@ -65,7 +65,9 @@ class TestImage : public Image {
return IntSize(m_image->width(), m_image->height());
}
- sk_sp<SkImage> imageForCurrentFrame() override { return m_image; }
+ sk_sp<SkImage> imageForCurrentFrame(const ColorBehavior&) override {
+ return m_image;
+ }
bool currentFrameKnownToBeOpaque(MetadataMode = UseCurrentMetadata) override {
return false;
@@ -80,7 +82,8 @@ class TestImage : public Image {
const FloatRect&,
const FloatRect&,
RespectImageOrientationEnum,
- ImageClampingMode) override {
+ ImageClampingMode,
+ const ColorBehavior&) override {
// Image pure virtual stub.
}
« no previous file with comments | « third_party/WebKit/Source/platform/DragImage.cpp ('k') | third_party/WebKit/Source/platform/exported/WebImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698