Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / content / common / gpu / client / gpu_memory_buffer_factory_host.h
index 9e616e2..827308e 100644 (file)
@@ -7,10 +7,10 @@
 
 #include "base/callback.h"
 #include "content/common/content_export.h"
+#include "ui/gfx/gpu_memory_buffer.h"
 
 namespace gfx {
 class Size;
-struct GpuMemoryBufferHandle;
 }
 
 namespace content {
@@ -23,12 +23,16 @@ class CONTENT_EXPORT GpuMemoryBufferFactoryHost {
   static GpuMemoryBufferFactoryHost* GetInstance();
 
   virtual void CreateGpuMemoryBuffer(
-      const gfx::GpuMemoryBufferHandle& handle,
+      gfx::GpuMemoryBufferType type,
+      gfx::GpuMemoryBufferId id,
       const gfx::Size& size,
-      unsigned internalformat,
-      unsigned usage,
+      gfx::GpuMemoryBuffer::Format format,
+      gfx::GpuMemoryBuffer::Usage usage,
+      int client_id,
       const CreateGpuMemoryBufferCallback& callback) = 0;
-  virtual void DestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle,
+  virtual void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferType type,
+                                      gfx::GpuMemoryBufferId id,
+                                      int client_id,
                                       int32 sync_point) = 0;
 
  protected: