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

Unified Diff: Source/platform/graphics/GeneratedImage.cpp

Issue 868743002: Use SkXfermode::Mode in code related to Image. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase to ToT Created 5 years, 11 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
« no previous file with comments | « Source/platform/graphics/GeneratedImage.h ('k') | Source/platform/graphics/GradientGeneratedImage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/GeneratedImage.cpp
diff --git a/Source/platform/graphics/GeneratedImage.cpp b/Source/platform/graphics/GeneratedImage.cpp
index dede8992662ecddfb515c9e2b0cb9bd22749ede9..4dbfb8a987a4ebd523f6c7f73fce5c2c63480fcf 100644
--- a/Source/platform/graphics/GeneratedImage.cpp
+++ b/Source/platform/graphics/GeneratedImage.cpp
@@ -44,7 +44,7 @@ void GeneratedImage::computeIntrinsicDimensions(Length& intrinsicWidth, Length&
}
void GeneratedImage::drawPattern(GraphicsContext* destContext, const FloatRect& srcRect, const FloatSize& scale,
- const FloatPoint& phase, CompositeOperator compositeOp, const FloatRect& destRect, WebBlendMode blendMode,
+ const FloatPoint& phase, SkXfermode::Mode compositeOp, const FloatRect& destRect,
const IntSize& repeatSpacing)
{
FloatRect tileRect = srcRect;
@@ -64,7 +64,7 @@ void GeneratedImage::drawPattern(GraphicsContext* destContext, const FloatRect&
picturePattern->setPatternSpaceTransform(patternTransform);
GraphicsContextStateSaver saver(*destContext);
- destContext->setCompositeOperation(WebCoreCompositeToSkiaComposite(compositeOp, blendMode));
+ destContext->setCompositeOperation(compositeOp);
destContext->setFillPattern(picturePattern);
destContext->fillRect(destRect);
}
« no previous file with comments | « Source/platform/graphics/GeneratedImage.h ('k') | Source/platform/graphics/GradientGeneratedImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698