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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsContextState.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/GraphicsContextState.h
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContextState.h b/third_party/WebKit/Source/platform/graphics/GraphicsContextState.h
index b8605c5bbc91893642f805079c1c76f3294657f7..88bf6a7018630218d3cbc3a9dbdfd642e44baf7b 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContextState.h
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContextState.h
@@ -34,10 +34,10 @@
#include "platform/graphics/StrokeData.h"
#include "third_party/skia/include/core/SkColorFilter.h"
#include "third_party/skia/include/core/SkPaint.h"
+#include "third_party/skia/include/core/SkRefCnt.h"
#include "wtf/Allocator.h"
#include "wtf/Noncopyable.h"
#include "wtf/PtrUtil.h"
-#include "wtf/RefPtr.h"
#include <memory>
namespace blink {
@@ -90,7 +90,7 @@ public:
DCHECK_EQ(m_fillPaint.getLooper(), m_strokePaint.getLooper());
return m_fillPaint.getLooper();
}
- void setDrawLooper(PassRefPtr<SkDrawLooper>);
+ void setDrawLooper(sk_sp<SkDrawLooper>);
// Text. (See TextModeFill & friends.)
TextDrawingModeFlags textDrawingMode() const { return m_textDrawingMode; }
@@ -101,7 +101,7 @@ public:
DCHECK_EQ(m_fillPaint.getColorFilter(), m_strokePaint.getColorFilter());
return m_fillPaint.getColorFilter();
}
- void setColorFilter(PassRefPtr<SkColorFilter>);
+ void setColorFilter(sk_sp<SkColorFilter>);
// Image interpolation control.
InterpolationQuality getInterpolationQuality() const { return m_interpolationQuality; }

Powered by Google App Engine
This is Rietveld 408576698