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 CONTENT_COMMON_GPU_GPU_MEMORY_TRACKING_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_MEMORY_TRACKING_H_ |
6 #define CONTENT_COMMON_GPU_GPU_MEMORY_TRACKING_H_ | 6 #define CONTENT_COMMON_GPU_GPU_MEMORY_TRACKING_H_ |
7 | 7 |
8 #if defined(ENABLE_GPU) | |
9 | |
10 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
11 #include "base/process.h" | 9 #include "base/process.h" |
12 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
13 #include "gpu/command_buffer/service/memory_tracking.h" | 11 #include "gpu/command_buffer/service/memory_tracking.h" |
14 | 12 |
15 namespace content { | 13 namespace content { |
16 | 14 |
17 class GpuMemoryManager; | 15 class GpuMemoryManager; |
18 | 16 |
19 // All decoders in a context group point to a single GpuMemoryTrackingGroup, | 17 // All decoders in a context group point to a single GpuMemoryTrackingGroup, |
(...skipping 28 matching lines...) Expand all Loading... |
48 // Set and used only during the Manage function, to determine which | 46 // Set and used only during the Manage function, to determine which |
49 // non-surface clients should be hibernated. | 47 // non-surface clients should be hibernated. |
50 bool hibernated_; | 48 bool hibernated_; |
51 | 49 |
52 gpu::gles2::MemoryTracker* memory_tracker_; | 50 gpu::gles2::MemoryTracker* memory_tracker_; |
53 GpuMemoryManager* memory_manager_; | 51 GpuMemoryManager* memory_manager_; |
54 }; | 52 }; |
55 | 53 |
56 } // namespace content | 54 } // namespace content |
57 | 55 |
58 #endif | |
59 | |
60 #endif // CONTENT_COMMON_GPU_GPU_MEMORY_TRACKING_H_ | 56 #endif // CONTENT_COMMON_GPU_GPU_MEMORY_TRACKING_H_ |
OLD | NEW |