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 #include "content/common/gpu/gpu_memory_manager.h" | 7 #include "content/common/gpu/gpu_memory_manager.h" |
8 | 8 |
9 namespace content { | 9 namespace content { |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 } | 24 } |
25 | 25 |
26 GpuMemoryManagerClientState::~GpuMemoryManagerClientState() { | 26 GpuMemoryManagerClientState::~GpuMemoryManagerClientState() { |
27 memory_manager_->OnDestroyClientState(this); | 27 memory_manager_->OnDestroyClientState(this); |
28 } | 28 } |
29 | 29 |
30 void GpuMemoryManagerClientState::SetVisible(bool visible) { | 30 void GpuMemoryManagerClientState::SetVisible(bool visible) { |
31 memory_manager_->SetClientStateVisible(this, visible); | 31 memory_manager_->SetClientStateVisible(this, visible); |
32 } | 32 } |
33 | 33 |
34 void GpuMemoryManagerClientState::SetManagedMemoryStats( | |
35 const gpu::ManagedMemoryStats& stats) { | |
36 memory_manager_->SetClientStateManagedMemoryStats(this, stats); | |
37 } | |
38 | |
39 } // namespace content | 34 } // namespace content |
OLD | NEW |