| 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 bdced731bc8cd1d84a89860972b1f07b1b221604..1e41352fe950a20bf32b3c4c5cae42607c2aaa9d 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)
|
| @@ -39,7 +40,7 @@ private:
|
| #endif
|
| bool equals(const DisplayItem& other) const final;
|
|
|
| - 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;
|
|
|