| 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 #include <list> | 8 #include <list> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 bool managed_memory_stats_received_; | 86 bool managed_memory_stats_received_; |
| 87 | 87 |
| 88 // When managed_memory_stats_.bytes_nicetohave leaves the range | 88 // When managed_memory_stats_.bytes_nicetohave leaves the range |
| 89 // [low_, high_], then re-adjust memory limits. | 89 // [low_, high_], then re-adjust memory limits. |
| 90 uint64 bytes_nicetohave_limit_low_; | 90 uint64 bytes_nicetohave_limit_low_; |
| 91 uint64 bytes_nicetohave_limit_high_; | 91 uint64 bytes_nicetohave_limit_high_; |
| 92 | 92 |
| 93 // The allocation for this client, used transiently during memory policy | 93 // The allocation for this client, used transiently during memory policy |
| 94 // calculation. | 94 // calculation. |
| 95 uint64 bytes_allocation_when_visible_; | 95 uint64 bytes_allocation_when_visible_; |
| 96 uint64 bytes_allocation_when_nonvisible_; | |
| 97 | 96 |
| 98 // The ideal allocation for this client for three performance levels, used | 97 // The ideal allocation for this client for three performance levels, used |
| 99 // transiently during memory policy calculation. | 98 // transiently during memory policy calculation. |
| 100 uint64 bytes_allocation_ideal_nicetohave_; | 99 uint64 bytes_allocation_ideal_nicetohave_; |
| 101 uint64 bytes_allocation_ideal_required_; | 100 uint64 bytes_allocation_ideal_required_; |
| 102 uint64 bytes_allocation_ideal_minimum_; | 101 uint64 bytes_allocation_ideal_minimum_; |
| 103 | 102 |
| 104 // Set to disable allocating a frontbuffer or to disable allocations | 103 // Set to disable allocating a frontbuffer or to disable allocations |
| 105 // for clients that don't have surfaces. | 104 // for clients that don't have surfaces. |
| 106 bool hibernated_; | 105 bool hibernated_; |
| 107 }; | 106 }; |
| 108 | 107 |
| 109 } // namespace content | 108 } // namespace content |
| 110 | 109 |
| 111 #endif // CONTENT_COMMON_GPU_GPU_MEMORY_MANAGER_CLIENT_H_ | 110 #endif // CONTENT_COMMON_GPU_GPU_MEMORY_MANAGER_CLIENT_H_ |
| OLD | NEW |