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