summaryrefslogtreecommitdiffstats
path: root/content/gpu
diff options
context:
space:
mode:
authorccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-19 21:44:37 +0000
committerccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-19 21:44:37 +0000
commit879c7dfd38d69bc3cc3b4a9e7f3d8cce0743c657 (patch)
tree01961d670df2f476b0bc9a0181caa17176c3466b /content/gpu
parent3c1efb517d807200d18d2a909452319b3cb37b58 (diff)
downloadchromium_src-879c7dfd38d69bc3cc3b4a9e7f3d8cce0743c657.zip
chromium_src-879c7dfd38d69bc3cc3b4a9e7f3d8cce0743c657.tar.gz
chromium_src-879c7dfd38d69bc3cc3b4a9e7f3d8cce0743c657.tar.bz2
Use a queue instead of timestamps to sort most-recently-used clients
Use a most-recently-used queue to sort the GPU memory manager clients. Previously we used timestamps, but this had issues with unit testing because of timer resolution. Maintain three lists of clients -- visible, non-visible, and non-surface clients. The visible and non-visible lists are in most-recently-used order. This removes the need to create a separate vector of the clients and sort that vector at every manage call. Store whether or not a share group has any non-hibernated clients directly in the share group's memory tracking group, so we don't have to construct an explicit set of the non-hibernated clients. BUG=164947 Review URL: https://chromiumcodereview.appspot.com/11645013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173999 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/gpu')
-rw-r--r--content/gpu/gpu_child_thread.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
index 4e0816b..e8ec018 100644
--- a/content/gpu/gpu_child_thread.cc
+++ b/content/gpu/gpu_child_thread.cc
@@ -190,7 +190,7 @@ void GpuChildThread::OnGetVideoMemoryUsageStats() {
GPUVideoMemoryUsageStats video_memory_usage_stats;
if (gpu_channel_manager_.get())
gpu_channel_manager_->gpu_memory_manager()->GetVideoMemoryUsageStats(
- video_memory_usage_stats);
+ &video_memory_usage_stats);
Send(new GpuHostMsg_VideoMemoryUsageStats(video_memory_usage_stats));
}