Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
snapshot_controller_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_SHELL_COMMON_SNAPSHOT_CONTROLLER_IMPELLER_H_
6#define FLUTTER_SHELL_COMMON_SNAPSHOT_CONTROLLER_IMPELLER_H_
7
10
11namespace flutter {
12
14 public:
16 const SnapshotController::Delegate& delegate)
17 : SnapshotController(delegate) {}
18
19 void MakeSkiaSnapshot(sk_sp<DisplayList> display_list,
20 DlISize picture_size,
21 std::function<void(const sk_sp<SkImage>&)> callback,
22 SnapshotPixelFormat pixel_format) override;
23
24 sk_sp<SkImage> MakeSkiaSnapshotSync(
25 sk_sp<DisplayList> display_list,
27 SnapshotPixelFormat pixel_format) override;
28
30 sk_sp<DisplayList> display_list,
31 DlISize picture_size,
32 std::function<void(const std::shared_ptr<impeller::Texture>&)> callback,
33 SnapshotPixelFormat pixel_format) override;
34
35 std::shared_ptr<impeller::Texture> MakeImpellerSnapshotSync(
36 sk_sp<DisplayList> display_list,
37 DlISize picture_size,
38 SnapshotPixelFormat pixel_format) override;
39
40 sk_sp<SkImage> MakeSkiaTextureImage(
41 sk_sp<SkImage> image,
42 SnapshotPixelFormat pixel_format) override;
43
44 std::shared_ptr<impeller::Texture> MakeImpellerTextureImage(
45 sk_sp<SkImage> image,
46 SnapshotPixelFormat pixel_format) override;
47
48 sk_sp<SkImage> ConvertToRasterImage(sk_sp<SkImage> image) override;
49
51 const std::shared_ptr<impeller::RuntimeStage>& runtime_stage) override;
52
53 virtual bool MakeRenderContextCurrent() override;
54
55 private:
57};
58
59} // namespace flutter
60
61#endif // FLUTTER_SHELL_COMMON_SNAPSHOT_CONTROLLER_IMPELLER_H_
sk_sp< SkImage > MakeSkiaSnapshotSync(sk_sp< DisplayList > display_list, DlISize size, SnapshotPixelFormat pixel_format) override
void MakeSkiaSnapshot(sk_sp< DisplayList > display_list, DlISize picture_size, std::function< void(const sk_sp< SkImage > &)> callback, SnapshotPixelFormat pixel_format) override
std::shared_ptr< impeller::Texture > MakeImpellerTextureImage(sk_sp< SkImage > image, SnapshotPixelFormat pixel_format) override
std::shared_ptr< impeller::Texture > MakeImpellerSnapshotSync(sk_sp< DisplayList > display_list, DlISize picture_size, SnapshotPixelFormat pixel_format) override
sk_sp< SkImage > ConvertToRasterImage(sk_sp< SkImage > image) override
void MakeImpellerSnapshot(sk_sp< DisplayList > display_list, DlISize picture_size, std::function< void(const std::shared_ptr< impeller::Texture > &)> callback, SnapshotPixelFormat pixel_format) override
sk_sp< SkImage > MakeSkiaTextureImage(sk_sp< SkImage > image, SnapshotPixelFormat pixel_format) override
SnapshotControllerImpeller(const SnapshotController::Delegate &delegate)
void CacheRuntimeStage(const std::shared_ptr< impeller::RuntimeStage > &runtime_stage) override
FlutterVulkanImage * image
FlutterDesktopBinaryReply callback
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27
it will be possible to load the file into Perfetto s trace viewer use test Running tests that layout and measure text will not yield consistent results across various platforms Enabling this option will make font resolution default to the Ahem test font on all 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