| Flutter Impeller |

dl_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/display_list/display_list.h"
8 #include "flutter/display_list/dl_builder.h"
9 #include "flutter/fml/macros.h"
10 #include "impeller/playground/playground_test.h"
11 #include "third_party/skia/include/core/SkFont.h"
12
13 namespace impeller {
14
15 class DlPlayground : public PlaygroundTest {
16 public:
17 using DisplayListPlaygroundCallback =
18 std::function<sk_sp<flutter::DisplayList>()>;
19
20 DlPlayground();
21
22 ~DlPlayground();
23
24 bool OpenPlaygroundHere(flutter::DisplayListBuilder& builder);
25
26 bool OpenPlaygroundHere(sk_sp<flutter::DisplayList> list);
27
28 bool OpenPlaygroundHere(DisplayListPlaygroundCallback callback);
29
30 SkFont CreateTestFontOfSize(SkScalar scalar);
31
32 SkFont CreateTestFont();
33
34 private:
35 FML_DISALLOW_COPY_AND_ASSIGN(DlPlayground);
36 };
37
38 } // namespace impeller
impeller::DlPlayground::DlPlayground
DlPlayground()
impeller::DlPlayground::OpenPlaygroundHere
bool OpenPlaygroundHere(flutter::DisplayListBuilder &builder)
Definition: dl_playground.cc:20
impeller::DlPlayground::DisplayListPlaygroundCallback
std::function< sk_sp< flutter::DisplayList >()> DisplayListPlaygroundCallback
Definition: dl_playground.h:18
impeller::DlPlayground::~DlPlayground
~DlPlayground()
impeller::DlPlayground::CreateTestFontOfSize
SkFont CreateTestFontOfSize(SkScalar scalar)
Definition: dl_playground.cc:70
impeller::PlaygroundTest
Definition: playground_test.h:22
impeller
Definition: aiks_context.cc:10
playground_test.h
impeller::DlPlayground::CreateTestFont
SkFont CreateTestFont()
Definition: dl_playground.cc:77
impeller::DlPlayground
Definition: dl_playground.h:15