Flutter Engine
 
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
39 const char* fixture_name,
40 bool enable_mipmapping) const {
41 return nullptr;
42}
43
45 const char* fixture_name,
46 bool enable_mipmapping) const {
47 return nullptr;
48}
49
51 const char* asset_name) const {
52 return {};
53}
54
55std::shared_ptr<Context> GoldenPlaygroundTest::GetContext() const {
56 return nullptr;
57}
58
60 return Point();
61}
62
64 return Scalar();
65}
66
68 return ISize();
69}
70
72
74 const std::shared_ptr<Capabilities>& capabilities) {
75 return fml::Status(
77 "GoldenPlaygroundTest-Stub doesn't support SetCapabilities.");
78}
79
80std::unique_ptr<testing::Screenshot> GoldenPlaygroundTest::MakeScreenshot(
81 const sk_sp<flutter::DisplayList>& list) {
82 return nullptr;
83}
84
85} // namespace impeller
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)
RuntimeStage::Map OpenAssetAsRuntimeStage(const char *asset_name) const
bool OpenPlaygroundHere(Picture picture)
std::shared_ptr< Context > GetContext() const
std::shared_ptr< Texture > CreateTextureForFixture(const char *fixture_name, bool enable_mipmapping=false) const
std::map< RuntimeStageBackend, std::shared_ptr< RuntimeStage > > Map
FlutterDesktopBinaryReply callback
float Scalar
Definition scalar.h:19
TPoint< Scalar > Point
Definition point.h:327
PlaygroundBackend
Definition playground.h:27
ISize64 ISize
Definition size.h:162