From fc4ed09819d4252135dd62470c34ed38e436cf2e Mon Sep 17 00:00:00 2001 From: "jhawkins@chromium.org" <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> Date: Tue, 21 Feb 2012 19:46:55 +0000 Subject: 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 --- content/browser/gpu/gpu_process_host.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'content/browser/gpu/gpu_process_host.h') 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, -- cgit v1.1