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

Unified Diff: cc/trees/layer_tree_host_single_thread_client.h

Issue 2444563002: cc: Remove "SwapBuffers" naming from LayerTreeHostSingleThreadClient (Closed)
Patch Set: Created 4 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: cc/trees/layer_tree_host_single_thread_client.h
diff --git a/cc/trees/layer_tree_host_single_thread_client.h b/cc/trees/layer_tree_host_single_thread_client.h
index 4403c50c71925adc0ef981fd5d6c83c0791f37ee..00cc3dbaec8874fe2fad1fdab9d7e94b85b839bd 100644
--- a/cc/trees/layer_tree_host_single_thread_client.h
+++ b/cc/trees/layer_tree_host_single_thread_client.h
@@ -15,15 +15,17 @@ class LayerTreeHostSingleThreadClient {
// delay for potential future frame.
virtual void RequestScheduleAnimation() {}
- // Called whenever the compositor posts a SwapBuffers (either full or
- // partial). After DidPostSwapBuffers(), exactly one of
- // DidReceiveCompositorFrameAck() or DidAbortSwapBuffers() will be called,
- // thus
- // these functions can be used to keep track of pending swap buffers calls for
- // rate limiting.
- virtual void DidPostSwapBuffers() = 0;
- virtual void DidReceiveCompositorFrameAck() = 0;
- virtual void DidAbortSwapBuffers() = 0;
+ // Called whenever the compositor submits a CompositorFrame. Afterward,
+ // LayerTreeHostClient::DidReceiveCompositorFrameAck() will be called once the
+ // display compositor/ finishes processing the frame. So these functions can
+ // be used to keep track of pending submitted CompositorFrames for rate
+ // limiting.
+ virtual void DidSubmitCompositorFrame() = 0;
+
+ // Called when the active CompositorFrameSink is lost and needs to be
+ // replaced. This allows the embedder to schedule a composite which will
+ // run the machinery to acquire a new CompositorFrameSink.
+ virtual void DidLoseCompositorFrameSink() = 0;
protected:
virtual ~LayerTreeHostSingleThreadClient() {}

Powered by Google App Engine
This is Rietveld 408576698