5#ifndef FLUTTER_FLOW_LAYERS_CLIP_SHAPE_LAYER_H_
6#define FLUTTER_FLOW_LAYERS_CLIP_SHAPE_LAYER_H_
28 if (!
context->IsSubtreeDirty()) {
30 if (clip_behavior_ != prev->clip_behavior_ ||
31 clip_shape_ != prev->clip_shape_) {
32 context->MarkSubtreeDirty(
context->GetOldLayerPaintRegion(old_layer));
36 context->WillPaintWithIntegralTransform();
41 context->SetLayerPaintRegion(
this,
context->CurrentSubtreeRegion());
64 auto mutator =
context->state_stack.save();
74 if (uses_save_layer) {
82 auto mutator =
context.state_stack.save();
92 mutator.integralTransform();
93 auto restore_apply =
context.state_stack.applyState(
98 context.state_stack.fill(paint))) {
std::unique_ptr< LayerRasterCacheItem > layer_raster_cache_item_
void Paint(PaintContext &context) const override
Clip clip_behavior() const
const ClipShape & clip_shape() const
bool UsesSaveLayer() const
virtual const DlRect clip_shape_bounds() const =0
void Preroll(PrerollContext *context) override
virtual ~ClipShapeLayer()=default
virtual void PushClipToEmbeddedNativeViewMutatorStack(ExternalViewEmbedder *view_embedder) const =0
virtual void ApplyClip(LayerStateStack::MutatorContext &mutator) const =0
ClipShapeLayer(const ClipShape &clip_shape, Clip clip_behavior)
void Diff(DiffContext *context, const Layer *old_layer) override
const DlRect & child_paint_bounds() const
void PrerollChildren(PrerollContext *context, DlRect *child_paint_bounds)
void PaintChildren(PaintContext &context) const override
virtual void DiffChildren(DiffContext *context, const ContainerLayer *old_layer)
static AutoPrerollSaveLayerState Create(PrerollContext *preroll_context, bool save_layer_is_active=true, bool layer_itself_performs_readback=false)
static constexpr int kSaveLayerRenderFlags
void set_paint_bounds(const DlRect &paint_bounds)
bool needs_painting(PaintContext &context) const
const DlRect & paint_bounds() const
static constexpr int kCallerCanApplyOpacity
#define FML_DCHECK(condition)
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
@ kAntiAliasWithSaveLayer
std::shared_ptr< ContextGLES > context
constexpr TRect IntersectionOrEmpty(const TRect &o) const