| 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" | 8 #include "gpu/ipc/common/memory_stats.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 base::AutoLock auto_lock(lock_); | 242 base::AutoLock auto_lock(lock_); |
| 243 private_->AddLogMessage(level, header, message); | 243 private_->AddLogMessage(level, header, message); |
| 244 } | 244 } |
| 245 | 245 |
| 246 void GpuDataManagerImpl::ProcessCrashed( | 246 void GpuDataManagerImpl::ProcessCrashed( |
| 247 base::TerminationStatus exit_code) { | 247 base::TerminationStatus exit_code) { |
| 248 base::AutoLock auto_lock(lock_); | 248 base::AutoLock auto_lock(lock_); |
| 249 private_->ProcessCrashed(exit_code); | 249 private_->ProcessCrashed(exit_code); |
| 250 } | 250 } |
| 251 | 251 |
| 252 base::ListValue* GpuDataManagerImpl::GetLogMessages() const { | 252 std::unique_ptr<base::ListValue> GpuDataManagerImpl::GetLogMessages() const { |
| 253 base::AutoLock auto_lock(lock_); | 253 base::AutoLock auto_lock(lock_); |
| 254 return private_->GetLogMessages(); | 254 return private_->GetLogMessages(); |
| 255 } | 255 } |
| 256 | 256 |
| 257 void GpuDataManagerImpl::HandleGpuSwitch() { | 257 void GpuDataManagerImpl::HandleGpuSwitch() { |
| 258 base::AutoLock auto_lock(lock_); | 258 base::AutoLock auto_lock(lock_); |
| 259 private_->HandleGpuSwitch(); | 259 private_->HandleGpuSwitch(); |
| 260 } | 260 } |
| 261 | 261 |
| 262 void GpuDataManagerImpl::BlockDomainFrom3DAPIs( | 262 void GpuDataManagerImpl::BlockDomainFrom3DAPIs( |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 } | 305 } |
| 306 | 306 |
| 307 GpuDataManagerImpl::GpuDataManagerImpl() | 307 GpuDataManagerImpl::GpuDataManagerImpl() |
| 308 : private_(GpuDataManagerImplPrivate::Create(this)) { | 308 : private_(GpuDataManagerImplPrivate::Create(this)) { |
| 309 } | 309 } |
| 310 | 310 |
| 311 GpuDataManagerImpl::~GpuDataManagerImpl() { | 311 GpuDataManagerImpl::~GpuDataManagerImpl() { |
| 312 } | 312 } |
| 313 | 313 |
| 314 } // namespace content | 314 } // namespace content |
| OLD | NEW |