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

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

Issue 2290903002: Change (Pass)RefPtr<SkXxx> into sk_sp<SkXxx>. (Closed)
Patch Set: Rebasing... Created 4 years, 3 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/PicturePattern.h
diff --git a/third_party/WebKit/Source/platform/graphics/PicturePattern.h b/third_party/WebKit/Source/platform/graphics/PicturePattern.h
index 5c666a31ab133d7dbd030e0756902a70f087cfd4..04c071c018e57e0fb4471c31a703ea171a8ef0b5 100644
--- a/third_party/WebKit/Source/platform/graphics/PicturePattern.h
+++ b/third_party/WebKit/Source/platform/graphics/PicturePattern.h
@@ -6,12 +6,13 @@
#define PicturePattern_h
#include "platform/graphics/Pattern.h"
+#include "third_party/skia/include/core/SkRefCnt.h"
namespace blink {
class PLATFORM_EXPORT PicturePattern final : public Pattern {
public:
- static PassRefPtr<PicturePattern> create(PassRefPtr<SkPicture>, RepeatMode);
+ static PassRefPtr<PicturePattern> create(sk_sp<SkPicture>, RepeatMode);
~PicturePattern() override;
@@ -19,7 +20,7 @@ protected:
sk_sp<SkShader> createShader(const SkMatrix&) override;
private:
- PicturePattern(PassRefPtr<SkPicture>, RepeatMode);
+ PicturePattern(sk_sp<SkPicture>, RepeatMode);
sk_sp<SkPicture> m_tilePicture;
};

Powered by Google App Engine
This is Rietveld 408576698