Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
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
12#include "third_party/skia/include/core/SkFont.h"
13
14namespace impeller {
15
17 public:
19 std::function<sk_sp<flutter::DisplayList>()>;
20
22
24
26
27 bool OpenPlaygroundHere(sk_sp<flutter::DisplayList> list);
28
30
31 std::unique_ptr<testing::Screenshot> MakeScreenshot(
32 const sk_sp<flutter::DisplayList>& list);
33
34 SkFont CreateTestFontOfSize(Scalar scalar);
35
36 SkFont CreateTestFont();
37
38 sk_sp<flutter::DlImage> CreateDlImageForFixture(
39 const char* fixture_name,
40 bool enable_mipmapping = false) const;
41
42 private:
43 DlPlayground(const DlPlayground&) = delete;
44
45 DlPlayground& operator=(const DlPlayground&) = delete;
46};
47
49 protected:
50 bool IsGoldenTestSuite() const override { return true; }
51};
52
53} // namespace impeller
54
55#endif // FLUTTER_IMPELLER_DISPLAY_LIST_DL_PLAYGROUND_H_
SkFont CreateTestFontOfSize(Scalar scalar)
bool OpenPlaygroundHere(flutter::DisplayListBuilder &builder)
std::unique_ptr< testing::Screenshot > MakeScreenshot(const sk_sp< flutter::DisplayList > &list)
sk_sp< flutter::DlImage > CreateDlImageForFixture(const char *fixture_name, bool enable_mipmapping=false) const
std::function< sk_sp< flutter::DisplayList >()> DisplayListPlaygroundCallback
bool IsGoldenTestSuite() const override
This method is overridden on a test suite basis and establishes whether a given set of tests is inten...
FlutterDesktopBinaryReply callback
float Scalar
Definition scalar.h:19