| 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_DISPLAY_ITEM_H_ | |
| 6 #define CC_PLAYBACK_DISPLAY_ITEM_H_ | |
| 7 | |
| 8 #include <stddef.h> | |
| 9 | |
| 10 #include <memory> | |
| 11 | |
| 12 #include "cc/base/cc_export.h" | |
| 13 #include "cc/debug/traced_value.h" | |
| 14 #include "third_party/skia/include/core/SkPicture.h" | |
| 15 #include "ui/gfx/geometry/rect.h" | |
| 16 | |
| 17 namespace cc { | |
| 18 | |
| 19 class CC_EXPORT DisplayItem { | |
| 20 public: | |
| 21 virtual ~DisplayItem() = default; | |
| 22 | |
| 23 enum Type { | |
| 24 CLIP, | |
| 25 END_CLIP, | |
| 26 CLIP_PATH, | |
| 27 END_CLIP_PATH, | |
| 28 COMPOSITING, | |
| 29 END_COMPOSITING, | |
| 30 DRAWING, | |
| 31 FILTER, | |
| 32 END_FILTER, | |
| 33 FLOAT_CLIP, | |
| 34 END_FLOAT_CLIP, | |
| 35 TRANSFORM, | |
| 36 END_TRANSFORM, | |
| 37 }; | |
| 38 const Type type; | |
| 39 | |
| 40 protected: | |
| 41 explicit DisplayItem(Type type) : type(type) {} | |
| 42 }; | |
| 43 | |
| 44 } // namespace cc | |
| 45 | |
| 46 #endif // CC_PLAYBACK_DISPLAY_ITEM_H_ | |
| OLD | NEW |