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

Unified Diff: third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.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/GradientGeneratedImage.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.cpp b/third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.cpp
index 718787a9b93f11995677677ad35a31edab1a6a3a..62a6965fa237ed0c3493032ccc18a7339a90eadb 100644
--- a/third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.cpp
@@ -36,10 +36,7 @@ void GradientGeneratedImage::draw(PaintCanvas* canvas,
const FloatRect& destRect,
const FloatRect& srcRect,
RespectImageOrientationEnum,
- ImageClampingMode,
- const ColorBehavior& colorBehavior) {
- // TODO(ccameron): This function should not ignore |colorBehavior|.
- // https://crbug.com/672306
+ ImageClampingMode) {
SkRect visibleSrcRect = srcRect;
if (!visibleSrcRect.intersect(
SkRect::MakeIWH(m_size.width(), m_size.height())))
@@ -66,10 +63,7 @@ void GradientGeneratedImage::drawTile(GraphicsContext& context,
}
bool GradientGeneratedImage::applyShader(PaintFlags& flags,
- const SkMatrix& localMatrix,
- const ColorBehavior& colorBehavior) {
- // TODO(ccameron): This function should not ignore |colorBehavior|.
- // https://crbug.com/672306
+ const SkMatrix& localMatrix) {
DCHECK(m_gradient);
m_gradient->applyToFlags(flags, localMatrix);

Powered by Google App Engine
This is Rietveld 408576698