Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Unified Diff: content/common/gpu/texture_image_transport_surface.h

Issue 10388010: Decoupling backbuffer allocation suggestion from frontbuffer allocation suggestion. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698