| Flutter Impeller |

switches.h
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 #ifndef FLUTTER_IMPELLER_PLAYGROUND_SWITCHES_H_
6 #define FLUTTER_IMPELLER_PLAYGROUND_SWITCHES_H_
7
8 #include <chrono>
9 #include <optional>
10
11 #include "flutter/fml/command_line.h"
12 #include "flutter/fml/macros.h"
13
14 namespace impeller {
15
16 struct PlaygroundSwitches {
17 bool enable_playground = false;
18 // If specified, the playgrounds will render for at least the duration
19 // specified in the timeout. If the timeout is zero, exactly one frame will be
20 // rendered in the playground.
21 std::optional<std::chrono::milliseconds> timeout;
22 bool enable_vulkan_validation = false;
23
24 PlaygroundSwitches();
25
26 explicit PlaygroundSwitches(const fml::CommandLine& args);
27 };
28
29 } // namespace impeller
30
31 #endif // FLUTTER_IMPELLER_PLAYGROUND_SWITCHES_H_
impeller::PlaygroundSwitches::timeout
std::optional< std::chrono::milliseconds > timeout
Definition: switches.h:21
impeller::PlaygroundSwitches
Definition: switches.h:16
impeller::PlaygroundSwitches::PlaygroundSwitches
PlaygroundSwitches()
impeller::PlaygroundSwitches::enable_vulkan_validation
bool enable_vulkan_validation
Definition: switches.h:22
impeller
Definition: aiks_context.cc:10
impeller::PlaygroundSwitches::enable_playground
bool enable_playground
Definition: switches.h:17