Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
golden_playground_test_stub.cc
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
6
7namespace impeller {
8
10
12
14 std::shared_ptr<TypographerContext> typographer_context) {
15 typographer_context_ = std::move(typographer_context);
16};
17
19
21 GTEST_SKIP() << "GoldenPlaygroundTest doesn't support this backend type.";
22}
23
25 return GetParam();
26}
27
29 const AiksDlPlaygroundCallback& callback) {
30 return false;
31}
32
34 const sk_sp<flutter::DisplayList>& list) {
35 return false;
36}
37
40 return false;
41}
42
44 const char* fixture_name,
45 bool enable_mipmapping) const {
46 return nullptr;
47}
48
50 const char* fixture_name,
51 bool enable_mipmapping) const {
52 return nullptr;
53}
54
55absl::StatusOr<RuntimeStage::Map> GoldenPlaygroundTest::OpenAssetAsRuntimeStage(
56 const char* asset_name) const {
57 return absl::UnimplementedError("Not implemented.");
58}
59
60std::shared_ptr<Context> GoldenPlaygroundTest::GetContext() const {
61 return nullptr;
62}
63
65 return Point();
66}
67
69 return Scalar();
70}
71
73 return ISize();
74}
75
77
79 const std::shared_ptr<Capabilities>& capabilities) {
80 return fml::Status(
82 "GoldenPlaygroundTest-Stub doesn't support SetCapabilities.");
83}
84
85std::unique_ptr<testing::Screenshot> GoldenPlaygroundTest::MakeScreenshot(
86 const sk_sp<flutter::DisplayList>& list) {
87 return nullptr;
88}
89
92}
93
94} // namespace impeller
RuntimeStageBackend GetRuntimeStageBackend() const
sk_sp< flutter::DlImage > CreateDlImageForFixture(const char *fixture_name, bool enable_mipmapping=false) const
fml::Status SetCapabilities(const std::shared_ptr< Capabilities > &capabilities)
void SetTypographerContext(std::shared_ptr< TypographerContext > typographer_context)
std::unique_ptr< testing::Screenshot > MakeScreenshot(const sk_sp< flutter::DisplayList > &list)
bool OpenPlaygroundHere(Picture picture)
absl::StatusOr< RuntimeStage::Map > OpenAssetAsRuntimeStage(const char *asset_name) const
std::shared_ptr< Context > GetContext() const
std::shared_ptr< Texture > CreateTextureForFixture(const char *fixture_name, bool enable_mipmapping=false) const
std::function< bool(RenderPass &pass)> SinglePassCallback
Definition playground.h:37
FlutterDesktopBinaryReply callback
#define FML_UNREACHABLE()
Definition logging.h:128
float Scalar
Definition scalar.h:19
TPoint< Scalar > Point
Definition point.h:426
PlaygroundBackend
Definition playground.h:26
ISize64 ISize
Definition size.h:162