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

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, 7 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 3784107908c949c3c289acc660b6fa99f4698a02..af4f776f2c1dd890d2e0c47b052a6d3e777c4207 100644
--- a/third_party/WebKit/Source/platform/graphics/Pattern.h
+++ b/third_party/WebKit/Source/platform/graphics/Pattern.h
@@ -71,13 +71,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