Flutter Engine
The Flutter Engine
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
10#include "flutter/shell/common/snapshot_controller.h"
12
13namespace flutter {
14
16 public:
18 : SnapshotController(delegate) {}
19
21 sk_sp<DisplayList> display_list,
22 SkISize picture_size,
23 std::function<void(const sk_sp<DlImage>&)> callback) override;
24
26 SkISize size) override;
27
29
31 const std::shared_ptr<impeller::RuntimeStage>& runtime_stage) override;
32
33 private:
34 sk_sp<DlImage> DoMakeRasterSnapshot(
36 std::function<void(SkCanvas*)> draw_callback);
37
38 FML_DISALLOW_COPY_AND_ASSIGN(SnapshotControllerSkia);
39};
40
41} // namespace flutter
42
43#endif // !SLIMPELLER
44
45#endif // FLUTTER_SHELL_COMMON_SNAPSHOT_CONTROLLER_SKIA_H_
SnapshotControllerSkia(const SnapshotController::Delegate &delegate)
void CacheRuntimeStage(const std::shared_ptr< impeller::RuntimeStage > &runtime_stage) override
void MakeRasterSnapshot(sk_sp< DisplayList > display_list, SkISize picture_size, std::function< void(const sk_sp< DlImage > &)> callback) override
virtual sk_sp< SkImage > ConvertToRasterImage(sk_sp< SkImage > image) override
sk_sp< DlImage > MakeRasterSnapshotSync(sk_sp< DisplayList > display_list, SkISize size) override
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
Dart_NativeFunction function
Definition: fuchsia.cc:51
sk_sp< const SkImage > image
Definition: SkRecords.h:269
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
Definition: SkSize.h:16