xref: /aosp_15_r20/external/skia/tools/flags/CommonFlagsGraphite.h (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
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  *     --useTintIR
20  *     --useWGPUTextureView
21  */
22 void SetTestOptions(skiatest::graphite::TestOptions*);
23 
24 }  // namespace CommonFlags
25