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

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

Issue 1778693002: Revert of Get rid of gpu related switches by passing gpu::GpuPreferences via IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months 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 | « content/public/browser/gpu_utils.cc ('k') | gpu/command_buffer/service/gpu_switches.h » ('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"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // Enable GPU service logging. 59 // Enable GPU service logging.
60 bool enable_gpu_service_logging_gpu = false; 60 bool enable_gpu_service_logging_gpu = false;
61 61
62 // Turn off gpu program caching 62 // Turn off gpu program caching
63 bool disable_gpu_program_cache = false; 63 bool disable_gpu_program_cache = false;
64 64
65 // Enforce GL minimums. 65 // Enforce GL minimums.
66 bool enforce_gl_minimums = false; 66 bool enforce_gl_minimums = false;
67 67
68 // Sets the total amount of memory that may be allocated for GPU resources 68 // Sets the total amount of memory that may be allocated for GPU resources
69 uint32_t force_gpu_mem_available = 0; 69 size_t force_gpu_mem_available = 0;
70 70
71 // Sets the maximum size of the in-memory gpu program cache, in kb 71 // Sets the maximum size of the in-memory gpu program cache, in kb
72 uint32_t gpu_program_cache_size = kDefaultMaxProgramCacheMemoryBytes; 72 size_t gpu_program_cache_size = kDefaultMaxProgramCacheMemoryBytes;
73 73
74 // Disables the GPU shader on disk cache. 74 // Disables the GPU shader on disk cache.
75 bool disable_gpu_shader_disk_cache = false; 75 bool disable_gpu_shader_disk_cache = false;
76 76
77 // Allows async texture uploads (off main thread) via GL context sharing. 77 // Allows async texture uploads (off main thread) via GL context sharing.
78 bool enable_share_group_async_texture_upload = false; 78 bool enable_share_group_async_texture_upload = false;
79 79
80 // Enable WebGL subscribe uniform extension. 80 // Enable WebGL subscribe uniform extension.
81 bool enable_subscribe_uniform_extension = false; 81 bool enable_subscribe_uniform_extension = false;
82 82
(...skipping 18 matching lines...) Expand all
101 // Turns on calling TRACE for every GL call. 101 // Turns on calling TRACE for every GL call.
102 bool enable_gpu_service_tracing = false; 102 bool enable_gpu_service_tracing = false;
103 103
104 // Enable OpenGL ES 3 APIs without proper service side validation. 104 // Enable OpenGL ES 3 APIs without proper service side validation.
105 bool enable_unsafe_es3_apis = false; 105 bool enable_unsafe_es3_apis = false;
106 }; 106 };
107 107
108 } // namespace gpu 108 } // namespace gpu
109 109
110 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_PREFERENCES_H_ 110 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_PREFERENCES_H_
OLDNEW
« no previous file with comments | « content/public/browser/gpu_utils.cc ('k') | gpu/command_buffer/service/gpu_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698