| Index: gpu/command_buffer/service/program_manager.cc
|
| diff --git a/gpu/command_buffer/service/program_manager.cc b/gpu/command_buffer/service/program_manager.cc
|
| index e0dfd1daa7e3bcaa71ef785275e0e028e0a48a48..c8179630fed092dde1b38e503cced2f657924155 100644
|
| --- a/gpu/command_buffer/service/program_manager.cc
|
| +++ b/gpu/command_buffer/service/program_manager.cc
|
| @@ -26,7 +26,7 @@
|
| #include "gpu/command_buffer/common/gles2_cmd_utils.h"
|
| #include "gpu/command_buffer/service/feature_info.h"
|
| #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
|
| -#include "gpu/command_buffer/service/gpu_switches.h"
|
| +#include "gpu/command_buffer/service/gpu_preferences.h"
|
| #include "gpu/command_buffer/service/program_cache.h"
|
| #include "gpu/command_buffer/service/shader_manager.h"
|
| #include "third_party/re2/src/re2/re2.h"
|
| @@ -493,8 +493,7 @@ void Program::Update() {
|
| }
|
|
|
| #if !defined(NDEBUG)
|
| - if (base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| - switches::kEnableGPUServiceLoggingGPU)) {
|
| + if (GpuPreferences::GetInstance()->enable_gpu_service_logging_gpu) {
|
| DVLOG(1) << "----: attribs for service_id: " << service_id();
|
| for (size_t ii = 0; ii < attrib_infos_.size(); ++ii) {
|
| const VertexAttrib& info = attrib_infos_[ii];
|
| @@ -508,8 +507,7 @@ void Program::Update() {
|
| UpdateUniforms();
|
|
|
| #if !defined(NDEBUG)
|
| - if (base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| - switches::kEnableGPUServiceLoggingGPU)) {
|
| + if (GpuPreferences::GetInstance()->enable_gpu_service_logging_gpu) {
|
| DVLOG(1) << "----: uniforms for service_id: " << service_id();
|
| size_t ii = 0;
|
| for (const UniformInfo& info : uniform_infos_) {
|
|
|