diff options
author | vangelis@chromium.org <vangelis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-22 03:20:09 +0000 |
---|---|---|
committer | vangelis@chromium.org <vangelis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-22 03:20:09 +0000 |
commit | 557d0b9fc260031413aa035d7bf923aa54d97352 (patch) | |
tree | 425dddfb8a8b6fa353a2d49c477eba30972ea4ff /content/browser/gpu/gpu_surface_tracker.h | |
parent | 33aea5c515a1164063b155309d3704aa1310d705 (diff) | |
download | chromium_src-557d0b9fc260031413aa035d7bf923aa54d97352.zip chromium_src-557d0b9fc260031413aa035d7bf923aa54d97352.tar.gz chromium_src-557d0b9fc260031413aa035d7bf923aa54d97352.tar.bz2 |
Add a histogram at GPU process exit time to record the number of surfaces the
GPU process was rendering to. It should correspond to the number of tabs with
accelereted content.
BUG=158469
Review URL: https://chromiumcodereview.appspot.com/11415108
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169205 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/gpu/gpu_surface_tracker.h')
-rw-r--r-- | content/browser/gpu/gpu_surface_tracker.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/content/browser/gpu/gpu_surface_tracker.h b/content/browser/gpu/gpu_surface_tracker.h index cf36b72..cc5ac39 100644 --- a/content/browser/gpu/gpu_surface_tracker.h +++ b/content/browser/gpu/gpu_surface_tracker.h @@ -72,6 +72,9 @@ class GpuSurfaceTracker : public GpuSurfaceLookup { // does not exist. This is an O(log N) lookup. gfx::PluginWindowHandle GetSurfaceWindowHandle(int surface_id); + // Returns the number of surfaces currently registered with the tracker. + std::size_t GetSurfaceCount(); + // Gets the global instance of the surface tracker. Identical to Get(), but // named that way for the implementation of Singleton. static GpuSurfaceTracker* GetInstance(); |