Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(425)

Side by Side Diff: content/browser/gpu/gpu_data_manager_impl.cc

Issue 1726343003: Revert of Mustash: move content::GPUVideoMemoryUsageStats to gpu::VideoMemoryUsageStats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl.h ('k') | content/browser/gpu/gpu_data_manager_impl_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698