Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
impeller
display_list
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
#ifndef FLUTTER_IMPELLER_DISPLAY_LIST_DL_PLAYGROUND_H_
6
#define FLUTTER_IMPELLER_DISPLAY_LIST_DL_PLAYGROUND_H_
7
8
#include "flutter/display_list/display_list.h"
9
#include "flutter/display_list/dl_builder.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
DlPlayground
(
const
DlPlayground
&) =
delete
;
36
37
DlPlayground
& operator=(
const
DlPlayground
&) =
delete
;
38
};
39
40
}
// namespace impeller
41
42
#endif
// FLUTTER_IMPELLER_DISPLAY_LIST_DL_PLAYGROUND_H_
SkFont.h
SkFont
Definition
SkFont.h:35
flutter::DisplayListBuilder
Definition
dl_builder.h:30
impeller::DlPlayground
Definition
dl_playground.h:15
impeller::DlPlayground::~DlPlayground
~DlPlayground()
impeller::DlPlayground::OpenPlaygroundHere
bool OpenPlaygroundHere(flutter::DisplayListBuilder &builder)
Definition
dl_playground.cc:25
impeller::DlPlayground::DlPlayground
DlPlayground()
impeller::DlPlayground::CreateTestFontOfSize
SkFont CreateTestFontOfSize(SkScalar scalar)
Definition
dl_playground.cc:73
impeller::DlPlayground::CreateTestFont
SkFont CreateTestFont()
Definition
dl_playground.cc:81
impeller::DlPlayground::DisplayListPlaygroundCallback
std::function< sk_sp< flutter::DisplayList >()> DisplayListPlaygroundCallback
Definition
dl_playground.h:18
impeller::PlaygroundTest
Definition
playground_test.h:24
sk_sp
Definition
SkRefCnt.h:220
SkScalar
float SkScalar
Definition
extension.cpp:12
callback
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
Definition
fl_key_channel_responder.cc:120
impeller
Definition
texture.h:18
playground_test.h
Generated on Fri Apr 26 2024 06:14:09 for Flutter Engine by
1.9.8