diff options
author | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-07 20:01:49 +0000 |
---|---|---|
committer | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-07 20:01:49 +0000 |
commit | 38f4e2efd1e3105160f41669606580d17a85121f (patch) | |
tree | 76a470d99ea438ec0a5c2d28f3485f8d92b9e9f6 /content/browser/gpu/gpu_process_host.h | |
parent | a648ea759bee8e7adf2d2560c6a414b16cd05fd1 (diff) | |
download | chromium_src-38f4e2efd1e3105160f41669606580d17a85121f.zip chromium_src-38f4e2efd1e3105160f41669606580d17a85121f.tar.gz chromium_src-38f4e2efd1e3105160f41669606580d17a85121f.tar.bz2 |
Windows: Limit D3D devices to one per Present Thread (4 max).
Instead of one D3D device per unsuspended tab, there is one D3D device per Present Thread plus one additional swap chain per unsuspended tab. Also, the swap chains are completely destroyed when a tab is suspended, rather than resizing the device swap chain to 1 x 1.
Specified flag on D3D device creation to tell it not to create worker threads to evaluate vertex shaders because we aren't using vertex shaders here but the devices appeared to create some (actually lots) anyway.
Sent Suspend notification directly from browser IO thread to present thread rather than via UI thread so tehy don't get unnecessarily held up if the UI thread is busy.
BUG=116175,115707
Review URL: https://chromiumcodereview.appspot.com/9565043
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125439 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/gpu/gpu_process_host.h')
-rw-r--r-- | content/browser/gpu/gpu_process_host.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/content/browser/gpu/gpu_process_host.h b/content/browser/gpu/gpu_process_host.h index 67b6fed..6443dd3 100644 --- a/content/browser/gpu/gpu_process_host.h +++ b/content/browser/gpu/gpu_process_host.h @@ -115,6 +115,7 @@ class GpuProcessHost : public content::BrowserChildProcessHostDelegate, const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params); void OnAcceleratedSurfacePostSubBuffer( const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params); + void OnAcceleratedSurfaceSuspend(int32 surface_id); #endif bool LaunchGpuProcess(const std::string& channel_id); |