| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |