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 19ed88c32fb7615465c99c72611cf0ac3d800e15..fd49508906bd36fc51f8a9b114821f4f66c0ed08 100644 |
--- a/content/common/gpu/texture_image_transport_surface.h |
+++ b/content/common/gpu/texture_image_transport_surface.h |
@@ -27,6 +27,7 @@ class TextureImageTransportSurface : |
// gfx::GLSurface implementation. |
virtual bool Initialize() OVERRIDE; |
virtual void Destroy() OVERRIDE; |
+ virtual bool DeferDraws() OVERRIDE; |
virtual bool Resize(const gfx::Size& size) OVERRIDE; |
virtual bool IsOffscreen() OVERRIDE; |
virtual bool SwapBuffers() OVERRIDE; |
@@ -114,6 +115,12 @@ class TextureImageTransportSurface : |
// the actual rendering is always redirected to an FBO. |
scoped_refptr<GLSurface> surface_; |
+ // Whether a SwapBuffers is pending. |
+ bool is_swap_buffers_pending_; |
+ |
+ // Whether we unscheduled command buffer because of pending SwapBuffers. |
+ bool did_unschedule_; |
+ |
DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface); |
}; |