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

Unified Diff: third_party/WebKit/Source/platform/graphics/Pattern.h

Issue 2893083002: cc: Move SkShader construction to a single spot in PaintShader (Closed)
Patch Set: update Created 3 years, 6 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/Pattern.h
diff --git a/third_party/WebKit/Source/platform/graphics/Pattern.h b/third_party/WebKit/Source/platform/graphics/Pattern.h
index 1db8d22bed04bc1525b799d300cfb2fa74beeaf5..f939b5ee16a7407e28d02d8f02296e7cdc35aa01 100644
--- a/third_party/WebKit/Source/platform/graphics/Pattern.h
+++ b/third_party/WebKit/Source/platform/graphics/Pattern.h
@@ -72,13 +72,13 @@ class PLATFORM_EXPORT Pattern : public RefCounted<Pattern> {
virtual bool IsTextureBacked() const { return false; }
protected:
- virtual sk_sp<PaintShader> CreateShader(const SkMatrix&) = 0;
+ virtual std::unique_ptr<PaintShader> CreateShader(const SkMatrix&) = 0;
virtual bool IsLocalMatrixChanged(const SkMatrix&) const;
RepeatMode repeat_mode_;
Pattern(RepeatMode);
- mutable sk_sp<PaintShader> cached_shader_;
+ mutable std::unique_ptr<PaintShader> cached_shader_;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698