Flutter Impeller
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 
7 namespace 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 
39  const Playground::SinglePassCallback& callback) {
40  return false;
41 }
42 
43 std::shared_ptr<Texture> GoldenPlaygroundTest::CreateTextureForFixture(
44  const char* fixture_name,
45  bool enable_mipmapping) const {
46  return nullptr;
47 }
48 
49 sk_sp<flutter::DlImage> GoldenPlaygroundTest::CreateDlImageForFixture(
50  const char* fixture_name,
51  bool enable_mipmapping) const {
52  return nullptr;
53 }
54 
55 absl::StatusOr<RuntimeStage::Map> GoldenPlaygroundTest::OpenAssetAsRuntimeStage(
56  const char* asset_name) const {
57  return absl::UnimplementedError("Not implemented.");
58 }
59 
60 std::shared_ptr<Context> GoldenPlaygroundTest::GetContext() const {
61  return nullptr;
62 }
63 
64 std::shared_ptr<Context> GoldenPlaygroundTest::MakeContext() const {
65  return nullptr;
66 }
67 
69  return Point();
70 }
71 
73  return Scalar();
74 }
75 
77  return ISize();
78 }
79 
81 
83  const std::shared_ptr<Capabilities>& capabilities) {
84  return fml::Status(
85  fml::StatusCode::kUnimplemented,
86  "GoldenPlaygroundTest-Stub doesn't support SetCapabilities.");
87 }
88 
89 std::unique_ptr<testing::Screenshot> GoldenPlaygroundTest::MakeScreenshot(
90  const sk_sp<flutter::DisplayList>& list) {
91  return nullptr;
92 }
93 
95  FML_UNREACHABLE();
96 }
97 
98 } // 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::shared_ptr< Context > MakeContext() const
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:39
float Scalar
Definition: scalar.h:19
TPoint< Scalar > Point
Definition: point.h:426
PlaygroundBackend
Definition: playground.h:27
ISize64 ISize
Definition: size.h:162