Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / content / common / gpu / stream_texture_android.h
index 746ad59..0ca2951 100644 (file)
@@ -22,8 +22,9 @@ class StreamTexture : public gfx::GLImage,
                       public IPC::Listener,
                       public GpuCommandBufferStub::DestructionObserver {
  public:
-  static int32 Create(GpuCommandBufferStub* owner_stub,
-                      uint32 client_texture_id);
+  static bool Create(GpuCommandBufferStub* owner_stub,
+                     uint32 client_texture_id,
+                     int stream_id);
 
  private:
   StreamTexture(GpuCommandBufferStub* owner_stub,
@@ -32,10 +33,20 @@ class StreamTexture : public gfx::GLImage,
   virtual ~StreamTexture();
 
   // gfx::GLImage implementation:
-  virtual void Destroy() OVERRIDE;
+  virtual void Destroy(bool have_context) OVERRIDE;
   virtual gfx::Size GetSize() OVERRIDE;
+  virtual bool BindTexImage(unsigned target) OVERRIDE;
+  virtual void ReleaseTexImage(unsigned target) OVERRIDE;
+  virtual bool CopyTexImage(unsigned target) OVERRIDE;
   virtual void WillUseTexImage() OVERRIDE;
   virtual void DidUseTexImage() OVERRIDE {}
+  virtual void WillModifyTexImage() OVERRIDE {}
+  virtual void DidModifyTexImage() OVERRIDE {}
+  virtual bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
+                                    int z_order,
+                                    gfx::OverlayTransform transform,
+                                    const gfx::Rect& bounds_rect,
+                                    const gfx::RectF& crop_rect) OVERRIDE;
 
   // GpuCommandBufferStub::DestructionObserver implementation.
   virtual void OnWillDestroyStub() OVERRIDE;