| 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 #include "impeller/aiks/picture.h"
8
9 namespace impeller {
10
11 GoldenPlaygroundTest::GoldenPlaygroundTest() = default;
12
13 GoldenPlaygroundTest::~GoldenPlaygroundTest() = default;
14
15 void GoldenPlaygroundTest::SetTypographerContext(
16 std::shared_ptr<TypographerContext> typographer_context) {
17 typographer_context_ = std::move(typographer_context);
18 };
19
20 void GoldenPlaygroundTest::TearDown() {}
21
22 void GoldenPlaygroundTest::SetUp() {
23 GTEST_SKIP_("GoldenPlaygroundTest doesn't support this backend type.");
24 }
25
26 PlaygroundBackend GoldenPlaygroundTest::GetBackend() const {
27 return GetParam();
28 }
29
30 bool GoldenPlaygroundTest::OpenPlaygroundHere(Picture picture) {
31 return false;
32 }
33
34 bool GoldenPlaygroundTest::OpenPlaygroundHere(
35 AiksPlaygroundCallback
36 callback) { // NOLINT(performance-unnecessary-value-param)
37 return false;
38 }
39
40 bool GoldenPlaygroundTest::OpenPlaygroundHere(
41 const AiksDlPlaygroundCallback& callback) {
42 return false;
43 }
44
45 bool GoldenPlaygroundTest::OpenPlaygroundHere(
46 const sk_sp<flutter::DisplayList>& list) {
47 return false;
48 }
49
50 std::shared_ptr<Texture> GoldenPlaygroundTest::CreateTextureForFixture(
51 const char* fixture_name,
52 bool enable_mipmapping) const {
53 return nullptr;
54 }
55
56 sk_sp<flutter::DlImage> GoldenPlaygroundTest::CreateDlImageForFixture(
57 const char* fixture_name,
58 bool enable_mipmapping) const {
59 return nullptr;
60 }
61
62 RuntimeStage::Map GoldenPlaygroundTest::OpenAssetAsRuntimeStage(
63 const char* asset_name) const {
64 return {};
65 }
66
67 std::shared_ptr<Context> GoldenPlaygroundTest::GetContext() const {
68 return nullptr;
69 }
70
71 Point GoldenPlaygroundTest::GetContentScale() const {
72 return Point();
73 }
74
75 Scalar GoldenPlaygroundTest::GetSecondsElapsed() const {
76 return Scalar();
77 }
78
79 ISize GoldenPlaygroundTest::GetWindowSize() const {
80 return ISize();
81 }
82
83 void GoldenPlaygroundTest::SetWindowSize(ISize size) {}
84
85 fml::Status GoldenPlaygroundTest::SetCapabilities(
86 const std::shared_ptr<Capabilities>& capabilities) {
87 return fml::Status(
88 fml::StatusCode::kUnimplemented,
89 "GoldenPlaygroundTest-Stub doesn't support SetCapabilities.");
90 }
91
92 } // namespace impeller
impeller::ISize
ISize64 ISize
Definition: size.h:140
impeller::GoldenPlaygroundTest::GetContentScale
Point GetContentScale() const
Definition: golden_playground_test_mac.cc:319
impeller::GoldenPlaygroundTest::SetCapabilities
fml::Status SetCapabilities(const std::shared_ptr< Capabilities > &capabilities)
Definition: golden_playground_test_mac.cc:335
impeller::Scalar
float Scalar
Definition: scalar.h:18
impeller::PlaygroundBackend
PlaygroundBackend
Definition: playground.h:27
impeller::GoldenPlaygroundTest::OpenPlaygroundHere
bool OpenPlaygroundHere(Picture picture)
Definition: golden_playground_test_mac.cc:205
picture.h
impeller::GoldenPlaygroundTest::GetContext
std::shared_ptr< Context > GetContext() const
Definition: golden_playground_test_mac.cc:296
impeller::GoldenPlaygroundTest::~GoldenPlaygroundTest
~GoldenPlaygroundTest() override
impeller::GoldenPlaygroundTest::SetTypographerContext
void SetTypographerContext(std::shared_ptr< TypographerContext > typographer_context)
Definition: golden_playground_test_mac.cc:125
impeller::TSize
Definition: size.h:19
impeller::GoldenPlaygroundTest::GoldenPlaygroundTest
GoldenPlaygroundTest()
Definition: golden_playground_test_mac.cc:119
impeller::Point
TPoint< Scalar > Point
Definition: point.h:322
impeller::GoldenPlaygroundTest::GetBackend
PlaygroundBackend GetBackend() const
Definition: golden_playground_test_mac.cc:201
impeller::GoldenPlaygroundTest::SetWindowSize
void SetWindowSize(ISize size)
Definition: golden_playground_test_stub.cc:83
impeller::GoldenPlaygroundTest::SetUp
void SetUp()
Definition: golden_playground_test_mac.cc:144
impeller::GoldenPlaygroundTest::CreateTextureForFixture
std::shared_ptr< Texture > CreateTextureForFixture(const char *fixture_name, bool enable_mipmapping=false) const
Definition: golden_playground_test_mac.cc:265
golden_playground_test.h
impeller::GoldenPlaygroundTest::CreateDlImageForFixture
sk_sp< flutter::DlImage > CreateDlImageForFixture(const char *fixture_name, bool enable_mipmapping=false) const
Definition: golden_playground_test_mac.cc:278
impeller::GoldenPlaygroundTest::GetSecondsElapsed
Scalar GetSecondsElapsed() const
Definition: golden_playground_test_mac.cc:323
impeller::GoldenPlaygroundTest::TearDown
void TearDown()
Definition: golden_playground_test_mac.cc:130
impeller
Definition: aiks_blend_unittests.cc:18
impeller::GoldenPlaygroundTest::GetWindowSize
ISize GetWindowSize() const
Definition: golden_playground_test_mac.cc:327
impeller::GoldenPlaygroundTest::OpenAssetAsRuntimeStage
RuntimeStage::Map OpenAssetAsRuntimeStage(const char *asset_name) const
Definition: golden_playground_test_mac.cc:286
impeller::RuntimeStage::Map
std::map< RuntimeStageBackend, std::shared_ptr< RuntimeStage > > Map
Definition: runtime_stage.h:24