| 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 #include "gpu/ipc/common/memory_stats.h" | |
| 9 | 8 |
| 10 namespace content { | 9 namespace content { |
| 11 | 10 |
| 12 // static | 11 // static |
| 13 GpuDataManager* GpuDataManager::GetInstance() { | 12 GpuDataManager* GpuDataManager::GetInstance() { |
| 14 return GpuDataManagerImpl::GetInstance(); | 13 return GpuDataManagerImpl::GetInstance(); |
| 15 } | 14 } |
| 16 | 15 |
| 17 // static | 16 // static |
| 18 GpuDataManagerImpl* GpuDataManagerImpl::GetInstance() { | 17 GpuDataManagerImpl* GpuDataManagerImpl::GetInstance() { |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 base::AutoLock auto_lock(lock_); | 137 base::AutoLock auto_lock(lock_); |
| 139 private_->Initialize(); | 138 private_->Initialize(); |
| 140 } | 139 } |
| 141 | 140 |
| 142 void GpuDataManagerImpl::UpdateGpuInfo(const gpu::GPUInfo& gpu_info) { | 141 void GpuDataManagerImpl::UpdateGpuInfo(const gpu::GPUInfo& gpu_info) { |
| 143 base::AutoLock auto_lock(lock_); | 142 base::AutoLock auto_lock(lock_); |
| 144 private_->UpdateGpuInfo(gpu_info); | 143 private_->UpdateGpuInfo(gpu_info); |
| 145 } | 144 } |
| 146 | 145 |
| 147 void GpuDataManagerImpl::UpdateVideoMemoryUsageStats( | 146 void GpuDataManagerImpl::UpdateVideoMemoryUsageStats( |
| 148 const gpu::VideoMemoryUsageStats& video_memory_usage_stats) { | 147 const GPUVideoMemoryUsageStats& video_memory_usage_stats) { |
| 149 base::AutoLock auto_lock(lock_); | 148 base::AutoLock auto_lock(lock_); |
| 150 private_->UpdateVideoMemoryUsageStats(video_memory_usage_stats); | 149 private_->UpdateVideoMemoryUsageStats(video_memory_usage_stats); |
| 151 } | 150 } |
| 152 | 151 |
| 153 void GpuDataManagerImpl::AppendRendererCommandLine( | 152 void GpuDataManagerImpl::AppendRendererCommandLine( |
| 154 base::CommandLine* command_line) const { | 153 base::CommandLine* command_line) const { |
| 155 base::AutoLock auto_lock(lock_); | 154 base::AutoLock auto_lock(lock_); |
| 156 private_->AppendRendererCommandLine(command_line); | 155 private_->AppendRendererCommandLine(command_line); |
| 157 } | 156 } |
| 158 | 157 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 } | 272 } |
| 274 | 273 |
| 275 GpuDataManagerImpl::GpuDataManagerImpl() | 274 GpuDataManagerImpl::GpuDataManagerImpl() |
| 276 : private_(GpuDataManagerImplPrivate::Create(this)) { | 275 : private_(GpuDataManagerImplPrivate::Create(this)) { |
| 277 } | 276 } |
| 278 | 277 |
| 279 GpuDataManagerImpl::~GpuDataManagerImpl() { | 278 GpuDataManagerImpl::~GpuDataManagerImpl() { |
| 280 } | 279 } |
| 281 | 280 |
| 282 } // namespace content | 281 } // namespace content |
| OLD | NEW |