| Flutter Impeller |

dl_runtime_effect_impeller.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef FLUTTER_IMPELLER_DISPLAY_LIST_DL_RUNTIME_EFFECT_IMPELLER_H_
6 #define FLUTTER_IMPELLER_DISPLAY_LIST_DL_RUNTIME_EFFECT_IMPELLER_H_
7
8 #include "flutter/display_list/effects/dl_runtime_effect.h"
9
10 namespace flutter {
11
12 class DlRuntimeEffectImpeller final : public DlRuntimeEffect {
13 public:
14 // |DlRuntimeEffect|
15 ~DlRuntimeEffectImpeller() override;
16
17 static sk_sp<DlRuntimeEffect> Make(
18 std::shared_ptr<impeller::RuntimeStage> runtime_stage);
19
20 explicit DlRuntimeEffectImpeller(
21 std::shared_ptr<impeller::RuntimeStage> runtime_stage);
22
23 // |DlRuntimeEffect|
24 sk_sp<SkRuntimeEffect> skia_runtime_effect() const override;
25
26 // |DlRuntimeEffect|
27 std::shared_ptr<impeller::RuntimeStage> runtime_stage() const override;
28
29 private:
30 DlRuntimeEffectImpeller() = delete;
31
32 std::shared_ptr<impeller::RuntimeStage> runtime_stage_;
33
34 FML_DISALLOW_COPY_AND_ASSIGN(DlRuntimeEffectImpeller);
35
36 friend DlRuntimeEffect;
37 };
38
39 } // namespace flutter
40
41 #endif // FLUTTER_IMPELLER_DISPLAY_LIST_DL_RUNTIME_EFFECT_IMPELLER_H_
flutter::DlRuntimeEffectImpeller
Definition: dl_runtime_effect_impeller.h:12
flutter::DlRuntimeEffectImpeller::~DlRuntimeEffectImpeller
~DlRuntimeEffectImpeller() override
flutter::DlRuntimeEffectImpeller::skia_runtime_effect
sk_sp< SkRuntimeEffect > skia_runtime_effect() const override
Definition: dl_runtime_effect_impeller.cc:25
flutter::DlRuntimeEffectImpeller::runtime_stage
std::shared_ptr< impeller::RuntimeStage > runtime_stage() const override
Definition: dl_runtime_effect_impeller.cc:29
flutter::DlRuntimeEffectImpeller::Make
static sk_sp< DlRuntimeEffect > Make(std::shared_ptr< impeller::RuntimeStage > runtime_stage)
Definition: dl_runtime_effect_impeller.cc:14
flutter
Definition: dl_golden_blur_unittests.cc:16