#include <playground_test.h>
Definition at line 21 of file playground_test.h.
◆ PlaygroundTest()
impeller::PlaygroundTest::PlaygroundTest |
( |
| ) |
|
Definition at line 13 of file playground_test.cc.
Playground(PlaygroundSwitches switches)
const fml::CommandLine & GetArgsForProcess()
◆ ~PlaygroundTest()
impeller::PlaygroundTest::~PlaygroundTest |
( |
| ) |
|
|
virtualdefault |
◆ GetBackend()
◆ GetWindowTitle()
std::string impeller::PlaygroundTest::GetWindowTitle |
( |
| ) |
const |
|
overridevirtual |
Implements impeller::Playground.
Definition at line 82 of file playground_test.cc.
82 {
84 stream <<
"Impeller Playground for '"
88 break;
92 }
93 break;
96 stream <<
" (SwiftShader) ";
97 }
98 break;
99 }
100 stream <<
" (Press ESC to quit)";
102}
PlaygroundBackend GetBackend() const
const PlaygroundSwitches switches_
std::string GetCurrentTestName()
Gets the name of the currently running test. This is useful in generating logs or assets based on tes...
◆ OpenAssetAsMapping()
std::unique_ptr< fml::Mapping > impeller::PlaygroundTest::OpenAssetAsMapping |
( |
std::string |
asset_name | ) |
const |
|
overridevirtual |
Implements impeller::Playground.
Definition at line 66 of file playground_test.cc.
67 {
69}
std::unique_ptr< fml::Mapping > OpenFixtureAsMapping(const std::string &fixture_name)
Opens a fixture of the given file name and returns a mapping to its contents.
◆ OpenAssetAsRuntimeStage()
RuntimeStage::Map impeller::PlaygroundTest::OpenAssetAsRuntimeStage |
( |
const char * |
asset_name | ) |
const |
Definition at line 71 of file playground_test.cc.
72 {
73 const std::shared_ptr<fml::Mapping> fixture =
75 if (!fixture || fixture->GetSize() == 0) {
76 return {};
77 }
79}
static Map DecodeRuntimeStages(const std::shared_ptr< fml::Mapping > &payload)
◆ SetUp()
void impeller::PlaygroundTest::SetUp |
( |
| ) |
|
|
override |
Definition at line 28 of file playground_test.cc.
28 {
30 GTEST_SKIP_("Playground doesn't support this backend type.");
31 return;
32 }
33
35 GTEST_SKIP_("Skipping due to user action.");
36 return;
37 }
38
40
41
45 test_name.find("WideGamut/") != std::string::npos;
46
48 !DoesSupportWideGamutTests())) {
49 GTEST_SKIP_("This backend doesn't yet support wide gamut.");
50 return;
51 }
52
55}
static bool ShouldOpenNewPlaygrounds()
void SetupContext(PlaygroundBackend backend, const PlaygroundSwitches &switches)
static bool SupportsBackend(PlaygroundBackend backend)
void ImpellerValidationErrorsSetFatal(bool fatal)
◆ TearDown()
void impeller::PlaygroundTest::TearDown |
( |
| ) |
|
|
override |
The documentation for this class was generated from the following files: