| 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
5 #include "flutter/impeller/golden_tests/golden_playground_test.h"
6
7 namespace impeller {
8
9 GoldenPlaygroundTest::GoldenPlaygroundTest() = default;
10
11 GoldenPlaygroundTest::~GoldenPlaygroundTest() = default;
12
13 void GoldenPlaygroundTest::SetTypographerContext(
14 std::shared_ptr<TypographerContext> typographer_context) {
15 typographer_context_ = std::move(typographer_context);
16 };
17
18 void GoldenPlaygroundTest::TearDown() {}
19
20 void GoldenPlaygroundTest::SetUp() {
21 GTEST_SKIP() << "GoldenPlaygroundTest doesn't support this backend type.";
22 }
23
24 PlaygroundBackend GoldenPlaygroundTest::GetBackend() const {
25 return GetParam();
26 }
27
28 bool GoldenPlaygroundTest::OpenPlaygroundHere(
29 const AiksDlPlaygroundCallback& callback) {
30 return false;
31 }
32
33 bool GoldenPlaygroundTest::OpenPlaygroundHere(
34 const sk_sp<flutter::DisplayList>& list) {
35 return false;
36 }
37
38 std::shared_ptr<Texture> GoldenPlaygroundTest::CreateTextureForFixture(
39 const char* fixture_name,
40 bool enable_mipmapping) const {
41 return nullptr;
42 }
43
44 sk_sp<flutter::DlImage> GoldenPlaygroundTest::CreateDlImageForFixture(
45 const char* fixture_name,
46 bool enable_mipmapping) const {
47 return nullptr;
48 }
49
50 absl::StatusOr<RuntimeStage::Map> GoldenPlaygroundTest::OpenAssetAsRuntimeStage(
51 const char* asset_name) const {
52 return absl::UnimplementedError("Not implemented.");
53 }
54
55 std::shared_ptr<Context> GoldenPlaygroundTest::GetContext() const {
56 return nullptr;
57 }
58
59 Point GoldenPlaygroundTest::GetContentScale() const {
60 return Point();
61 }
62
63 Scalar GoldenPlaygroundTest::GetSecondsElapsed() const {
64 return Scalar();
65 }
66
67 ISize GoldenPlaygroundTest::GetWindowSize() const {
68 return ISize();
69 }
70
71 void GoldenPlaygroundTest::SetWindowSize(ISize size) {}
72
73 fml::Status GoldenPlaygroundTest::SetCapabilities(
74 const std::shared_ptr<Capabilities>& capabilities) {
75 return fml::Status(
76 fml::StatusCode::kUnimplemented,
77 "GoldenPlaygroundTest-Stub doesn't support SetCapabilities.");
78 }
79
80 std::unique_ptr<testing::Screenshot> GoldenPlaygroundTest::MakeScreenshot(
81 const sk_sp<flutter::DisplayList>& list) {
82 return nullptr;
83 }
84
85 } // namespace impeller
impeller::GoldenPlaygroundTest::GetBackend
PlaygroundBackend GetBackend() const
Definition: golden_playground_test_mac.cc:221
impeller::GoldenPlaygroundTest::GetWindowSize
ISize GetWindowSize() const
Definition: golden_playground_test_mac.cc:321
impeller::GoldenPlaygroundTest::CreateDlImageForFixture
sk_sp< flutter::DlImage > CreateDlImageForFixture(const char *fixture_name, bool enable_mipmapping=false) const
Definition: golden_playground_test_mac.cc:269
impeller::GoldenPlaygroundTest::GetContentScale
Point GetContentScale() const
Definition: golden_playground_test_mac.cc:313
impeller::GoldenPlaygroundTest::SetCapabilities
fml::Status SetCapabilities(const std::shared_ptr< Capabilities > &capabilities)
Definition: golden_playground_test_mac.cc:329
impeller::GoldenPlaygroundTest::SetTypographerContext
void SetTypographerContext(std::shared_ptr< TypographerContext > typographer_context)
Definition: golden_playground_test_mac.cc:128
impeller::GoldenPlaygroundTest::TearDown
void TearDown()
Definition: golden_playground_test_mac.cc:133
impeller::GoldenPlaygroundTest::MakeScreenshot
std::unique_ptr< testing::Screenshot > MakeScreenshot(const sk_sp< flutter::DisplayList > &list)
Definition: golden_playground_test_mac.cc:334
impeller::GoldenPlaygroundTest::GetSecondsElapsed
Scalar GetSecondsElapsed() const
Definition: golden_playground_test_mac.cc:317
impeller::GoldenPlaygroundTest::OpenPlaygroundHere
bool OpenPlaygroundHere(Picture picture)
impeller::GoldenPlaygroundTest::SetUp
void SetUp()
Definition: golden_playground_test_mac.cc:152
impeller::GoldenPlaygroundTest::~GoldenPlaygroundTest
~GoldenPlaygroundTest() override
impeller::GoldenPlaygroundTest::OpenAssetAsRuntimeStage
absl::StatusOr< RuntimeStage::Map > OpenAssetAsRuntimeStage(const char *asset_name) const
Definition: golden_playground_test_mac.cc:277
impeller::GoldenPlaygroundTest::GetContext
std::shared_ptr< Context > GetContext() const
Definition: golden_playground_test_mac.cc:287
impeller::GoldenPlaygroundTest::SetWindowSize
void SetWindowSize(ISize size)
Definition: golden_playground_test_stub.cc:71
impeller::GoldenPlaygroundTest::GoldenPlaygroundTest
GoldenPlaygroundTest()
Definition: golden_playground_test_mac.cc:122
impeller::GoldenPlaygroundTest::CreateTextureForFixture
std::shared_ptr< Texture > CreateTextureForFixture(const char *fixture_name, bool enable_mipmapping=false) const
Definition: golden_playground_test_mac.cc:256
golden_playground_test.h
impeller
Definition: allocation.cc:12
impeller::Scalar
float Scalar
Definition: scalar.h:19
impeller::Point
TPoint< Scalar > Point
Definition: point.h:425
impeller::PlaygroundBackend
PlaygroundBackend
Definition: playground.h:27
impeller::ISize
ISize64 ISize
Definition: size.h:162
impeller::TSize
Definition: size.h:25