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_MANAGER_CLIENT_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_MEMORY_MANAGER_CLIENT_H_ |
6 #define CONTENT_COMMON_GPU_GPU_MEMORY_MANAGER_CLIENT_H_ | 6 #define CONTENT_COMMON_GPU_GPU_MEMORY_MANAGER_CLIENT_H_ |
7 | 7 |
8 #if defined(ENABLE_GPU) | |
9 | |
10 #include <list> | 8 #include <list> |
11 | 9 |
12 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
13 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
14 #include "content/common/gpu/gpu_memory_allocation.h" | 12 #include "content/common/gpu/gpu_memory_allocation.h" |
15 #include "gpu/command_buffer/service/memory_tracking.h" | 13 #include "gpu/command_buffer/service/memory_tracking.h" |
16 #include "ui/gfx/size.h" | 14 #include "ui/gfx/size.h" |
17 | 15 |
18 namespace content { | 16 namespace content { |
19 | 17 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 uint64 bytes_allocation_ideal_required_; | 99 uint64 bytes_allocation_ideal_required_; |
102 uint64 bytes_allocation_ideal_minimum_; | 100 uint64 bytes_allocation_ideal_minimum_; |
103 | 101 |
104 // Set to disable allocating a frontbuffer or to disable allocations | 102 // Set to disable allocating a frontbuffer or to disable allocations |
105 // for clients that don't have surfaces. | 103 // for clients that don't have surfaces. |
106 bool hibernated_; | 104 bool hibernated_; |
107 }; | 105 }; |
108 | 106 |
109 } // namespace content | 107 } // namespace content |
110 | 108 |
111 #endif | |
112 | |
113 #endif // CONTENT_COMMON_GPU_GPU_MEMORY_MANAGER_CLIENT_H_ | 109 #endif // CONTENT_COMMON_GPU_GPU_MEMORY_MANAGER_CLIENT_H_ |
OLD | NEW |