| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "cc/base/cc_export.h" | 10 #include "cc/cc_export.h" |
| 11 #include "cc/tiles/tile_priority.h" | 11 #include "cc/tiles/tile_priority.h" |
| 12 #include "gpu/command_buffer/common/gpu_memory_allocation.h" | 12 #include "gpu/command_buffer/common/gpu_memory_allocation.h" |
| 13 | 13 |
| 14 namespace cc { | 14 namespace cc { |
| 15 | 15 |
| 16 namespace proto { | 16 namespace proto { |
| 17 class ManagedMemoryPolicy; | 17 class ManagedMemoryPolicy; |
| 18 } // namespace proto | 18 } // namespace proto |
| 19 | 19 |
| 20 struct CC_EXPORT ManagedMemoryPolicy { | 20 struct CC_EXPORT ManagedMemoryPolicy { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 34 gpu::MemoryAllocation::PriorityCutoff priority_cutoff_when_visible; | 34 gpu::MemoryAllocation::PriorityCutoff priority_cutoff_when_visible; |
| 35 size_t num_resources_limit; | 35 size_t num_resources_limit; |
| 36 | 36 |
| 37 static TileMemoryLimitPolicy PriorityCutoffToTileMemoryLimitPolicy( | 37 static TileMemoryLimitPolicy PriorityCutoffToTileMemoryLimitPolicy( |
| 38 gpu::MemoryAllocation::PriorityCutoff priority_cutoff); | 38 gpu::MemoryAllocation::PriorityCutoff priority_cutoff); |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 } // namespace cc | 41 } // namespace cc |
| 42 | 42 |
| 43 #endif // CC_OUTPUT_MANAGED_MEMORY_POLICY_H_ | 43 #endif // CC_OUTPUT_MANAGED_MEMORY_POLICY_H_ |
| OLD | NEW |