#include "cc/trees/managed_memory_policy.h"
#include <stddef.h>
#include "base/notreached.h"
namespace cc {
const size_t ManagedMemoryPolicy::kDefaultNumResourcesLimit = …;
MemoryAllocation;
ManagedMemoryPolicy::ManagedMemoryPolicy(size_t bytes_limit_when_visible)
: … { … }
ManagedMemoryPolicy::ManagedMemoryPolicy(
const gpu::MemoryAllocation& allocation)
: … { … }
ManagedMemoryPolicy::ManagedMemoryPolicy(
size_t bytes_limit_when_visible,
MemoryAllocation::PriorityCutoff priority_cutoff_when_visible,
size_t num_resources_limit)
: … { … }
bool ManagedMemoryPolicy::operator==(const ManagedMemoryPolicy& other) const { … }
bool ManagedMemoryPolicy::operator!=(const ManagedMemoryPolicy& other) const { … }
TileMemoryLimitPolicy
ManagedMemoryPolicy::PriorityCutoffToTileMemoryLimitPolicy(
gpu::MemoryAllocation::PriorityCutoff priority_cutoff) { … }
}