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

Unified Diff: third_party/WebKit/Source/platform/exported/WebImage.cpp

Issue 2727133002: Remove ColorBehavior argument to Image::imageForCurrentFrame (Closed)
Patch Set: Rebase Created 3 years, 9 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
Index: third_party/WebKit/Source/platform/exported/WebImage.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebImage.cpp b/third_party/WebKit/Source/platform/exported/WebImage.cpp
index 5c2fe6ef7894b50e335c259bf35f619d0dcfb530..29a3a4f189fdff8bc5a52d76424d90ce4312fc43 100644
--- a/third_party/WebKit/Source/platform/exported/WebImage.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebImage.cpp
@@ -132,10 +132,7 @@ WebImage::WebImage(PassRefPtr<Image> image) {
if (!image)
return;
- // TODO(ccameron): WebImage needs to be consistent about color spaces.
- // https://crbug.com/672315
- if (sk_sp<SkImage> skImage =
- image->imageForCurrentFrame(ColorBehavior::transformToGlobalTarget()))
+ if (sk_sp<SkImage> skImage = image->imageForCurrentFrame())
skImage->asLegacyBitmap(&m_bitmap, SkImage::kRO_LegacyBitmapMode);
}

Powered by Google App Engine
This is Rietveld 408576698