|
@@ -73,8 +73,13 @@ private:
|
|
|
virtual bool would_be_fully_clipped_by_painter(Gfx::IntRect) const = 0;
|
|
|
};
|
|
|
|
|
|
-class DisplayList {
|
|
|
+class DisplayList : public RefCounted<DisplayList> {
|
|
|
public:
|
|
|
+ static NonnullRefPtr<DisplayList> create()
|
|
|
+ {
|
|
|
+ return adopt_ref(*new DisplayList());
|
|
|
+ }
|
|
|
+
|
|
|
void append(Command&& command, Optional<i32> scroll_frame_id);
|
|
|
|
|
|
void apply_scroll_offsets(Vector<Gfx::IntPoint> const& offsets_by_frame_id);
|
|
@@ -89,6 +94,8 @@ public:
|
|
|
AK::SegmentedVector<CommandListItem, 512> const& commands() const { return m_commands; }
|
|
|
|
|
|
private:
|
|
|
+ DisplayList() = default;
|
|
|
+
|
|
|
AK::SegmentedVector<CommandListItem, 512> m_commands;
|
|
|
};
|
|
|
|