mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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:
parent
fb07edfa72
commit
d05d99805f
@ -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_;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user