| Flutter Impeller |

aiks_playground.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_AIKS_PLAYGROUND_H_
6 #define FLUTTER_IMPELLER_AIKS_AIKS_PLAYGROUND_H_
7
8 #include "flutter/fml/macros.h"
9 #include "impeller/aiks/aiks_context.h"
10 #include "impeller/aiks/aiks_playground_inspector.h"
11 #include "impeller/aiks/picture.h"
12 #include "impeller/playground/playground_test.h"
13 #include "impeller/typographer/typographer_context.h"
14
15 namespace impeller {
16
17 class AiksPlayground : public PlaygroundTest {
18 public:
19 using AiksPlaygroundCallback =
20 std::function<std::optional<Picture>(AiksContext& renderer)>;
21
22 AiksPlayground();
23
24 ~AiksPlayground();
25
26 void TearDown() override;
27
28 void SetTypographerContext(
29 std::shared_ptr<TypographerContext> typographer_context);
30
31 bool OpenPlaygroundHere(Picture picture);
32
33 bool OpenPlaygroundHere(AiksPlaygroundCallback callback);
34
35 private:
36 std::shared_ptr<TypographerContext> typographer_context_;
37 AiksInspector inspector_;
38
39 AiksPlayground(const AiksPlayground&) = delete;
40
41 AiksPlayground& operator=(const AiksPlayground&) = delete;
42 };
43
44 } // namespace impeller
45
46 #endif // FLUTTER_IMPELLER_AIKS_AIKS_PLAYGROUND_H_
impeller::AiksPlayground
Definition: aiks_playground.h:17
aiks_playground_inspector.h
impeller::AiksContext
Definition: aiks_context.h:20
aiks_context.h
typographer_context.h
impeller::AiksPlayground::AiksPlayground
AiksPlayground()
Definition: aiks_playground.cc:16
picture.h
impeller::AiksPlayground::SetTypographerContext
void SetTypographerContext(std::shared_ptr< TypographerContext > typographer_context)
Definition: aiks_playground.cc:21
impeller::AiksInspector
Definition: aiks_playground_inspector.h:16
impeller::AiksPlayground::TearDown
void TearDown() override
Definition: aiks_playground.cc:26
impeller::Picture
Definition: picture.h:20
impeller::AiksPlayground::AiksPlaygroundCallback
std::function< std::optional< Picture >(AiksContext &renderer)> AiksPlaygroundCallback
Definition: aiks_playground.h:20
impeller::AiksPlayground::OpenPlaygroundHere
bool OpenPlaygroundHere(Picture picture)
Definition: aiks_playground.cc:31
impeller::PlaygroundTest
Definition: playground_test.h:23
impeller::AiksPlayground::~AiksPlayground
~AiksPlayground()
impeller
Definition: aiks_context.cc:10
playground_test.h