| Index: third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.h
|
| diff --git a/third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.h b/third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.h
|
| index d347ba193addf4fb0272bc324ed3c04a8415353d..761df15b5c46c43f2081ff822727ba4ae170ca2f 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.h
|
| +++ b/third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.h
|
| @@ -10,12 +10,13 @@
|
| #include "platform/geometry/FloatPoint.h"
|
| #include "platform/graphics/paint/DisplayItem.h"
|
| #include "third_party/skia/include/core/SkPicture.h"
|
| +#include "third_party/skia/include/core/SkRefCnt.h"
|
|
|
| namespace blink {
|
|
|
| class PLATFORM_EXPORT DrawingDisplayItem final : public DisplayItem {
|
| public:
|
| - DrawingDisplayItem(const DisplayItemClient& client, Type type, PassRefPtr<const SkPicture> picture, bool knownToBeOpaque = false)
|
| + DrawingDisplayItem(const DisplayItemClient& client, Type type, sk_sp<const SkPicture> picture, bool knownToBeOpaque = false)
|
| : DisplayItem(client, type, sizeof(*this))
|
| , m_picture(picture && picture->approximateOpCount() ? picture : nullptr)
|
| , m_knownToBeOpaque(knownToBeOpaque)
|
| @@ -42,7 +43,7 @@ private:
|
| void dumpPropertiesAsDebugString(WTF::StringBuilder&) const override;
|
| #endif
|
|
|
| - RefPtr<const SkPicture> m_picture;
|
| + sk_sp<const SkPicture> m_picture;
|
|
|
| // True if there are no transparent areas. Only used for SlimmingPaintV2.
|
| const bool m_knownToBeOpaque;
|
|
|