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

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

Issue 2743363006: Clean up cc/paint interfaces (Closed)
Patch Set: Fix PaintControllerTest v2 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..5afab1670536649c0bf8083221c84f114956d439 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(std::move(image), localMatrix, flags,
FloatSize(repeatSpacing.width() / scale.width(),
repeatSpacing.height() / scale.height()),
tmx, tmy));

Powered by Google App Engine
This is Rietveld 408576698