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

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

Issue 10690168: Aura: Resize locks with --ui-enable-threaded-compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved needing to kick a frame logic up to RWHVA from Compositor. Created 8 years, 2 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 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);
};

Powered by Google App Engine
This is Rietveld 408576698