This source file includes following definitions.
- hibernated_
- SetVisible
- SetManagedMemoryStats
#include "content/common/gpu/gpu_memory_manager_client.h"
#include "content/common/gpu/gpu_memory_manager.h"
namespace content {
GpuMemoryManagerClientState::GpuMemoryManagerClientState(
GpuMemoryManager* memory_manager,
GpuMemoryManagerClient* client,
GpuMemoryTrackingGroup* tracking_group,
bool has_surface,
bool visible)
: memory_manager_(memory_manager),
client_(client),
tracking_group_(tracking_group),
has_surface_(has_surface),
visible_(visible),
list_iterator_valid_(false),
managed_memory_stats_received_(false),
bytes_nicetohave_limit_low_(0),
bytes_nicetohave_limit_high_(0),
bytes_allocation_when_visible_(0),
bytes_allocation_ideal_nicetohave_(0),
bytes_allocation_ideal_required_(0),
bytes_allocation_ideal_minimum_(0),
hibernated_(false) {
}
GpuMemoryManagerClientState::~GpuMemoryManagerClientState() {
memory_manager_->OnDestroyClientState(this);
}
void GpuMemoryManagerClientState::SetVisible(bool visible) {
memory_manager_->SetClientStateVisible(this, visible);
}
void GpuMemoryManagerClientState::SetManagedMemoryStats(
const gpu::ManagedMemoryStats& stats) {
memory_manager_->SetClientStateManagedMemoryStats(this, stats);
}
}