| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CC_PLAYBACK_DRAWING_DISPLAY_ITEM_H_ | |
| 6 #define CC_PLAYBACK_DRAWING_DISPLAY_ITEM_H_ | |
| 7 | |
| 8 #include <stddef.h> | |
| 9 | |
| 10 #include "cc/base/cc_export.h" | |
| 11 #include "cc/paint/paint_record.h" | |
| 12 #include "cc/playback/display_item.h" | |
| 13 #include "third_party/skia/include/core/SkRefCnt.h" | |
| 14 | |
| 15 namespace cc { | |
| 16 | |
| 17 class CC_EXPORT DrawingDisplayItem : public DisplayItem { | |
| 18 public: | |
| 19 DrawingDisplayItem(); | |
| 20 explicit DrawingDisplayItem(sk_sp<const PaintRecord> record); | |
| 21 explicit DrawingDisplayItem(const DrawingDisplayItem& item); | |
| 22 ~DrawingDisplayItem() override; | |
| 23 | |
| 24 size_t ExternalMemoryUsage() const; | |
| 25 int ApproximateOpCount() const; | |
| 26 | |
| 27 const sk_sp<const PaintRecord> picture; | |
| 28 }; | |
| 29 | |
| 30 } // namespace cc | |
| 31 | |
| 32 #endif // CC_PLAYBACK_DRAWING_DISPLAY_ITEM_H_ | |
| OLD | NEW |