Index: chrome/browser/renderer_host/accelerated_surface_container_touch.h |
diff --git a/chrome/browser/renderer_host/accelerated_surface_container_touch.h b/chrome/browser/renderer_host/accelerated_surface_container_touch.h |
index 4303cd87a44d835d1b47f1b652613e0f977827c9..9855af7a77c7301b4fc3abfc13cf7d7c555680d1 100644 |
--- a/chrome/browser/renderer_host/accelerated_surface_container_touch.h |
+++ b/chrome/browser/renderer_host/accelerated_surface_container_touch.h |
@@ -8,6 +8,7 @@ |
#include "base/basictypes.h" |
#include "ui/gfx/compositor/compositor_gl.h" |
+#include "ui/gfx/surface/transport_dib.h" |
// Helper class for storing image data from the GPU process renderered |
// on behalf of the RWHVV. It assumes that GL context that will display |
@@ -17,17 +18,26 @@ class AcceleratedSurfaceContainerTouch : public ui::TextureGL { |
public: |
static AcceleratedSurfaceContainerTouch* CreateAcceleratedSurfaceContainer( |
const gfx::Size& size, |
- uint64 surface_handle); |
+ uint64 surface_id); |
// TextureGL implementation |
virtual void SetCanvas(const SkCanvas& canvas, |
const gfx::Point& origin, |
const gfx::Size& overall_size) OVERRIDE; |
+ virtual uint64 id() const; |
+ |
+ // Some implementations of this class use shared memory, this the handle |
+ // to the shared buffer, which is part of the surface container. |
+ virtual TransportDIB::Handle handle() const; |
+ |
protected: |
- explicit AcceleratedSurfaceContainerTouch(const gfx::Size& size); |
+ explicit AcceleratedSurfaceContainerTouch(const gfx::Size& size, |
+ uint64 surface_id); |
private: |
+ uint64 id_; |
jonathan.backer
2011/09/20 15:16:29
Nuke this?
|
+ |
DISALLOW_COPY_AND_ASSIGN(AcceleratedSurfaceContainerTouch); |
}; |