Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2779)

Unified Diff: cc/playback/display_item.h

Issue 2751833007: cc: Move DisplayItem::Raster up to DisplayItemList (Closed)
Patch Set: virtualraster: . Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/playback/compositing_display_item.cc ('k') | cc/playback/display_item_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « cc/playback/compositing_display_item.cc ('k') | cc/playback/display_item_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698