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 32345b728004ebb1ee017b1268b425e65143ed2d..2ef5fc2837b99852f28d1926a9ae6167335e2c9d 100644 |
--- a/content/browser/gpu/gpu_process_host.h |
+++ b/content/browser/gpu/gpu_process_host.h |
@@ -63,6 +63,8 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate, |
typedef base::Callback<void(const gfx::Size)> CreateImageCallback; |
+ typedef base::Closure CreateSurfaceTextureCallback; |
+ |
static bool gpu_enabled() { return gpu_enabled_; } |
// Creates a new GpuProcessHost or gets an existing one, resulting in the |
@@ -124,6 +126,12 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate, |
// Tells the GPU process to delete image. |
void DeleteImage(int client_id, int image_id, int sync_point); |
+ // Tells the GPU process to create a new surface texture using the given id. |
+ void CreateSurfaceTexture( |
+ int surface_texture_id, |
+ base::ProcessHandle process_handle, |
+ const CreateSurfaceTextureCallback& callback); |
+ |
// What kind of GPU process, e.g. sandboxed or unsandboxed. |
GpuProcessKind kind(); |
@@ -158,6 +166,7 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate, |
void OnCommandBufferCreated(const int32 route_id); |
void OnDestroyCommandBuffer(int32 surface_id); |
void OnImageCreated(const gfx::Size size); |
+ void OnSurfaceTextureCreated(); |
void OnDidCreateOffscreenContext(const GURL& url); |
void OnDidLoseContext(bool offscreen, |
gpu::error::ContextLostReason reason, |
@@ -205,6 +214,8 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate, |
// The pending create image requests we need to reply to. |
std::queue<CreateImageCallback> create_image_requests_; |
+ // The pending create surface texture requests we need to reply to. |
+ std::queue<CreateSurfaceTextureCallback> create_surface_texture_requests_; |
// Qeueud messages to send when the process launches. |
std::queue<IPC::Message*> queued_messages_; |