Remove use of SkFunctionWrapper from display_list (flutter/engine#36931)

This commit is contained in:
Jason Simmons 2022-10-21 12:14:23 -07:00 committed by GitHub
parent 92b9aa8d8a
commit 993c84dfcb

View File

@ -283,7 +283,10 @@ class DisplayList : public SkRefCnt {
const SkRect& cull_rect,
bool can_apply_group_opacity);
std::unique_ptr<uint8_t, SkFunctionWrapper<void(void*), sk_free>> storage_;
struct SkFreeDeleter {
void operator()(uint8_t* p) { sk_free(p); }
};
std::unique_ptr<uint8_t, SkFreeDeleter> storage_;
size_t byte_count_;
unsigned int op_count_;