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

Unified Diff: third_party/WebKit/Source/platform/graphics/BitmapImage.cpp

Issue 2712083002: color: Remove blink pre-conversion code (Closed)
Patch Set: Rebase Created 3 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
Index: third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp b/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
index eacf3baab60e48f795784edbb9347f675be254fb..92ea4de1b78448828eae0b1dfeb700459d9a6066 100644
--- a/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
+++ b/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
@@ -266,11 +266,11 @@ void BitmapImage::draw(
const FloatRect& dstRect,
const FloatRect& srcRect,
RespectImageOrientationEnum shouldRespectImageOrientation,
- ImageClampingMode clampMode,
- const ColorBehavior& colorBehavior) {
+ ImageClampingMode clampMode) {
TRACE_EVENT0("skia", "BitmapImage::draw");
- sk_sp<SkImage> image = imageForCurrentFrame(colorBehavior);
+ sk_sp<SkImage> image =
+ imageForCurrentFrame(ColorBehavior::transformToGlobalTarget());
if (!image)
return; // It's too early and we don't have an image yet.

Powered by Google App Engine
This is Rietveld 408576698