summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host/render_widget_host_view_mac.mm
diff options
context:
space:
mode:
authorscheib@chromium.org <scheib@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-06 00:10:50 +0000
committerscheib@chromium.org <scheib@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-06 00:10:50 +0000
commit7f3a2cfa5bd4f04195c8eb044258f4c7cba5141a (patch)
treec7bbd990b886262b380667622e2bbe3ce3a04c49 /chrome/browser/renderer_host/render_widget_host_view_mac.mm
parentb184ddebb9646658091716dc330a0098a7e23800 (diff)
downloadchromium_src-7f3a2cfa5bd4f04195c8eb044258f4c7cba5141a.zip
chromium_src-7f3a2cfa5bd4f04195c8eb044258f4c7cba5141a.tar.gz
chromium_src-7f3a2cfa5bd4f04195c8eb044258f4c7cba5141a.tar.bz2
Histogram added: GPU.GPUProcessLaunchCause
- This will help distinguish why the GPU process was started. Also, corrected code in "about:" page parsing to not spawn the GPU process unless a GPU related page is being requested. BUG=78361 TEST=about:histograms includes GPU.GPUProcessLaunchCause after GPU use (e.g. about:gpu). Review URL: http://codereview.chromium.org/6794002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80555 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/render_widget_host_view_mac.mm')
-rw-r--r--chrome/browser/renderer_host/render_widget_host_view_mac.mm4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/renderer_host/render_widget_host_view_mac.mm b/chrome/browser/renderer_host/render_widget_host_view_mac.mm
index 2dbcf68..0954456 100644
--- a/chrome/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/chrome/browser/renderer_host/render_widget_host_view_mac.mm
@@ -1101,7 +1101,9 @@ void RenderWidgetHostViewMac::DeallocFakePluginWindowHandle(
if (render_widget_host_ &&
plugin_container_manager_.IsRootContainer(window)) {
GpuProcessHostUIShim* ui_shim = GpuProcessHostUIShim::GetForRenderer(
- render_widget_host_->process()->id());
+ render_widget_host_->process()->id(),
+ content::
+ CAUSE_FOR_GPU_LAUNCH_RENDERWIDGETHOSTVIEWMAC_DEALLOCFAKEPLUGINWINDOWHANDLE);
if (ui_shim) {
ui_shim->DidDestroyAcceleratedSurface(
render_widget_host_->process()->id(),