xref: /aosp_15_r20/external/skia/tools/flags/CommonFlagsGanesh.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 struct GrContextOptions;
12 
13 namespace CommonFlags {
14 /**
15  *  Helper to set GrContextOptions from common GPU flags, including
16  *     --gpuThreads
17  *     --cachePathMasks
18  *     --allPathsVolatile
19  *     --(no)gs
20  *     --(no)ts
21  *     --pr
22  *     --internalSamples
23  *     --disableDriverCorrectnessWorkarounds
24  *     --reduceOpsTaskSplitting
25  *     --dontReduceOpsTaskSplitting
26  *     --allowMSAAOnNewIntel
27  */
28 void SetCtxOptions(GrContextOptions*);
29 
30 }  // namespace CommonFlags
31