diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-21 19:46:55 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-21 19:46:55 +0000 |
commit | fc4ed09819d4252135dd62470c34ed38e436cf2e (patch) | |
tree | 8ae9665e23c64d7d794b0744bff0efe9f7bacc2a /content/browser/gpu/gpu_process_host.h | |
parent | 4ea8786e0ff57ca98af4e508e241d646fff025c1 (diff) | |
download | chromium_src-fc4ed09819d4252135dd62470c34ed38e436cf2e.zip chromium_src-fc4ed09819d4252135dd62470c34ed38e436cf2e.tar.gz chromium_src-fc4ed09819d4252135dd62470c34ed38e436cf2e.tar.bz2 |
Coverity: Fix pass-by-values.
CID_COUNT=7
CID=103317,103318,103319,103320,103321,103322,103323
BUG=none
TEST=none
R=groby
Review URL: https://chromiumcodereview.appspot.com/9414033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122853 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 | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/content/browser/gpu/gpu_process_host.h b/content/browser/gpu/gpu_process_host.h index 30a7dcf..dfbb75e 100644 --- a/content/browser/gpu/gpu_process_host.h +++ b/content/browser/gpu/gpu_process_host.h @@ -29,6 +29,13 @@ class GpuProcessHost : public content::BrowserChildProcessHostDelegate, public IPC::Message::Sender, public base::NonThreadSafe { public: + typedef base::Callback<void(const IPC::ChannelHandle&, + base::ProcessHandle, + const content::GPUInfo&)> + EstablishChannelCallback; + + typedef base::Callback<void(int32)> CreateCommandBufferCallback; + static bool gpu_enabled() { return gpu_enabled_; } // Creates a new GpuProcessHost or gets one for a particular client, resulting @@ -51,26 +58,19 @@ class GpuProcessHost : public content::BrowserChildProcessHostDelegate, static GpuProcessHost* FromID(int host_id); int host_id() const { return host_id_; } - // IPC::Message::Sender implementation: + // IPC::Message::Sender implementation. virtual bool Send(IPC::Message* msg) OVERRIDE; - typedef base::Callback<void(const IPC::ChannelHandle&, - base::ProcessHandle, - const content::GPUInfo&)> - EstablishChannelCallback; - // Tells the GPU process to create a new channel for communication with a // client. Once the GPU process responds asynchronously with the IPC handle // and GPUInfo, we call the callback. void EstablishGpuChannel( int client_id, const EstablishChannelCallback& callback); - typedef base::Callback<void(int32)> CreateCommandBufferCallback; - // Tells the GPU process to create a new command buffer that draws into the // given surface. void CreateViewCommandBuffer( - gfx::GLSurfaceHandle compositing_surface, + const gfx::GLSurfaceHandle& compositing_surface, int surface_id, int client_id, const GPUCreateCommandBufferConfig& init_params, |