Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
picture.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_IMPELLER_AIKS_PICTURE_H_
6#define FLUTTER_IMPELLER_AIKS_PICTURE_H_
7
8#include <deque>
9#include <memory>
10#include <optional>
11
12#include "flutter/fml/macros.h"
14#include "impeller/aiks/image.h"
17
18namespace impeller {
19
20struct Picture {
21 std::unique_ptr<EntityPass> pass;
22
23 std::optional<Snapshot> Snapshot(AiksContext& context);
24
25 std::shared_ptr<Image> ToImage(AiksContext& context, ISize size) const;
26
27 private:
28 std::shared_ptr<Texture> RenderToTexture(
29 AiksContext& context,
30 ISize size,
31 std::optional<const Matrix> translate = std::nullopt) const;
32};
33
34} // namespace impeller
35
36#endif // FLUTTER_IMPELLER_AIKS_PICTURE_H_
std::shared_ptr< Image > ToImage(AiksContext &context, ISize size) const
Definition picture.cc:31
std::unique_ptr< EntityPass > pass
Definition picture.h:21
Represents a texture and its intended draw transform/sampler configuration.
Definition snapshot.h:24