| Index: cc/output/managed_memory_policy.cc
|
| diff --git a/cc/output/managed_memory_policy.cc b/cc/output/managed_memory_policy.cc
|
| index ade2a27f9e4a0c442dcba940d7aadce22ac60824..049d2b03f9fcd14768e830c1c931d9a90ffc74da 100644
|
| --- a/cc/output/managed_memory_policy.cc
|
| +++ b/cc/output/managed_memory_policy.cc
|
| @@ -16,37 +16,25 @@ using gpu::MemoryAllocation;
|
| ManagedMemoryPolicy::ManagedMemoryPolicy(size_t bytes_limit_when_visible)
|
| : bytes_limit_when_visible(bytes_limit_when_visible),
|
| priority_cutoff_when_visible(MemoryAllocation::CUTOFF_ALLOW_EVERYTHING),
|
| - bytes_limit_when_not_visible(0),
|
| - priority_cutoff_when_not_visible(MemoryAllocation::CUTOFF_ALLOW_NOTHING),
|
| num_resources_limit(kDefaultNumResourcesLimit) {}
|
|
|
| ManagedMemoryPolicy::ManagedMemoryPolicy(
|
| const gpu::MemoryAllocation& allocation)
|
| : bytes_limit_when_visible(allocation.bytes_limit_when_visible),
|
| priority_cutoff_when_visible(allocation.priority_cutoff_when_visible),
|
| - bytes_limit_when_not_visible(allocation.bytes_limit_when_not_visible),
|
| - priority_cutoff_when_not_visible(
|
| - allocation.priority_cutoff_when_not_visible),
|
| num_resources_limit(kDefaultNumResourcesLimit) {}
|
|
|
| ManagedMemoryPolicy::ManagedMemoryPolicy(
|
| size_t bytes_limit_when_visible,
|
| MemoryAllocation::PriorityCutoff priority_cutoff_when_visible,
|
| - size_t bytes_limit_when_not_visible,
|
| - MemoryAllocation::PriorityCutoff priority_cutoff_when_not_visible,
|
| size_t num_resources_limit)
|
| : bytes_limit_when_visible(bytes_limit_when_visible),
|
| priority_cutoff_when_visible(priority_cutoff_when_visible),
|
| - bytes_limit_when_not_visible(bytes_limit_when_not_visible),
|
| - priority_cutoff_when_not_visible(priority_cutoff_when_not_visible),
|
| num_resources_limit(num_resources_limit) {}
|
|
|
| bool ManagedMemoryPolicy::operator==(const ManagedMemoryPolicy& other) const {
|
| return bytes_limit_when_visible == other.bytes_limit_when_visible &&
|
| priority_cutoff_when_visible == other.priority_cutoff_when_visible &&
|
| - bytes_limit_when_not_visible == other.bytes_limit_when_not_visible &&
|
| - priority_cutoff_when_not_visible ==
|
| - other.priority_cutoff_when_not_visible &&
|
| num_resources_limit == other.num_resources_limit;
|
| }
|
|
|
|
|