8#ifndef DrawableOp_DEFINED
9#define DrawableOp_DEFINED
23 std::unique_ptr<SkDrawable::GpuDrawHandler> drawable,
26 const char*
name()
const override {
return "Drawable"; }
48 std::unique_ptr<SkDrawable::GpuDrawHandler> fDrawable;
#define DEFINE_OP_CLASS_ID
virtual void onExecute(GrOpFlushState *, const SkRect &chainBounds)=0
std::unique_ptr< GrOp > Owner
virtual void onPrepare(GrOpFlushState *)=0
virtual void onPrePrepare(GrRecordingContext *, const GrSurfaceProxyView &writeView, GrAppliedClip *, const GrDstProxyView &, GrXferBarrierFlags renderPassXferBarriers, GrLoadOp colorLoadOp)=0
const SkRect & bounds() const
virtual CombineResult onCombineIfPossible(GrOp *, SkArenaAlloc *, const GrCaps &)
static DEFINE_OP_CLASS_ID GrOp::Owner Make(GrRecordingContext *, std::unique_ptr< SkDrawable::GpuDrawHandler > drawable, const SkRect &bounds)
const char * name() const override