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 #ifndef FLUTTER_IMPELLER_AIKS_PICTURE_H_
6 #define FLUTTER_IMPELLER_AIKS_PICTURE_H_
7 
8 #include <memory>
9 #include <optional>
10 
12 #include "impeller/aiks/image.h"
14 
15 namespace impeller {
16 
17 struct Picture {
18  std::unique_ptr<EntityPass> pass;
19 
20  std::optional<Snapshot> Snapshot(AiksContext& context);
21 
22  std::shared_ptr<Image> ToImage(AiksContext& context, ISize size) const;
23 
24  private:
25  std::shared_ptr<Texture> RenderToTexture(
26  AiksContext& context,
27  ISize size,
28  std::optional<const Matrix> translate = std::nullopt) const;
29 };
30 
31 } // namespace impeller
32 
33 #endif // FLUTTER_IMPELLER_AIKS_PICTURE_H_
impeller::Picture::pass
std::unique_ptr< EntityPass > pass
Definition: picture.h:18
impeller::AiksContext
Definition: aiks_context.h:19
aiks_context.h
impeller::Picture
Definition: picture.h:17
impeller::TSize
Definition: size.h:19
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_blend_unittests.cc:18