Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: content/common/gpu/gpu_memory_manager_client.cc

Issue 11944002: Make names consistent in GpuMemoryManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test build Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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) 7 #if defined(ENABLE_GPU)
8 8
9 #include "content/common/gpu/gpu_memory_manager.h" 9 #include "content/common/gpu/gpu_memory_manager.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 GpuMemoryManagerClientState::GpuMemoryManagerClientState( 13 GpuMemoryManagerClientState::GpuMemoryManagerClientState(
14 GpuMemoryManager* memory_manager, 14 GpuMemoryManager* memory_manager,
15 GpuMemoryManagerClient* client, 15 GpuMemoryManagerClient* client,
16 GpuMemoryTrackingGroup* tracking_group, 16 GpuMemoryTrackingGroup* tracking_group,
17 bool has_surface, 17 bool has_surface,
18 bool visible) 18 bool visible)
19 : memory_manager_(memory_manager), 19 : memory_manager_(memory_manager),
20 client_(client), 20 client_(client),
21 tracking_group_(tracking_group), 21 tracking_group_(tracking_group),
22 has_surface_(has_surface), 22 has_surface_(has_surface),
23 visible_(visible), 23 visible_(visible),
24 list_iterator_valid_(false), 24 list_iterator_valid_(false),
25 bytes_nice_to_have_limit_low_(0), 25 bytes_nicetohave_limit_low_(0),
26 bytes_nice_to_have_limit_high_(0), 26 bytes_nicetohave_limit_high_(0),
27 bytes_budget_when_visible_(0), 27 bytes_allocation_when_visible_(0),
28 bytes_budget_when_backgrounded_(0), 28 bytes_allocation_when_nonvisible_(0),
29 hibernated_(false) { 29 hibernated_(false) {
30 } 30 }
31 31
32 GpuMemoryManagerClientState::~GpuMemoryManagerClientState() { 32 GpuMemoryManagerClientState::~GpuMemoryManagerClientState() {
33 memory_manager_->OnDestroyClientState(this); 33 memory_manager_->OnDestroyClientState(this);
34 } 34 }
35 35
36 void GpuMemoryManagerClientState::SetVisible(bool visible) { 36 void GpuMemoryManagerClientState::SetVisible(bool visible) {
37 memory_manager_->SetClientStateVisible(this, visible); 37 memory_manager_->SetClientStateVisible(this, visible);
38 } 38 }
39 39
40 void GpuMemoryManagerClientState::SetManagedMemoryStats( 40 void GpuMemoryManagerClientState::SetManagedMemoryStats(
41 const GpuManagedMemoryStats& stats) { 41 const GpuManagedMemoryStats& stats) {
42 memory_manager_->SetClientStateManagedMemoryStats(this, stats); 42 memory_manager_->SetClientStateManagedMemoryStats(this, stats);
43 } 43 }
44 44
45 } // namespace content 45 } // namespace content
46 46
47 #endif 47 #endif
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_memory_manager_client.h ('k') | content/common/gpu/gpu_memory_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698