1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // This file defines all the public base::FeatureList features for the gpu
6 // module.
7 
8 #ifndef GPU_CONFIG_GPU_FEATURES_H_
9 #define GPU_CONFIG_GPU_FEATURES_H_
10 
11 #include "base/feature_list.h"
12 #include "build/build_config.h"
13 #include "gpu/gpu_export.h"
14 
15 namespace features {
16 
17 // All features in alphabetical order. The features should be documented
18 // alongside the definition of their values in the .cc file.
19 #if defined(OS_ANDROID)
20 GPU_EXPORT extern const base::Feature kDisableSurfaceControlForWebview;
21 #endif  // defined(OS_ANDROID)
22 
23 GPU_EXPORT extern const base::Feature kDefaultEnableGpuRasterization;
24 
25 GPU_EXPORT extern const base::Feature kDefaultEnableOopRasterization;
26 
27 GPU_EXPORT extern const base::Feature kDirectCompositionUnderlays;
28 
29 #if defined(OS_WIN)
30 GPU_EXPORT extern const base::Feature kGpuProcessHighPriorityWin;
31 #endif
32 
33 GPU_EXPORT extern const base::Feature kGpuUseDisplayThreadPriority;
34 
35 GPU_EXPORT extern const base::Feature kGpuWatchdogV2;
36 
37 GPU_EXPORT extern const base::Feature kGpuWatchdogV1NewTimeout;
38 
39 GPU_EXPORT extern const base::Feature kGpuWatchdogV2NewTimeout;
40 
41 #if defined(OS_MACOSX)
42 GPU_EXPORT extern const base::Feature kMetal;
43 #endif
44 
45 GPU_EXPORT extern const base::Feature kSharedImageManager;
46 
47 GPU_EXPORT extern const base::Feature kUseDCOverlaysForSoftwareProtectedVideo;
48 
49 GPU_EXPORT extern const base::Feature kVaapiJpegImageDecodeAcceleration;
50 
51 GPU_EXPORT extern const base::Feature kVaapiWebPImageDecodeAcceleration;
52 
53 GPU_EXPORT extern const base::Feature kVulkan;
54 
55 GPU_EXPORT extern const base::Feature kSkiaDawn;
56 
57 GPU_EXPORT extern const base::Feature kEnableSharedImageForWebview;
58 
59 #if defined(OS_ANDROID)
60 GPU_EXPORT bool IsAndroidSurfaceControlEnabled();
61 #endif
62 
63 }  // namespace features
64 
65 #endif  // GPU_CONFIG_GPU_FEATURES_H_
66