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