17 {
22 : empty_paint_region_map,
23 has_raster_cache, impeller_enabled);
26 {
27 DiffContext::AutoSubtreeRestore subtree(&context);
28 const Layer* prev_root_layer = nullptr;
29 if (!prev_layer_tree_ ||
31
32
35 } else {
36 prev_root_layer = prev_layer_tree_->
root_layer();
37 }
39 }
40
41 damage_ =
42 context.ComputeDamage(additional_damage_, horizontal_clip_alignment_,
43 vertical_clip_alignment_);
45 }
46 return std::nullopt;
47}
Layer * root_layer() const
const SkISize & frame_size() const
const PaintRegionMap & paint_region_map() const
virtual void Diff(DiffContext *context, const Layer *old_layer)
std::map< uint64_t, PaintRegion > PaintRegionMap
constexpr int32_t width() const
constexpr int32_t height() const
static SkRect Make(const SkISize &size)
static SkRect MakeIWH(int w, int h)