| Flutter Impeller |

entity_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 "impeller/playground/playground_test.h"
8
9 #include "flutter/fml/macros.h"
10 #include "impeller/entity/contents/content_context.h"
11 #include "impeller/entity/entity.h"
12 #include "impeller/entity/entity_pass.h"
13 #include "impeller/typographer/typographer_context.h"
14
15 namespace impeller {
16
17 class EntityPlayground : public PlaygroundTest {
18 public:
19 using EntityPlaygroundCallback =
20 std::function<bool(ContentContext& context, RenderPass& pass)>;
21
22 EntityPlayground();
23
24 ~EntityPlayground();
25
26 void SetTypographerContext(
27 std::shared_ptr<TypographerContext> typographer_context);
28
29 bool OpenPlaygroundHere(Entity entity);
30
31 bool OpenPlaygroundHere(EntityPass& entity_pass);
32
33 bool OpenPlaygroundHere(EntityPlaygroundCallback callback);
34
35 private:
36 std::shared_ptr<TypographerContext> typographer_context_;
37
38 FML_DISALLOW_COPY_AND_ASSIGN(EntityPlayground);
39 };
40
41 } // namespace impeller
impeller::EntityPlayground::~EntityPlayground
~EntityPlayground()
entity.h
typographer_context.h
impeller::Entity
Definition: entity.h:21
impeller::EntityPass
Definition: entity_pass.h:26
entity_pass.h
impeller::RenderPass
Render passes encode render commands directed as one specific render target into an underlying comman...
Definition: render_pass.h:27
content_context.h
impeller::EntityPlayground
Definition: entity_playground.h:17
impeller::EntityPlayground::OpenPlaygroundHere
bool OpenPlaygroundHere(Entity entity)
Definition: entity_playground.cc:39
impeller::PlaygroundTest
Definition: playground_test.h:22
impeller::EntityPlayground::EntityPlayground
EntityPlayground()
Definition: entity_playground.cc:13
impeller::EntityPlayground::EntityPlaygroundCallback
std::function< bool(ContentContext &context, RenderPass &pass)> EntityPlaygroundCallback
Definition: entity_playground.h:20
impeller::EntityPlayground::SetTypographerContext
void SetTypographerContext(std::shared_ptr< TypographerContext > typographer_context)
Definition: entity_playground.cc:18
impeller
Definition: aiks_context.cc:10
playground_test.h
impeller::ContentContext
Definition: content_context.h:344