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
3 // found in the LICENSE file.
5 #include "content/common/gpu/gpu_memory_manager_client.h"
7 #include "content/common/gpu/gpu_memory_manager.h"
11 GpuMemoryManagerClientState::GpuMemoryManagerClientState(
12 GpuMemoryManager
* memory_manager
,
13 GpuMemoryManagerClient
* client
,
14 GpuMemoryTrackingGroup
* tracking_group
,
17 : memory_manager_(memory_manager
),
19 tracking_group_(tracking_group
),
20 has_surface_(has_surface
),
22 list_iterator_valid_(false),
26 GpuMemoryManagerClientState::~GpuMemoryManagerClientState() {
27 memory_manager_
->OnDestroyClientState(this);
30 void GpuMemoryManagerClientState::SetVisible(bool visible
) {
31 memory_manager_
->SetClientStateVisible(this, visible
);
34 } // namespace content