hide DisplayList::DisposeOps and other lint suggestions (flutter/engine#41464)

Fixes https://github.com/flutter/flutter/issues/125428

Note that these are lint-type fixes and so there are no tests for them.
This commit is contained in:
Jim Graham 2023-04-25 12:46:26 -07:00 committed by GitHub
parent fb07edfa72
commit d05d99805f

View File

@ -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<const DisplayList> other) const {
bool Equals(const sk_sp<const DisplayList>& 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_;