 |
Flutter Impeller
|
|
Go to the documentation of this file.
5 #include "flutter/fml/time/time_point.h"
20 GTEST_SKIP_(
"Playground doesn't support this backend type.");
25 GTEST_SKIP_(
"Skipping due to user action.");
45 std::string asset_name)
const {
46 return flutter::testing::OpenFixtureAsMapping(asset_name);
50 const char* asset_name)
const {
51 const std::shared_ptr<fml::Mapping> fixture =
52 flutter::testing::OpenFixtureAsMapping(asset_name);
53 if (!fixture || fixture->GetSize() == 0) {
61 std::stringstream stream;
62 stream <<
"Impeller Playground for '"
63 << flutter::testing::GetCurrentTestName() <<
"' ";
69 stream <<
" (Angle) ";
74 stream <<
" (SwiftShader) ";
78 stream <<
" (Press ESC to quit)";
83 bool PlaygroundTest::ShouldKeepRendering()
const {
static bool ShouldOpenNewPlaygrounds()
Scalar GetSecondsElapsed() const
Get the amount of time elapsed from the start of the playground's execution.
static Map DecodeRuntimeStages(const std::shared_ptr< fml::Mapping > &payload)
std::unique_ptr< fml::Mapping > OpenAssetAsMapping(std::string asset_name) const override
std::chrono::duration< float > SecondsF
RuntimeStage::Map OpenAssetAsRuntimeStage(const char *asset_name) const
const PlaygroundSwitches switches_
std::optional< std::chrono::milliseconds > timeout
std::string GetWindowTitle() const override
void ImpellerValidationErrorsSetFatal(bool fatal)
void SetupContext(PlaygroundBackend backend)
static bool SupportsBackend(PlaygroundBackend backend)
virtual ~PlaygroundTest()
PlaygroundBackend GetBackend() const
std::map< RuntimeStageBackend, std::shared_ptr< RuntimeStage > > Map