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

Unified Diff: cc/test/fake_output_surface.cc

Issue 15836005: cc: Emulate BeginFrame in OutputSurfaces that don't support it natively (Closed) Base URL: http://git.chromium.org/chromium/src.git@nofrc
Patch Set: Fix checkerboard; Track pending swaps; Created 7 years, 6 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/test/fake_output_surface.cc
diff --git a/cc/test/fake_output_surface.cc b/cc/test/fake_output_surface.cc
index 6c5bc9f849d0fc95ec0b7c4637aeb04c4c35a036..f5b10a3d4210544f53f60366d4c7f93f915adacb 100644
--- a/cc/test/fake_output_surface.cc
+++ b/cc/test/fake_output_surface.cc
@@ -38,7 +38,8 @@ void FakeOutputSurface::SendFrameToParentCompositor(
++num_sent_frames_;
base::MessageLoop::current()->PostTask(
FROM_HERE, base::Bind(&FakeOutputSurface::SendFrameAck,
- weak_ptr_factory_.GetWeakPtr()));
+ weak_ptr_factsory_.GetWeakPtr()));
+ DidSwapBuffers();
}
void FakeOutputSurface::SetNeedsBeginFrame(bool enable) {
@@ -46,7 +47,7 @@ void FakeOutputSurface::SetNeedsBeginFrame(bool enable) {
}
void FakeOutputSurface::BeginFrame(base::TimeTicks frame_time) {
- client_->BeginFrame(frame_time);
+ BeginFrame(frame_time);
}
bool FakeOutputSurface::ForcedDrawToSoftwareDevice() const {
@@ -55,7 +56,7 @@ bool FakeOutputSurface::ForcedDrawToSoftwareDevice() const {
void FakeOutputSurface::SendFrameAck() {
CompositorFrameAck ack;
- client_->OnSendFrameToParentCompositorAck(ack);
+ OnSendFrameToParentCompositorAck(ack);
}
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698