Index: content/common/gpu/client/gpu_channel_host.h |
diff --git a/content/common/gpu/client/gpu_channel_host.h b/content/common/gpu/client/gpu_channel_host.h |
index 2d10724ec1647f8eaa8c2797210827685cd9a62a..ba42f452b0ebc2fa9c923c4ded1177d937398345 100644 |
--- a/content/common/gpu/client/gpu_channel_host.h |
+++ b/content/common/gpu/client/gpu_channel_host.h |
@@ -56,6 +56,8 @@ struct GpuListenerInfo { |
class CONTENT_EXPORT GpuChannelHostFactory { |
public: |
+ typedef base::Callback<void(const gfx::Size)> CreateImageCallback; |
+ |
virtual ~GpuChannelHostFactory() {} |
virtual bool IsMainThread() = 0; |
@@ -68,6 +70,11 @@ class CONTENT_EXPORT GpuChannelHostFactory { |
int32 surface_id, const GPUCreateCommandBufferConfig& init_params) = 0; |
virtual GpuChannelHost* EstablishGpuChannelSync( |
content::CauseForGpuLaunch) = 0; |
+ virtual void CreateImage( |
+ gfx::PluginWindowHandle window, |
+ int32 image_id, |
+ const CreateImageCallback& callback) = 0; |
+ virtual void DeleteImage(int32 image_id) = 0; |
}; |
// Encapsulates an IPC channel between the client and one GPU process. |