5 #include "flutter/fml/time/time_point.h"
19 bool DoesSupportWideGamutTests() {
30 GTEST_SKIP_(
"Playground doesn't support this backend type.");
35 GTEST_SKIP_(
"Skipping due to user action.");
42 std::string test_name = flutter::testing::GetCurrentTestName();
45 test_name.find(
"WideGamut/") != std::string::npos;
48 !DoesSupportWideGamutTests())) {
49 GTEST_SKIP_(
"This backend doesn't yet support wide gamut.");
67 std::string asset_name)
const {
68 return flutter::testing::OpenFixtureAsMapping(asset_name);
72 const char* asset_name)
const {
73 const std::shared_ptr<fml::Mapping> fixture =
74 flutter::testing::OpenFixtureAsMapping(asset_name);
75 if (!fixture || fixture->GetSize() == 0) {
83 std::stringstream stream;
84 stream <<
"Impeller Playground for '"
85 << flutter::testing::GetCurrentTestName() <<
"' ";
91 stream <<
" (Angle) ";
96 stream <<
" (SwiftShader) ";
100 stream <<
" (Press ESC to quit)";
105 bool PlaygroundTest::ShouldKeepRendering()
const {