Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: gpu/command_buffer/service/gpu_preferences.h

Issue 2517953003: Move enable_webrtc to a buildflag header. (Closed)
Patch Set: Fix Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/command_buffer/service/DEPS ('k') | jingle/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GPU_PREFERENCES_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GPU_PREFERENCES_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_GPU_PREFERENCES_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_GPU_PREFERENCES_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "gpu/command_buffer/common/constants.h" 12 #include "gpu/command_buffer/common/constants.h"
13 #include "gpu/gpu_export.h" 13 #include "gpu/gpu_export.h"
14 #include "media/media_features.h"
14 15
15 namespace gpu { 16 namespace gpu {
16 17
17 struct GPU_EXPORT GpuPreferences { 18 struct GPU_EXPORT GpuPreferences {
18 public: 19 public:
19 GpuPreferences(); 20 GpuPreferences();
20 21
21 GpuPreferences(const GpuPreferences& other); 22 GpuPreferences(const GpuPreferences& other);
22 23
23 ~GpuPreferences(); 24 ~GpuPreferences();
(...skipping 20 matching lines...) Expand all
44 bool ui_prioritize_in_gpu_process = false; 45 bool ui_prioritize_in_gpu_process = false;
45 46
46 // Disables hardware acceleration of video decode, where available. 47 // Disables hardware acceleration of video decode, where available.
47 bool disable_accelerated_video_decode = false; 48 bool disable_accelerated_video_decode = false;
48 49
49 #if defined(OS_CHROMEOS) 50 #if defined(OS_CHROMEOS)
50 // Disables VA-API accelerated video encode. 51 // Disables VA-API accelerated video encode.
51 bool disable_vaapi_accelerated_video_encode = false; 52 bool disable_vaapi_accelerated_video_encode = false;
52 #endif 53 #endif
53 54
54 #if defined(ENABLE_WEBRTC) 55 #if BUILDFLAG(ENABLE_WEBRTC)
55 // Disables HW encode acceleration for WebRTC. 56 // Disables HW encode acceleration for WebRTC.
56 bool disable_web_rtc_hw_encoding = false; 57 bool disable_web_rtc_hw_encoding = false;
57 #endif 58 #endif
58 59
59 #if defined(OS_WIN) 60 #if defined(OS_WIN)
60 // Enables experimental hardware acceleration for VP8/VP9 video decoding. 61 // Enables experimental hardware acceleration for VP8/VP9 video decoding.
61 // Bitmask - 0x1=Microsoft, 0x2=AMD, 0x03=Try all. 62 // Bitmask - 0x1=Microsoft, 0x2=AMD, 0x03=Try all.
62 VpxDecodeVendors enable_accelerated_vpx_decode = VPX_VENDOR_MICROSOFT; 63 VpxDecodeVendors enable_accelerated_vpx_decode = VPX_VENDOR_MICROSOFT;
63 64
64 // Enables using CODECAPI_AVLowLatencyMode. 65 // Enables using CODECAPI_AVLowLatencyMode.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 bool enable_es3_apis = true; 142 bool enable_es3_apis = true;
142 143
143 // Use the Pass-through command decoder, skipping all validation and state 144 // Use the Pass-through command decoder, skipping all validation and state
144 // tracking. 145 // tracking.
145 bool use_passthrough_cmd_decoder = false; 146 bool use_passthrough_cmd_decoder = false;
146 }; 147 };
147 148
148 } // namespace gpu 149 } // namespace gpu
149 150
150 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_PREFERENCES_H_ 151 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_PREFERENCES_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/DEPS ('k') | jingle/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698