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

Side by Side Diff: content/common/gpu/gpu_memory_manager.cc

Issue 10702200: PyAuto test for GPU memory consumption (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/common/gpu/gpu_memory_manager.h" 5 #include "content/common/gpu/gpu_memory_manager.h"
6 6
7 #if defined(ENABLE_GPU) 7 #if defined(ENABLE_GPU)
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 GpuMemoryAllocation::kHasNoBuffers)); 233 GpuMemoryAllocation::kHasNoBuffers));
234 234
235 AssignMemoryAllocations(stubs_without_surface_background, 235 AssignMemoryAllocations(stubs_without_surface_background,
236 GpuMemoryAllocation(kMinimumAllocationForTab, 236 GpuMemoryAllocation(kMinimumAllocationForTab,
237 GpuMemoryAllocation::kHasNoBuffers)); 237 GpuMemoryAllocation::kHasNoBuffers));
238 238
239 AssignMemoryAllocations(stubs_without_surface_hibernated, 239 AssignMemoryAllocations(stubs_without_surface_hibernated,
240 GpuMemoryAllocation(0, GpuMemoryAllocation::kHasNoBuffers)); 240 GpuMemoryAllocation(0, GpuMemoryAllocation::kHasNoBuffers));
241 } 241 }
242 242
243 void GpuMemoryManager::GetMemStats(content::GpuMemStats& stats) {
244 stats.currently_allocated_bytes = 16*1024*1024;
245 stats.max_concurrently_allocated_bytes = 32*1024*1024;
246 stats.total_bytes = 64*1024*1024;
247 }
248
243 #endif 249 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698