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 66964c9133ebed3c81bb0c589a7da259f9589e70..a9bf858ab670bb0c2dc473b17c814e17b18303b2 100644 |
--- a/content/common/gpu/texture_image_transport_surface.h |
+++ b/content/common/gpu/texture_image_transport_surface.h |
@@ -47,6 +47,7 @@ class TextureImageTransportSurface : |
protected: |
// ImageTransportSurface implementation. |
virtual void OnBufferPresented( |
+ bool presented, |
uint32 sync_point) OVERRIDE; |
virtual void OnResizeViewACK() OVERRIDE; |
virtual void OnSetFrontSurfaceIsProtected( |
@@ -82,7 +83,7 @@ class TextureImageTransportSurface : |
void ReleaseTexture(int id); |
void ReleaseParentStub(); |
void AdjustFrontBufferAllocation(); |
- void BufferPresentedImpl(); |
+ void BufferPresentedImpl(bool presented); |
int front() const { return front_; } |
int back() const { return 1 - front_; } |
@@ -121,6 +122,10 @@ class TextureImageTransportSurface : |
// Whether we unscheduled command buffer because of pending SwapBuffers. |
bool did_unschedule_; |
+ // Whether or not the buffer flip went through browser side on the last |
+ // swap or post sub buffer. |
+ bool did_flip_; |
+ |
DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface); |
}; |