OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CC_OUTPUT_MANAGED_MEMORY_POLICY_H_ | 5 #ifndef CC_OUTPUT_MANAGED_MEMORY_POLICY_H_ |
6 #define CC_OUTPUT_MANAGED_MEMORY_POLICY_H_ | 6 #define CC_OUTPUT_MANAGED_MEMORY_POLICY_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include <stddef.h> |
| 9 |
9 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
10 #include "cc/tiles/tile_priority.h" | 11 #include "cc/tiles/tile_priority.h" |
11 #include "gpu/command_buffer/common/gpu_memory_allocation.h" | 12 #include "gpu/command_buffer/common/gpu_memory_allocation.h" |
12 | 13 |
13 namespace cc { | 14 namespace cc { |
14 | 15 |
15 namespace proto { | 16 namespace proto { |
16 class ManagedMemoryPolicy; | 17 class ManagedMemoryPolicy; |
17 } // namespace proto | 18 } // namespace proto |
18 | 19 |
(...skipping 17 matching lines...) Expand all Loading... |
36 gpu::MemoryAllocation::PriorityCutoff priority_cutoff_when_visible; | 37 gpu::MemoryAllocation::PriorityCutoff priority_cutoff_when_visible; |
37 size_t num_resources_limit; | 38 size_t num_resources_limit; |
38 | 39 |
39 static TileMemoryLimitPolicy PriorityCutoffToTileMemoryLimitPolicy( | 40 static TileMemoryLimitPolicy PriorityCutoffToTileMemoryLimitPolicy( |
40 gpu::MemoryAllocation::PriorityCutoff priority_cutoff); | 41 gpu::MemoryAllocation::PriorityCutoff priority_cutoff); |
41 }; | 42 }; |
42 | 43 |
43 } // namespace cc | 44 } // namespace cc |
44 | 45 |
45 #endif // CC_OUTPUT_MANAGED_MEMORY_POLICY_H_ | 46 #endif // CC_OUTPUT_MANAGED_MEMORY_POLICY_H_ |
OLD | NEW |