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

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

Issue 2743363006: Clean up cc/paint interfaces (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/graphics/Image.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/Image.cpp b/third_party/WebKit/Source/platform/graphics/Image.cpp
index 93ca41dc4074416e232eb394ee5e90c870597468..4d3174b34966d5122d49f38955070bcdc5877519 100644
--- a/third_party/WebKit/Source/platform/graphics/Image.cpp
+++ b/third_party/WebKit/Source/platform/graphics/Image.cpp
@@ -222,7 +222,7 @@ void Image::drawTiledBorder(GraphicsContext& ctxt,
namespace {
-sk_sp<PaintShader> createPatternShader(const SkImage* image,
+sk_sp<PaintShader> createPatternShader(sk_sp<const SkImage> image,
const SkMatrix& shaderMatrix,
const PaintFlags& paint,
const FloatSize& spacing,
@@ -310,7 +310,7 @@ void Image::drawPattern(GraphicsContext& context,
context.computeFilterQuality(this, destRect, normSrcRect));
flags.setAntiAlias(context.shouldAntialias());
flags.setShader(
- createPatternShader(image.get(), localMatrix, flags,
+ createPatternShader(image, localMatrix, flags,
danakj 2017/03/16 20:06:16 move()
FloatSize(repeatSpacing.width() / scale.width(),
repeatSpacing.height() / scale.height()),
tmx, tmy));

Powered by Google App Engine
This is Rietveld 408576698