blob: 1e28a37b195c9d7b767f4c88775d3e52e182f094 [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_IMPELLER_PLAYGROUND_SWITCHES_H_
#define FLUTTER_IMPELLER_PLAYGROUND_SWITCHES_H_
#include <chrono>
#include <optional>
#include "flutter/fml/command_line.h"
#include "flutter/fml/macros.h"
namespace impeller {
struct PlaygroundSwitches {
bool enable_playground = false;
// If specified, the playgrounds will render for at least the duration
// specified in the timeout. If the timeout is zero, exactly one frame will be
// rendered in the playground.
std::optional<std::chrono::milliseconds> timeout;
bool enable_vulkan_validation = false;
PlaygroundSwitches();
explicit PlaygroundSwitches(const fml::CommandLine& args);
};
} // namespace impeller
#endif // FLUTTER_IMPELLER_PLAYGROUND_SWITCHES_H_