From fb246af3f30a1775ffbcf4bdcf6bb347cd5382d1 Mon Sep 17 00:00:00 2001 From: "ccameron@chromium.org" Date: Sat, 18 Aug 2012 03:11:41 +0000 Subject: Add GPU memory tab to the task manager. Each renderer process will have all of the resources that the GPU process has allocated on its behalf (including WebGL resources, compositor resources, and the backbuffer) included in its printed total. The GPU process will have the all resources currently allocated by the GPU process in its column. This will be approximately the sum of all other rows. The row for the GPU process is printed in ()s to draw attention to the fact that its size includes duplicates from other processes' sizes. I happy this UI scheme (having played with a few), but I'd wider feedback. Note that we do not account for swapchains or for backbuffers allocated by the browser process, so those allocations are not counted in the total. BUG=140157 Review URL: https://chromiumcodereview.appspot.com/10854076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152233 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/gpu_feature_checker.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chrome/browser/gpu_feature_checker.h') diff --git a/chrome/browser/gpu_feature_checker.h b/chrome/browser/gpu_feature_checker.h index dd54f32c..8e1d0ac 100644 --- a/chrome/browser/gpu_feature_checker.h +++ b/chrome/browser/gpu_feature_checker.h @@ -29,6 +29,9 @@ class GPUFeatureChecker : public base::RefCountedThreadSafe, // content::GpuDataManagerObserver virtual void OnGpuInfoUpdate() OVERRIDE; + virtual void OnVideoMemoryUsageStatsUpdate( + const content::GPUVideoMemoryUsageStats& video_memory_usage_stats) + OVERRIDE {} private: friend class base::RefCountedThreadSafe; -- cgit v1.1