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..e2567c648e7495d029f2f9d17af3e1b812c9ae89 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, int32 sync_point) = 0; |
}; |
// Encapsulates an IPC channel between the client and one GPU process. |