| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/browser/gpu/gpu_data_manager_impl.h" | 5 #include "content/browser/gpu/gpu_data_manager_impl.h" |
| 6 | 6 |
| 7 #include "content/browser/gpu/gpu_data_manager_impl_private.h" | 7 #include "content/browser/gpu/gpu_data_manager_impl_private.h" |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 private_->UpdateGpuInfo(gpu_info); | 132 private_->UpdateGpuInfo(gpu_info); |
| 133 } | 133 } |
| 134 | 134 |
| 135 void GpuDataManagerImpl::UpdateVideoMemoryUsageStats( | 135 void GpuDataManagerImpl::UpdateVideoMemoryUsageStats( |
| 136 const GPUVideoMemoryUsageStats& video_memory_usage_stats) { | 136 const GPUVideoMemoryUsageStats& video_memory_usage_stats) { |
| 137 base::AutoLock auto_lock(lock_); | 137 base::AutoLock auto_lock(lock_); |
| 138 private_->UpdateVideoMemoryUsageStats(video_memory_usage_stats); | 138 private_->UpdateVideoMemoryUsageStats(video_memory_usage_stats); |
| 139 } | 139 } |
| 140 | 140 |
| 141 void GpuDataManagerImpl::AppendRendererCommandLine( | 141 void GpuDataManagerImpl::AppendRendererCommandLine( |
| 142 CommandLine* command_line) const { | 142 base::CommandLine* command_line) const { |
| 143 base::AutoLock auto_lock(lock_); | 143 base::AutoLock auto_lock(lock_); |
| 144 private_->AppendRendererCommandLine(command_line); | 144 private_->AppendRendererCommandLine(command_line); |
| 145 } | 145 } |
| 146 | 146 |
| 147 void GpuDataManagerImpl::AppendGpuCommandLine( | 147 void GpuDataManagerImpl::AppendGpuCommandLine( |
| 148 CommandLine* command_line) const { | 148 base::CommandLine* command_line) const { |
| 149 base::AutoLock auto_lock(lock_); | 149 base::AutoLock auto_lock(lock_); |
| 150 private_->AppendGpuCommandLine(command_line); | 150 private_->AppendGpuCommandLine(command_line); |
| 151 } | 151 } |
| 152 | 152 |
| 153 void GpuDataManagerImpl::AppendPluginCommandLine( | 153 void GpuDataManagerImpl::AppendPluginCommandLine( |
| 154 CommandLine* command_line) const { | 154 base::CommandLine* command_line) const { |
| 155 base::AutoLock auto_lock(lock_); | 155 base::AutoLock auto_lock(lock_); |
| 156 private_->AppendPluginCommandLine(command_line); | 156 private_->AppendPluginCommandLine(command_line); |
| 157 } | 157 } |
| 158 | 158 |
| 159 void GpuDataManagerImpl::UpdateRendererWebPrefs( | 159 void GpuDataManagerImpl::UpdateRendererWebPrefs( |
| 160 WebPreferences* prefs) const { | 160 WebPreferences* prefs) const { |
| 161 base::AutoLock auto_lock(lock_); | 161 base::AutoLock auto_lock(lock_); |
| 162 private_->UpdateRendererWebPrefs(prefs); | 162 private_->UpdateRendererWebPrefs(prefs); |
| 163 } | 163 } |
| 164 | 164 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 } | 256 } |
| 257 | 257 |
| 258 GpuDataManagerImpl::GpuDataManagerImpl() | 258 GpuDataManagerImpl::GpuDataManagerImpl() |
| 259 : private_(GpuDataManagerImplPrivate::Create(this)) { | 259 : private_(GpuDataManagerImplPrivate::Create(this)) { |
| 260 } | 260 } |
| 261 | 261 |
| 262 GpuDataManagerImpl::~GpuDataManagerImpl() { | 262 GpuDataManagerImpl::~GpuDataManagerImpl() { |
| 263 } | 263 } |
| 264 | 264 |
| 265 } // namespace content | 265 } // namespace content |
| OLD | NEW |