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

Side by Side Diff: content/public/browser/gpu_utils.cc

Issue 2472703003: Load the GL_KHR_debug entry points and log messages they produce. (Closed)
Patch Set: Update window system string 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 | « content/common/gpu_host_messages.h ('k') | gpu/command_buffer/service/feature_info.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 #include "content/public/browser/gpu_utils.h" 5 #include "content/public/browser/gpu_utils.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "content/public/common/content_switches.h" 9 #include "content/public/common/content_switches.h"
10 #include "gpu/command_buffer/service/gpu_switches.h" 10 #include "gpu/command_buffer/service/gpu_switches.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 gpu_preferences.disable_gpu_driver_bug_workarounds = 72 gpu_preferences.disable_gpu_driver_bug_workarounds =
73 command_line->HasSwitch(switches::kDisableGpuDriverBugWorkarounds); 73 command_line->HasSwitch(switches::kDisableGpuDriverBugWorkarounds);
74 gpu_preferences.disable_shader_name_hashing = 74 gpu_preferences.disable_shader_name_hashing =
75 command_line->HasSwitch(switches::kDisableShaderNameHashing); 75 command_line->HasSwitch(switches::kDisableShaderNameHashing);
76 gpu_preferences.enable_gpu_command_logging = 76 gpu_preferences.enable_gpu_command_logging =
77 command_line->HasSwitch(switches::kEnableGPUCommandLogging); 77 command_line->HasSwitch(switches::kEnableGPUCommandLogging);
78 gpu_preferences.enable_gpu_debugging = 78 gpu_preferences.enable_gpu_debugging =
79 command_line->HasSwitch(switches::kEnableGPUDebugging); 79 command_line->HasSwitch(switches::kEnableGPUDebugging);
80 gpu_preferences.enable_gpu_service_logging_gpu = 80 gpu_preferences.enable_gpu_service_logging_gpu =
81 command_line->HasSwitch(switches::kEnableGPUServiceLoggingGPU); 81 command_line->HasSwitch(switches::kEnableGPUServiceLoggingGPU);
82 gpu_preferences.enable_gpu_driver_debug_logging =
83 command_line->HasSwitch(switches::kEnableGPUDriverDebugLogging);
82 gpu_preferences.disable_gpu_program_cache = 84 gpu_preferences.disable_gpu_program_cache =
83 command_line->HasSwitch(switches::kDisableGpuProgramCache); 85 command_line->HasSwitch(switches::kDisableGpuProgramCache);
84 gpu_preferences.enforce_gl_minimums = 86 gpu_preferences.enforce_gl_minimums =
85 command_line->HasSwitch(switches::kEnforceGLMinimums); 87 command_line->HasSwitch(switches::kEnforceGLMinimums);
86 if (GetUintFromSwitch(command_line, switches::kForceGpuMemAvailableMb, 88 if (GetUintFromSwitch(command_line, switches::kForceGpuMemAvailableMb,
87 &gpu_preferences.force_gpu_mem_available)) { 89 &gpu_preferences.force_gpu_mem_available)) {
88 gpu_preferences.force_gpu_mem_available *= 1024 * 1024; 90 gpu_preferences.force_gpu_mem_available *= 1024 * 1024;
89 } 91 }
90 if (GetUintFromSwitch(command_line, switches::kGpuProgramCacheSizeKb, 92 if (GetUintFromSwitch(command_line, switches::kGpuProgramCacheSizeKb,
91 &gpu_preferences.gpu_program_cache_size)) { 93 &gpu_preferences.gpu_program_cache_size)) {
(...skipping 13 matching lines...) Expand all
105 command_line->HasSwitch(switches::kEnableGPUServiceTracing); 107 command_line->HasSwitch(switches::kEnableGPUServiceTracing);
106 gpu_preferences.enable_unsafe_es3_apis = 108 gpu_preferences.enable_unsafe_es3_apis =
107 command_line->HasSwitch(switches::kEnableUnsafeES3APIs) && 109 command_line->HasSwitch(switches::kEnableUnsafeES3APIs) &&
108 !command_line->HasSwitch(switches::kDisableES3APIs); 110 !command_line->HasSwitch(switches::kDisableES3APIs);
109 gpu_preferences.use_passthrough_cmd_decoder = 111 gpu_preferences.use_passthrough_cmd_decoder =
110 command_line->HasSwitch(switches::kUsePassthroughCmdDecoder); 112 command_line->HasSwitch(switches::kUsePassthroughCmdDecoder);
111 return gpu_preferences; 113 return gpu_preferences;
112 } 114 }
113 115
114 } // namespace content 116 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu_host_messages.h ('k') | gpu/command_buffer/service/feature_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698