Chromium Code Reviews| Index: 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 079b549a597bf93024f3e52ca2ee6b923cf0251e..9be34bad42f4615fdb9b9c0b65478b88e6395238 100644 |
| --- a/content/browser/gpu/gpu_process_host.h |
| +++ b/content/browser/gpu/gpu_process_host.h |
| @@ -65,7 +65,7 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate, |
| typedef base::Callback<void(bool)> CreateCommandBufferCallback; |
| - typedef base::Callback<void(const gfx::Size)> CreateImageCallback; |
| + typedef base::Callback<void(bool)> CreateImageCallback; |
| typedef base::Callback<void(const gfx::GpuMemoryBufferHandle& handle)> |
| CreateGpuMemoryBufferCallback; |
| @@ -122,9 +122,11 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate, |
| int route_id, |
| const CreateCommandBufferCallback& callback); |
| - // Tells the GPU process to create a new image using the given window. |
| + // Tells the GPU process to create a new image using the given handle. |
| void CreateImage( |
| - gfx::PluginWindowHandle window, |
| + const gfx::GpuMemoryBufferHandle& handle, |
| + const gfx::Size& size, |
| + unsigned internalformat, |
| int client_id, |
|
alexst (slow to review)
2014/06/12 22:29:22
I don't know that it's super important for this pa
reveman
2014/06/13 16:45:11
We could use GpuMemoryBufferId::secondary_id inste
|
| int image_id, |
| const CreateImageCallback& callback); |
| @@ -173,7 +175,7 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate, |
| void OnChannelEstablished(const IPC::ChannelHandle& channel_handle); |
| void OnCommandBufferCreated(bool succeeded); |
| void OnDestroyCommandBuffer(int32 surface_id); |
| - void OnImageCreated(const gfx::Size size); |
| + void OnImageCreated(bool succeeded); |
| void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle); |
| void OnDidCreateOffscreenContext(const GURL& url); |
| void OnDidLoseContext(bool offscreen, |