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

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

Issue 2712083002: color: Remove blink pre-conversion code (Closed)
Patch Set: git cl try 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/GraphicsContext.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
index 05331497891aeca913e094cc5c3eef955420cef4..79992b58a434f587be896e3fb8370f9dc764f181 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
@@ -828,7 +828,7 @@ void GraphicsContext::drawImage(
imageFlags.setFilterQuality(computeFilterQuality(image, dest, src));
imageFlags.setAntiAlias(shouldAntialias());
image->draw(m_canvas, imageFlags, dest, src, shouldRespectImageOrientation,
- Image::ClampImageToSourceRect, m_colorBehavior);
chrishtr 2017/02/28 21:21:28 Remove m_colorBehavior entirely?
ccameron 2017/03/01 20:40:32 Mmh, good point. Took out a little bit more.
+ Image::ClampImageToSourceRect);
m_paintController.setImagePainted();
}
@@ -864,7 +864,7 @@ void GraphicsContext::drawImageRRect(
if (useShader) {
const SkMatrix localMatrix = SkMatrix::MakeRectToRect(
visibleSrc, dest.rect(), SkMatrix::kFill_ScaleToFit);
- useShader = image->applyShader(imageFlags, localMatrix, m_colorBehavior);
+ useShader = image->applyShader(imageFlags, localMatrix);
}
if (useShader) {
@@ -875,7 +875,7 @@ void GraphicsContext::drawImageRRect(
PaintCanvasAutoRestore autoRestore(m_canvas, true);
m_canvas->clipRRect(dest, imageFlags.isAntiAlias());
image->draw(m_canvas, imageFlags, dest.rect(), srcRect, respectOrientation,
- Image::ClampImageToSourceRect, m_colorBehavior);
+ Image::ClampImageToSourceRect);
}
m_paintController.setImagePainted();

Powered by Google App Engine
This is Rietveld 408576698