| 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/public/common/gpu_memory_stats.h" | 5 #include "content/public/common/gpu_memory_stats.h" |
| 6 | 6 |
| 7 namespace content { | 7 namespace content { |
| 8 | 8 |
| 9 GPUVideoMemoryUsageStats::GPUVideoMemoryUsageStats() { | 9 GPUVideoMemoryUsageStats::GPUVideoMemoryUsageStats() |
| 10 : bytes_allocated(0), |
| 11 bytes_allocated_historical_max(0) { |
| 10 } | 12 } |
| 11 | 13 |
| 12 GPUVideoMemoryUsageStats::~GPUVideoMemoryUsageStats() { | 14 GPUVideoMemoryUsageStats::~GPUVideoMemoryUsageStats() { |
| 13 } | 15 } |
| 14 | 16 |
| 15 GPUVideoMemoryUsageStats::ProcessStats::ProcessStats() | 17 GPUVideoMemoryUsageStats::ProcessStats::ProcessStats() |
| 16 : video_memory(0), | 18 : video_memory(0), |
| 17 has_duplicates(false) { | 19 has_duplicates(false) { |
| 18 } | 20 } |
| 19 | 21 |
| 20 GPUVideoMemoryUsageStats::ProcessStats::~ProcessStats() { | 22 GPUVideoMemoryUsageStats::ProcessStats::~ProcessStats() { |
| 21 } | 23 } |
| 22 | 24 |
| 23 } // namespace content | 25 } // namespace content |
| OLD | NEW |