| 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 #ifndef GPU_IPC_SERVICE_GPU_MEMORY_TRACKING_H_ | 5 #ifndef GPU_IPC_SERVICE_GPU_MEMORY_TRACKING_H_ |
| 6 #define GPU_IPC_SERVICE_GPU_MEMORY_TRACKING_H_ | 6 #define GPU_IPC_SERVICE_GPU_MEMORY_TRACKING_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/process/process.h" | 10 #include "base/process/process.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 private: | 33 private: |
| 34 friend class GpuMemoryManager; | 34 friend class GpuMemoryManager; |
| 35 | 35 |
| 36 GpuMemoryTrackingGroup(base::ProcessId pid, | 36 GpuMemoryTrackingGroup(base::ProcessId pid, |
| 37 gles2::MemoryTracker* memory_tracker, | 37 gles2::MemoryTracker* memory_tracker, |
| 38 GpuMemoryManager* memory_manager); | 38 GpuMemoryManager* memory_manager); |
| 39 | 39 |
| 40 base::ProcessId pid_; | 40 base::ProcessId pid_; |
| 41 uint64_t size_; | 41 uint64_t size_; |
| 42 | 42 |
| 43 // Set and used only during the Manage function, to determine which | |
| 44 // non-surface clients should be hibernated. | |
| 45 bool hibernated_; | |
| 46 | |
| 47 gles2::MemoryTracker* memory_tracker_; | 43 gles2::MemoryTracker* memory_tracker_; |
| 48 GpuMemoryManager* memory_manager_; | 44 GpuMemoryManager* memory_manager_; |
| 49 }; | 45 }; |
| 50 | 46 |
| 51 } // namespace gpu | 47 } // namespace gpu |
| 52 | 48 |
| 53 #endif // GPU_IPC_SERVICE_GPU_MEMORY_TRACKING_H_ | 49 #endif // GPU_IPC_SERVICE_GPU_MEMORY_TRACKING_H_ |
| OLD | NEW |