Flutter Engine
The Flutter Engine
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
8#include "flutter/shell/common/snapshot_controller.h"
10
11namespace flutter {
12
14 public:
16 const SnapshotController::Delegate& delegate)
17 : SnapshotController(delegate) {}
18
20 sk_sp<DisplayList> display_list,
21 SkISize picture_size,
22 std::function<void(const sk_sp<DlImage>&)> callback) override;
23
25 SkISize picture_size) override;
26
28
30 const std::shared_ptr<impeller::RuntimeStage>& runtime_stage) override;
31
32 private:
33 FML_DISALLOW_COPY_AND_ASSIGN(SnapshotControllerImpeller);
34};
35
36} // namespace flutter
37
38#endif // FLUTTER_SHELL_COMMON_SNAPSHOT_CONTROLLER_IMPELLER_H_
sk_sp< SkImage > ConvertToRasterImage(sk_sp< SkImage > image) override
SnapshotControllerImpeller(const SnapshotController::Delegate &delegate)
void CacheRuntimeStage(const std::shared_ptr< impeller::RuntimeStage > &runtime_stage) override
sk_sp< DlImage > MakeRasterSnapshotSync(sk_sp< DisplayList > display_list, SkISize picture_size) override
void MakeRasterSnapshot(sk_sp< DisplayList > display_list, SkISize picture_size, std::function< void(const sk_sp< DlImage > &)> callback) override
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
Dart_NativeFunction function
Definition: fuchsia.cc:51
sk_sp< const SkImage > image
Definition: SkRecords.h:269
Definition: SkSize.h:16