Index: content/common/gpu/texture_image_transport_surface.h |
diff --git a/content/common/gpu/texture_image_transport_surface.h b/content/common/gpu/texture_image_transport_surface.h |
index 4d77725ce87de4dc4f301a03f3700b3197564791..3a3001a8b6e89de4fd6c317fe2beca191d2b069a 100644 |
--- a/content/common/gpu/texture_image_transport_surface.h |
+++ b/content/common/gpu/texture_image_transport_surface.h |
@@ -35,7 +35,8 @@ class TextureImageTransportSurface : |
virtual unsigned int GetBackingFrameBufferObject() OVERRIDE; |
virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE; |
virtual bool OnMakeCurrent(gfx::GLContext* context) OVERRIDE; |
- virtual void SetBufferAllocation(BufferAllocationState state) OVERRIDE; |
+ virtual void SetBackbufferAllocation(bool allocated) OVERRIDE; |
+ virtual void SetFrontbufferAllocation(bool allocated) OVERRIDE; |
virtual void* GetShareHandle() OVERRIDE; |
virtual void* GetDisplay() OVERRIDE; |
virtual void* GetConfig() OVERRIDE; |
@@ -77,6 +78,7 @@ class TextureImageTransportSurface : |
void AttachBackTextureToFBO(); |
void ReleaseParentStub(); |
int back() const { return 1 - front_; } |
+ void AdjustBufferAllocations(); |
// The framebuffer that represents this surface (service id). Allocated lazily |
// in OnMakeCurrent. |
@@ -93,6 +95,9 @@ class TextureImageTransportSurface : |
// Whether or not the command buffer stub has been destroyed. |
bool stub_destroyed_; |
+ bool backbuffer_suggested_allocation_; |
+ bool frontbuffer_suggested_allocation_; |
+ |
scoped_ptr<ImageTransportHelper> helper_; |
GpuCommandBufferStub* parent_stub_; |