Flutter Impeller
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 #pragma once
6 
7 #include <deque>
8 #include <memory>
9 #include <optional>
10 
11 #include "flutter/fml/macros.h"
13 #include "impeller/aiks/image.h"
14 #include "impeller/entity/entity.h"
16 
17 namespace impeller {
18 
19 struct Picture {
20  std::unique_ptr<EntityPass> pass;
21 
22  std::optional<Snapshot> Snapshot(AiksContext& context);
23 
24  std::shared_ptr<Image> ToImage(AiksContext& context, ISize size) const;
25 
26  private:
27  std::shared_ptr<Texture> RenderToTexture(
28  AiksContext& context,
29  ISize size,
30  std::optional<const Matrix> translate = std::nullopt) const;
31 };
32 
33 } // namespace impeller
impeller::Picture::pass
std::unique_ptr< EntityPass > pass
Definition: picture.h:20
impeller::AiksContext
Definition: aiks_context.h:20
entity.h
aiks_context.h
impeller::Picture
Definition: picture.h:19
impeller::TSize< int64_t >
impeller::Picture::Snapshot
std::optional< Snapshot > Snapshot(AiksContext &context)
Definition: picture.cc:17
entity_pass.h
impeller::Picture::ToImage
std::shared_ptr< Image > ToImage(AiksContext &context, ISize size) const
Definition: picture.cc:31
image.h
impeller
Definition: aiks_context.cc:10