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

Unified Diff: components/exo/surface_unittest.cc

Issue 2786643002: [exo]CompositorFrameSinkHolder calls WillDraw in DidReceiveCompositorFrameAck (Closed)
Patch Set: Address A Comment Created 3 years, 8 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 | « components/exo/surface.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/surface_unittest.cc
diff --git a/components/exo/surface_unittest.cc b/components/exo/surface_unittest.cc
index cd5ddb3863728c04dc62bbdbae86114447249c65..1eb280384a911471422f8c4c89eb083b1161bbbb 100644
--- a/components/exo/surface_unittest.cc
+++ b/components/exo/surface_unittest.cc
@@ -329,8 +329,9 @@ TEST_F(SurfaceTest, SendsBeginFrameAcks) {
surface->Commit(); // Move callback from pending callbacks to current ones.
RunAllPendingInMessageLoop();
- // Surface should add itself as observer during WillDraw().
- surface->WillDraw();
+ // Surface should add itself as observer during
+ // DidReceiveCompositorFrameAck().
+ surface->DidReceiveCompositorFrameAck();
EXPECT_EQ(1u, source.num_observers());
cc::BeginFrameArgs args(source.CreateBeginFrameArgs(BEGINFRAME_FROM_HERE));
« no previous file with comments | « components/exo/surface.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698