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

Unified Diff: cc/test/test_compositor_frame_sink.cc

Issue 2409923002: cc: Rename SwapBuffers on CompositorFrameSink to SubmitCompositorFrame (Closed)
Patch Set: swap-to-submit: rebase 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
« no previous file with comments | « cc/test/test_compositor_frame_sink.h ('k') | cc/test/test_hooks.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_compositor_frame_sink.cc
diff --git a/cc/test/test_compositor_frame_sink.cc b/cc/test/test_compositor_frame_sink.cc
index 0974cde40fde2bbbcc626caaba7f4b6c6ec9a795..5d79d61031855a4aa5b02e50d8223a69bf564a73 100644
--- a/cc/test/test_compositor_frame_sink.cc
+++ b/cc/test/test_compositor_frame_sink.cc
@@ -117,7 +117,7 @@ void TestCompositorFrameSink::DetachFromClient() {
CompositorFrameSink::DetachFromClient();
}
-void TestCompositorFrameSink::SwapBuffers(CompositorFrame frame) {
+void TestCompositorFrameSink::SubmitCompositorFrame(CompositorFrame frame) {
if (test_client_)
test_client_->DisplayReceivedCompositorFrame(frame);
@@ -164,9 +164,9 @@ void TestCompositorFrameSink::SwapBuffers(CompositorFrame frame) {
}
void TestCompositorFrameSink::DidDrawCallback() {
- // This is the frame ack to unthrottle the next frame, not actually a notice
- // that drawing is done.
- client_->DidSwapBuffersComplete();
+ // This is to unthrottle the next frame, not actually a notice that drawing is
+ // done.
+ client_->DidReceiveCompositorFrameAck();
}
void TestCompositorFrameSink::ForceReclaimResources() {
« no previous file with comments | « cc/test/test_compositor_frame_sink.h ('k') | cc/test/test_hooks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698