diff --git a/engine/src/flutter/display_list/display_list.h b/engine/src/flutter/display_list/display_list.h index cbc9eb7925d..6820434418b 100644 --- a/engine/src/flutter/display_list/display_list.h +++ b/engine/src/flutter/display_list/display_list.h @@ -257,15 +257,13 @@ class DisplayList : public SkRefCnt { bool Equals(const DisplayList* other) const; bool Equals(const DisplayList& other) const { return Equals(&other); } - bool Equals(sk_sp other) const { + bool Equals(const sk_sp& other) const { return Equals(other.get()); } bool can_apply_group_opacity() const { return can_apply_group_opacity_; } bool isUIThreadSafe() const { return is_ui_thread_safe_; } - static void DisposeOps(uint8_t* ptr, uint8_t* end); - private: DisplayList(DisplayListStorage&& ptr, size_t byte_count, @@ -279,6 +277,8 @@ class DisplayList : public SkRefCnt { static uint32_t next_unique_id(); + static void DisposeOps(uint8_t* ptr, uint8_t* end); + const DisplayListStorage storage_; const size_t byte_count_; const unsigned int op_count_;