5#ifndef FLUTTER_FLOW_LAYERS_CONTAINER_LAYER_H_
6#define FLUTTER_FLOW_LAYERS_CONTAINER_LAYER_H_
10#include "flutter/flow/layers/layer.h"
21 virtual void Add(std::shared_ptr<Layer> layer);
26 const std::vector<std::shared_ptr<Layer>>&
layers()
const {
return layers_; }
37 child_paint_bounds_ =
bounds;
41 return children_renderable_state_flags_;
44 children_renderable_state_flags_ =
flags;
51 std::vector<std::shared_ptr<Layer>> layers_;
52 SkRect child_paint_bounds_;
53 int children_renderable_state_flags_ = 0;
void set_children_renderable_state_flags(int flags)
int children_renderable_state_flags() const
void Preroll(PrerollContext *context) override
void PrerollChildren(PrerollContext *context, SkRect *child_paint_bounds)
void Paint(PaintContext &context) const override
void PreservePaintRegion(DiffContext *context) override
virtual void Add(std::shared_ptr< Layer > layer)
void PaintChildren(PaintContext &context) const override
void Diff(DiffContext *context, const Layer *old_layer) override
const std::vector< std::shared_ptr< Layer > > & layers() const
void set_child_paint_bounds(const SkRect &bounds)
virtual void DiffChildren(DiffContext *context, const ContainerLayer *old_layer)
const SkRect & child_paint_bounds() const
const ContainerLayer * as_container_layer() const override
FlutterSemanticsFlag flags
Optional< SkRect > bounds