5#include "flutter/display_list/effects/dl_runtime_effect.h"
20 return sk_make_sp<DlRuntimeEffectSkia>(runtime_effect);
24 std::shared_ptr<impeller::RuntimeStage> runtime_stage) {
25 return sk_make_sp<DlRuntimeEffectImpeller>(std::move(
runtime_stage));
32DlRuntimeEffectSkia::~DlRuntimeEffectSkia() =
default;
34DlRuntimeEffectSkia::DlRuntimeEffectSkia(
36 : skia_runtime_effect_(runtime_effect) {}
39 return skia_runtime_effect_;
51DlRuntimeEffectImpeller::~DlRuntimeEffectImpeller() =
default;
53DlRuntimeEffectImpeller::DlRuntimeEffectImpeller(
54 std::shared_ptr<impeller::RuntimeStage> runtime_stage)
55 : runtime_stage_(
std::move(runtime_stage)){};
63 return runtime_stage_;
sk_sp< SkRuntimeEffect > skia_runtime_effect() const override
std::shared_ptr< impeller::RuntimeStage > runtime_stage() const override
sk_sp< SkRuntimeEffect > skia_runtime_effect() const override
std::shared_ptr< impeller::RuntimeStage > runtime_stage() const override
static sk_sp< DlRuntimeEffect > MakeSkia(const sk_sp< SkRuntimeEffect > &runtime_effect)
virtual ~DlRuntimeEffect()
virtual std::shared_ptr< impeller::RuntimeStage > runtime_stage() const =0
static sk_sp< DlRuntimeEffect > MakeImpeller(std::shared_ptr< impeller::RuntimeStage > runtime_stage)