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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.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/modules/canvas2d/CanvasRenderingContext2DState.h
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.h b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.h
index 25347e62086cfee8169ed4e1c83dcc00263dc12e..131c647f47b1da8171742b3501470eb2b0085223 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.h
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.h
@@ -9,6 +9,7 @@
#include "modules/canvas2d/ClipList.h"
#include "platform/fonts/Font.h"
#include "platform/transforms/AffineTransform.h"
+#include "third_party/skia/include/core/SkRefCnt.h"
#include "wtf/Vector.h"
namespace blink {
@@ -194,9 +195,9 @@ private:
FloatSize m_shadowOffset;
double m_shadowBlur;
SkColor m_shadowColor;
- mutable RefPtr<SkDrawLooper> m_emptyDrawLooper;
- mutable RefPtr<SkDrawLooper> m_shadowOnlyDrawLooper;
- mutable RefPtr<SkDrawLooper> m_shadowAndForegroundDrawLooper;
+ mutable sk_sp<SkDrawLooper> m_emptyDrawLooper;
+ mutable sk_sp<SkDrawLooper> m_shadowOnlyDrawLooper;
+ mutable sk_sp<SkDrawLooper> m_shadowAndForegroundDrawLooper;
mutable sk_sp<SkImageFilter> m_shadowOnlyImageFilter;
mutable sk_sp<SkImageFilter> m_shadowAndForegroundImageFilter;

Powered by Google App Engine
This is Rietveld 408576698