forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgpu_finch_features.h
127 lines (84 loc) · 3.97 KB
/
gpu_finch_features.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file defines all the public base::FeatureList features for the gpu
// module.
#ifndef GPU_CONFIG_GPU_FINCH_FEATURES_H_
#define GPU_CONFIG_GPU_FINCH_FEATURES_H_
#include "base/feature_list.h"
#include "build/build_config.h"
#include "gpu/gpu_export.h"
namespace features {
GPU_EXPORT BASE_DECLARE_FEATURE(kUseGles2ForOopR);
// All features in alphabetical order. The features should be documented
// alongside the definition of their values in the .cc file.
#if BUILDFLAG(IS_ANDROID)
GPU_EXPORT BASE_DECLARE_FEATURE(kAndroidSurfaceControl);
GPU_EXPORT BASE_DECLARE_FEATURE(kWebViewSurfaceControl);
GPU_EXPORT BASE_DECLARE_FEATURE(kAImageReader);
GPU_EXPORT BASE_DECLARE_FEATURE(kWebViewVulkan);
GPU_EXPORT BASE_DECLARE_FEATURE(kLimitAImageReaderMaxSizeToOne);
GPU_EXPORT BASE_DECLARE_FEATURE(kWebViewThreadSafeMediaDefault);
GPU_EXPORT BASE_DECLARE_FEATURE(kIncreaseBufferCountForHighFrameRate);
#endif // BUILDFLAG(IS_ANDROID)
GPU_EXPORT BASE_DECLARE_FEATURE(kAggressiveSkiaGpuResourcePurge);
GPU_EXPORT BASE_DECLARE_FEATURE(kDefaultEnableGpuRasterization);
GPU_EXPORT BASE_DECLARE_FEATURE(kCanvasOopRasterization);
#if BUILDFLAG(IS_OZONE)
GPU_EXPORT BASE_DECLARE_FEATURE(kOzoneFrontBufferUsage);
#endif
GPU_EXPORT BASE_DECLARE_FEATURE(kEnableMSAAOnNewIntelGPUs);
GPU_EXPORT BASE_DECLARE_FEATURE(kDefaultEnableANGLEValidation);
GPU_EXPORT BASE_DECLARE_FEATURE(kCanvasContextLostInBackground);
#if BUILDFLAG(IS_WIN)
GPU_EXPORT BASE_DECLARE_FEATURE(kGpuProcessHighPriorityWin);
GPU_EXPORT BASE_DECLARE_FEATURE(kDisableVideoOverlayIfMoving);
GPU_EXPORT BASE_DECLARE_FEATURE(kNoUndamagedOverlayPromotion);
GPU_EXPORT BASE_DECLARE_FEATURE(kDCompPresenter);
#endif
#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_IOS)
GPU_EXPORT BASE_DECLARE_FEATURE(kAdjustGpuProcessPriority);
#endif
GPU_EXPORT BASE_DECLARE_FEATURE(kSharedImageManager);
GPU_EXPORT BASE_DECLARE_FEATURE(kVaapiJpegImageDecodeAcceleration);
GPU_EXPORT BASE_DECLARE_FEATURE(kVaapiWebPImageDecodeAcceleration);
GPU_EXPORT BASE_DECLARE_FEATURE(kVulkan);
GPU_EXPORT BASE_DECLARE_FEATURE(kSkiaGraphite);
#if BUILDFLAG(IS_WIN)
GPU_EXPORT BASE_DECLARE_FEATURE(kSkiaGraphiteDawnUseD3D12);
#endif
GPU_EXPORT BASE_DECLARE_FEATURE(kEnableGrShaderCacheForVulkan);
GPU_EXPORT BASE_DECLARE_FEATURE(kEnableWatchdogReportOnlyModeOnGpuInit);
GPU_EXPORT BASE_DECLARE_FEATURE(kEnableVkPipelineCache);
GPU_EXPORT BASE_DECLARE_FEATURE(kReduceOpsTaskSplitting);
GPU_EXPORT BASE_DECLARE_FEATURE(kNoDiscardableMemoryForGpuDecodePath);
GPU_EXPORT BASE_DECLARE_FEATURE(kEnableDrDc);
GPU_EXPORT BASE_DECLARE_FEATURE(kForceGpuMainThreadToNormalPriorityDrDc);
GPU_EXPORT BASE_DECLARE_FEATURE(kForceRestartGpuKillSwitch);
GPU_EXPORT BASE_DECLARE_FEATURE(kUseGpuSchedulerDfs);
GPU_EXPORT BASE_DECLARE_FEATURE(kUseClientGmbInterface);
#if BUILDFLAG(IS_ANDROID)
// This flag is use additionally with kEnableDrDc to enable the feature for
// vulkan enabled android devices.
GPU_EXPORT BASE_DECLARE_FEATURE(kEnableDrDcVulkan);
#endif // BUILDFLAG(IS_ANDROID)
GPU_EXPORT BASE_DECLARE_FEATURE(kWebGPUService);
GPU_EXPORT BASE_DECLARE_FEATURE(kWebGPUBlobCache);
GPU_EXPORT BASE_DECLARE_FEATURE(kIncreasedCmdBufferParseSlice);
GPU_EXPORT BASE_DECLARE_FEATURE(kPassthroughYuvRgbConversion);
GPU_EXPORT BASE_DECLARE_FEATURE(kGpuCleanupInBackground);
GPU_EXPORT bool UseGles2ForOopR();
GPU_EXPORT bool IsUsingVulkan();
GPU_EXPORT bool IsDrDcEnabled();
GPU_EXPORT bool IsGpuMainThreadForcedToNormalPriorityDrDc();
GPU_EXPORT bool NeedThreadSafeAndroidMedia();
GPU_EXPORT bool IsANGLEValidationEnabled();
#if BUILDFLAG(IS_ANDROID)
GPU_EXPORT bool IsAImageReaderEnabled();
GPU_EXPORT bool IsAndroidSurfaceControlEnabled();
GPU_EXPORT bool LimitAImageReaderMaxSizeToOne();
GPU_EXPORT bool IncreaseBufferCountForHighFrameRate();
GPU_EXPORT bool IncreaseBufferCountForWebViewOverlays();
#endif
} // namespace features
#endif // GPU_CONFIG_GPU_FINCH_FEATURES_H_