OLD | NEW |
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 | 14 |
15 namespace gpu { | 15 namespace gpu { |
16 | 16 |
17 struct GPU_EXPORT GpuPreferences { | 17 struct GPU_EXPORT GpuPreferences { |
18 public: | 18 public: |
19 GpuPreferences(); | 19 GpuPreferences(); |
20 | 20 |
| 21 GpuPreferences(const GpuPreferences& other); |
| 22 |
21 ~GpuPreferences(); | 23 ~GpuPreferences(); |
22 | 24 |
23 // =================================== | 25 // =================================== |
24 // Settings from //content/public/common/content_switches.h | 26 // Settings from //content/public/common/content_switches.h |
25 | 27 |
26 // Runs the renderer and plugins in the same process as the browser. | 28 // Runs the renderer and plugins in the same process as the browser. |
27 bool single_process = false; | 29 bool single_process = false; |
28 | 30 |
29 // Run the GPU process as a thread in the browser process. | 31 // Run the GPU process as a thread in the browser process. |
30 bool in_process_gpu = false; | 32 bool in_process_gpu = false; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 // Turns on calling TRACE for every GL call. | 121 // Turns on calling TRACE for every GL call. |
120 bool enable_gpu_service_tracing = false; | 122 bool enable_gpu_service_tracing = false; |
121 | 123 |
122 // Enable OpenGL ES 3 APIs without proper service side validation. | 124 // Enable OpenGL ES 3 APIs without proper service side validation. |
123 bool enable_unsafe_es3_apis = false; | 125 bool enable_unsafe_es3_apis = false; |
124 }; | 126 }; |
125 | 127 |
126 } // namespace gpu | 128 } // namespace gpu |
127 | 129 |
128 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_PREFERENCES_H_ | 130 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_PREFERENCES_H_ |
OLD | NEW |