| 1 |
/* |
| 2 |
* Copyright 2024 Google LLC |
| 3 |
* |
| 4 |
* Use of this source code is governed by a BSD-style license that can be |
| 5 |
* found in the LICENSE file. |
| 6 |
*/ |
| 7 |
#pragma once |
| 8 |
|
| 9 |
#include "tools/flags/CommandLineFlags.h" |
| 10 |
|
| 11 |
namespace skiatest::graphite { |
| 12 |
struct TestOptions; |
| 13 |
} |
| 14 |
|
| 15 |
namespace CommonFlags { |
| 16 |
/** |
| 17 |
* Helper to set TestOptions from common GPU flags, including: |
| 18 |
* --neverYieldToWebGPU |
| 19 |
* --useWGPUTextureView |
| 20 |
*/ |
| 21 |
void SetTestOptions(skiatest::graphite::TestOptions*); |
| 22 |
|
| 23 |
} // namespace CommonFlags |