| 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 3dedbcbdd54c3cb08aa21d09e247df909f14e3ad..ccfb00905fbeaaf192487c5359c394929dd4afdd 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.h
|
| +++ b/third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.h
|
| @@ -23,8 +23,7 @@ class PLATFORM_EXPORT DrawingDisplayItem final : public DisplayItem {
|
| sk_sp<const PaintRecord> record,
|
| bool known_to_be_opaque = false)
|
| : DisplayItem(client, type, sizeof(*this)),
|
| - record_(record && record->approximateOpCount() ? std::move(record)
|
| - : nullptr),
|
| + record_(record && record->size() ? std::move(record) : nullptr),
|
| known_to_be_opaque_(known_to_be_opaque) {
|
| DCHECK(IsDrawingType(type));
|
| }
|
|
|