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 2779d8ad4af3f17e6f0097812ac14d4a8f6a1001..66964c9133ebed3c81bb0c589a7da259f9589e70 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); |
}; |