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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.h

Issue 10453117: Tighter sync and faster ACK on SwapBuffers/PostSubBuffers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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/browser/renderer_host/render_widget_host_view_aura.h
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.h b/content/browser/renderer_host/render_widget_host_view_aura.h
index 0e3fa6effc340213604fa905d37b063198d5935f..efed7dbdaa546fd70c4713241143551f66a5bc60 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.h
+++ b/content/browser/renderer_host/render_widget_host_view_aura.h
@@ -184,6 +184,7 @@ class RenderWidgetHostViewAura
// Overridden from ui::CompositorObserver:
virtual void OnCompositingStarted(ui::Compositor* compositor) OVERRIDE;
+ virtual void OnCompositingWillEnd(ui::Compositor* compositor) OVERRIDE;
virtual void OnCompositingEnded(ui::Compositor* compositor) OVERRIDE;
// Overridden from ImageTransportFactoryObserver:
@@ -212,8 +213,10 @@ class RenderWidgetHostViewAura
// moved to center.
bool ShouldMoveToCenter();
- // Run the compositing callbacks.
- void RunCompositingCallbacks();
+ // If compositor == NULL, run all the compositing callbacks. Otherwise,
+ // only run the callbacks that were waiting for
+ // compositor->last_will_end_id().
+ void RunCompositingCallbacks(ui::Compositor* compositor);
// Called when window_ is removed from the window tree.
void RemovingFromRootWindow();
@@ -266,7 +269,10 @@ class RenderWidgetHostViewAura
// Current tooltip text.
string16 tooltip_;
- std::vector< base::Callback<void(void)> > on_compositing_ended_callbacks_;
+ // Callback and the number of the will end composite that it should run on.
+ typedef std::pair<base::Callback<void(void)>, int>
+ CallbackAndCompositeNumber;
+ std::vector<CallbackAndCompositeNumber> on_compositing_will_end_callbacks_;
std::map<uint64, scoped_refptr<ImageTransportClient> >
image_transport_clients_;

Powered by Google App Engine
This is Rietveld 408576698