| Index: cc/playback/display_item.h
|
| diff --git a/cc/playback/display_item.h b/cc/playback/display_item.h
|
| index 09899a80c3eccc5b97d68b48f3245fa25d8a09b2..8e56d21cdbf6403db820987901df617d42b526a4 100644
|
| --- a/cc/playback/display_item.h
|
| +++ b/cc/playback/display_item.h
|
| @@ -14,12 +14,12 @@
|
| #include "third_party/skia/include/core/SkPicture.h"
|
| #include "ui/gfx/geometry/rect.h"
|
|
|
| -class SkCanvas;
|
| -
|
| namespace cc {
|
|
|
| class CC_EXPORT DisplayItem {
|
| public:
|
| + virtual ~DisplayItem() = default;
|
| +
|
| enum Type {
|
| CLIP,
|
| END_CLIP,
|
| @@ -35,18 +35,10 @@ class CC_EXPORT DisplayItem {
|
| TRANSFORM,
|
| END_TRANSFORM,
|
| };
|
| -
|
| - virtual ~DisplayItem() {}
|
| -
|
| - virtual void Raster(SkCanvas* canvas,
|
| - SkPicture::AbortCallback* callback) const = 0;
|
| -
|
| - Type type() const { return type_; }
|
| + const Type type;
|
|
|
| protected:
|
| - explicit DisplayItem(Type type) : type_(type) {}
|
| -
|
| - const Type type_;
|
| + explicit DisplayItem(Type type) : type(type) {}
|
| };
|
|
|
| } // namespace cc
|
|
|