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

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

Issue 1420533009: Cleanup GpuMemoryManager and helpers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more cleanup. Created 5 years, 1 month 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
OLDNEW
(Empty)
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.
4
5 #include "content/common/gpu/gpu_memory_manager_client.h"
6
7 #include "content/common/gpu/gpu_memory_manager.h"
8
9 namespace content {
10
11 GpuMemoryManagerClientState::GpuMemoryManagerClientState(
12 GpuMemoryManager* memory_manager,
13 GpuMemoryManagerClient* client,
14 GpuMemoryTrackingGroup* tracking_group,
15 bool has_surface,
16 bool visible)
17 : memory_manager_(memory_manager),
18 client_(client),
19 tracking_group_(tracking_group),
20 has_surface_(has_surface),
21 visible_(visible),
22 list_iterator_valid_(false),
23 hibernated_(false) {
24 }
25
26 GpuMemoryManagerClientState::~GpuMemoryManagerClientState() {
27 memory_manager_->OnDestroyClientState(this);
28 }
29
30 void GpuMemoryManagerClientState::SetVisible(bool visible) {
31 memory_manager_->SetClientStateVisible(this, visible);
32 }
33
34 } // namespace content
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