Flutter Engine
 
Loading...
Searching...
No Matches
snapshot_controller_skia.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_SKIA_H_
6#define FLUTTER_SHELL_COMMON_SNAPSHOT_CONTROLLER_SKIA_H_
7
8#if !SLIMPELLER
9
11#include "third_party/skia/include/core/SkSurface.h"
12
13namespace flutter {
14
16 public:
18 : SnapshotController(delegate) {}
19
21 sk_sp<DisplayList> display_list,
22 DlISize picture_size,
23 std::function<void(const sk_sp<DlImage>&)> callback) override;
24
25 sk_sp<DlImage> MakeRasterSnapshotSync(sk_sp<DisplayList> display_list,
26 DlISize size) override;
27
28 virtual sk_sp<SkImage> ConvertToRasterImage(sk_sp<SkImage> image) override;
29
31 const std::shared_ptr<impeller::RuntimeStage>& runtime_stage) override;
32
33 bool MakeRenderContextCurrent() override;
34
35 private:
36 sk_sp<DlImage> DoMakeRasterSnapshot(
38 std::function<void(SkCanvas*)> draw_callback);
39
41};
42
43} // namespace flutter
44
45#endif // !SLIMPELLER
46
47#endif // FLUTTER_SHELL_COMMON_SNAPSHOT_CONTROLLER_SKIA_H_
SnapshotControllerSkia(const SnapshotController::Delegate &delegate)
void CacheRuntimeStage(const std::shared_ptr< impeller::RuntimeStage > &runtime_stage) override
virtual sk_sp< SkImage > ConvertToRasterImage(sk_sp< SkImage > image) override
void MakeRasterSnapshot(sk_sp< DisplayList > display_list, DlISize picture_size, std::function< void(const sk_sp< DlImage > &)> callback) override
sk_sp< DlImage > MakeRasterSnapshotSync(sk_sp< DisplayList > display_list, DlISize size) 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