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

Unified Diff: third_party/WebKit/Source/platform/DragImage.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/DragImage.cpp
diff --git a/third_party/WebKit/Source/platform/DragImage.cpp b/third_party/WebKit/Source/platform/DragImage.cpp
index c4cbd565dc0bbe9c09f70d9aea48cad7add89788..76047fa1191388a8bbb0f14ebdb1b5f0d92815c1 100644
--- a/third_party/WebKit/Source/platform/DragImage.cpp
+++ b/third_party/WebKit/Source/platform/DragImage.cpp
@@ -150,7 +150,10 @@ std::unique_ptr<DragImage> DragImage::create(
if (!image)
return nullptr;
- sk_sp<SkImage> skImage = image->imageForCurrentFrame();
+ // TODO(ccameron): DragImage needs to be color space aware.
+ // https://crbug.com/672316
+ sk_sp<SkImage> skImage =
+ image->imageForCurrentFrame(ColorBehavior::transformToGlobalTarget());
if (!skImage)
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698