summaryrefslogtreecommitdiffstats
path: root/content/renderer/gpu_channel_host.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/renderer/gpu_channel_host.h')
-rw-r--r--content/renderer/gpu_channel_host.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/content/renderer/gpu_channel_host.h b/content/renderer/gpu_channel_host.h
index 4e50881..ba7ec84 100644
--- a/content/renderer/gpu_channel_host.h
+++ b/content/renderer/gpu_channel_host.h
@@ -20,6 +20,7 @@
#include "ui/gfx/size.h"
class CommandBufferProxy;
+class GpuSurfaceProxy;
class GURL;
class GpuVideoServiceHost;
class TransportTextureService;
@@ -85,6 +86,12 @@ class GpuChannelHost : public IPC::Channel::Listener,
// Destroy a command buffer created by this channel.
void DestroyCommandBuffer(CommandBufferProxy* command_buffer);
+ // Create a surface in the GPU process. Returns null on failure.
+ GpuSurfaceProxy* CreateOffscreenSurface(const gfx::Size& size);
+
+ // Destroy a surface in the GPU process.
+ void DestroySurface(GpuSurfaceProxy* surface);
+
GpuVideoServiceHost* gpu_video_service_host() {
return gpu_video_service_host_.get();
}