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

Unified Diff: content/public/browser/android/compositor_client.h

Issue 2716193002: android: Add draw completion for CompositorView (Closed)
Patch Set: another fix, doing a bad job rebasing here.. Created 3 years, 10 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/public/browser/android/compositor_client.h
diff --git a/content/public/browser/android/compositor_client.h b/content/public/browser/android/compositor_client.h
index c6c308d5697715fe75bae67ab76ac588f58d7a67..bb03a251627771b90e9b613f9ab4c0435a91e757 100644
--- a/content/public/browser/android/compositor_client.h
+++ b/content/public/browser/android/compositor_client.h
@@ -15,9 +15,14 @@ class CONTENT_EXPORT CompositorClient {
// Gives the client a chance to update the layer tree host before compositing.
virtual void UpdateLayerTreeHost() {}
- // The compositor has completed swapping a frame.
+ // The compositor has completed swapping a frame. This is a subset of
+ // DidSwapBuffers and corresponds only to frames where Compositor submits a
+ // new frame.
virtual void DidSwapFrame(int pending_frames) {}
+ // This is called on all swap buffers, regardless of cause.
+ virtual void DidSwapBuffers() {}
+
protected:
CompositorClient() {}
virtual ~CompositorClient() {}

Powered by Google App Engine
This is Rietveld 408576698