Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
flutter::SnapshotControllerImpeller Class Reference

#include <snapshot_controller_impeller.h>

Inheritance diagram for flutter::SnapshotControllerImpeller:
flutter::SnapshotController

Public Member Functions

 SnapshotControllerImpeller (const SnapshotController::Delegate &delegate)
 
sk_sp< DlImageMakeRasterSnapshot (sk_sp< DisplayList > display_list, SkISize size) override
 
sk_sp< SkImageConvertToRasterImage (sk_sp< SkImage > image) override
 
void CacheRuntimeStage (const std::shared_ptr< impeller::RuntimeStage > &runtime_stage) override
 
- Public Member Functions inherited from flutter::SnapshotController
virtual ~SnapshotController ()=default
 

Additional Inherited Members

- Static Public Member Functions inherited from flutter::SnapshotController
static std::unique_ptr< SnapshotControllerMake (const Delegate &delegate, const Settings &settings)
 
- Protected Member Functions inherited from flutter::SnapshotController
 SnapshotController (const Delegate &delegate)
 
const DelegateGetDelegate ()
 

Detailed Description

Definition at line 13 of file snapshot_controller_impeller.h.

Constructor & Destructor Documentation

◆ SnapshotControllerImpeller()

flutter::SnapshotControllerImpeller::SnapshotControllerImpeller ( const SnapshotController::Delegate delegate)
inlineexplicit

Definition at line 15 of file snapshot_controller_impeller.h.

17 : SnapshotController(delegate) {}
SnapshotController(const Delegate &delegate)

Member Function Documentation

◆ CacheRuntimeStage()

void flutter::SnapshotControllerImpeller::CacheRuntimeStage ( const std::shared_ptr< impeller::RuntimeStage > &  runtime_stage)
overridevirtual

Implements flutter::SnapshotController.

Definition at line 73 of file snapshot_controller_impeller.cc.

74 {
76 runtime_effect.SetRuntimeStage(runtime_stage);
77 auto context = GetDelegate().GetAiksContext();
78 if (!context) {
79 return;
80 }
81 runtime_effect.BootstrapShader(context->GetContentContext());
82}
virtual std::shared_ptr< impeller::AiksContext > GetAiksContext() const =0
bool BootstrapShader(const ContentContext &renderer) const
Load the runtime effect and ensure a default PSO is initialized.
void SetRuntimeStage(std::shared_ptr< RuntimeStage > runtime_stage)

◆ ConvertToRasterImage()

sk_sp< SkImage > flutter::SnapshotControllerImpeller::ConvertToRasterImage ( sk_sp< SkImage image)
overridevirtual

Implements flutter::SnapshotController.

Definition at line 84 of file snapshot_controller_impeller.cc.

85 {
87}
#define FML_UNREACHABLE()
Definition logging.h:109

◆ MakeRasterSnapshot()

sk_sp< DlImage > flutter::SnapshotControllerImpeller::MakeRasterSnapshot ( sk_sp< DisplayList display_list,
SkISize  size 
)
overridevirtual

Implements flutter::SnapshotController.

Definition at line 18 of file snapshot_controller_impeller.cc.

20 {
24 .SetIfTrue([&] {
25 // Do nothing.
26 })
27 .SetIfFalse(
28 [&] { result = DoMakeRasterSnapshot(display_list, size); }));
29
30 return result;
31}
virtual std::shared_ptr< const fml::SyncSwitch > GetIsGpuDisabledSyncSwitch() const =0
GAsyncResult * result
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition switches.h:259
Represents the 2 code paths available when calling |SyncSwitchExecute|.
Definition sync_switch.h:35

The documentation for this class was generated from the following files: