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 #include "content/common/gpu/gpu_memory_manager_client.h" | 5 #include "content/common/gpu/gpu_memory_manager_client.h" |
6 | 6 |
7 #if defined(ENABLE_GPU) | |
8 | |
9 #include "content/common/gpu/gpu_memory_manager.h" | 7 #include "content/common/gpu/gpu_memory_manager.h" |
10 | 8 |
11 namespace content { | 9 namespace content { |
12 | 10 |
13 GpuMemoryManagerClientState::GpuMemoryManagerClientState( | 11 GpuMemoryManagerClientState::GpuMemoryManagerClientState( |
14 GpuMemoryManager* memory_manager, | 12 GpuMemoryManager* memory_manager, |
15 GpuMemoryManagerClient* client, | 13 GpuMemoryManagerClient* client, |
16 GpuMemoryTrackingGroup* tracking_group, | 14 GpuMemoryTrackingGroup* tracking_group, |
17 bool has_surface, | 15 bool has_surface, |
18 bool visible) | 16 bool visible) |
(...skipping 21 matching lines...) Expand all Loading... |
40 void GpuMemoryManagerClientState::SetVisible(bool visible) { | 38 void GpuMemoryManagerClientState::SetVisible(bool visible) { |
41 memory_manager_->SetClientStateVisible(this, visible); | 39 memory_manager_->SetClientStateVisible(this, visible); |
42 } | 40 } |
43 | 41 |
44 void GpuMemoryManagerClientState::SetManagedMemoryStats( | 42 void GpuMemoryManagerClientState::SetManagedMemoryStats( |
45 const GpuManagedMemoryStats& stats) { | 43 const GpuManagedMemoryStats& stats) { |
46 memory_manager_->SetClientStateManagedMemoryStats(this, stats); | 44 memory_manager_->SetClientStateManagedMemoryStats(this, stats); |
47 } | 45 } |
48 | 46 |
49 } // namespace content | 47 } // namespace content |
50 | |
51 #endif | |
OLD | NEW |