Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 | 5 |
| 6 #include "services/gles2/gpu_state.h" | 6 #include "services/gles2/gpu_state.h" |
| 7 | 7 |
| 8 #include "base/command_line.h" | |
| 9 #include "gpu/config/gpu_util.h" | |
| 8 #include "services/gles2/mailbox_manager_factory.h" | 10 #include "services/gles2/mailbox_manager_factory.h" |
| 9 | 11 |
| 10 namespace gles2 { | 12 namespace gles2 { |
| 11 | 13 |
| 12 GpuState::GpuState() | 14 GpuState::GpuState() |
| 13 : control_thread_("gpu_command_buffer_control"), | 15 : control_thread_("gpu_command_buffer_control"), |
| 14 sync_point_manager_(gpu::SyncPointManager::Create(true)), | 16 sync_point_manager_(gpu::SyncPointManager::Create(true)), |
| 15 share_group_(new gfx::GLShareGroup), | 17 share_group_(new gfx::GLShareGroup), |
| 16 mailbox_manager_(MailboxManagerFactory::Create()) { | 18 mailbox_manager_(MailboxManagerFactory::Create()) { |
| 19 gpu::ApplyGpuDriverBugWorkarounds(base::CommandLine::ForCurrentProcess()); | |
|
jamesr
2015/09/18 16:34:09
what populates the workaround list? the way this w
cdotstout
2015/09/18 17:54:04
Some workarounds are set automatically based on th
| |
| 20 | |
| 17 control_thread_.Start(); | 21 control_thread_.Start(); |
| 18 } | 22 } |
| 19 | 23 |
| 20 GpuState::~GpuState() { | 24 GpuState::~GpuState() { |
| 21 } | 25 } |
| 22 | 26 |
| 23 } // namespace gles2 | 27 } // namespace gles2 |
| OLD | NEW |