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

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: Ignore last patch set: bad upload. 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..32a9553a9168869cb3fe817af23fb37648d1ab7f 100644
--- a/cc/test/fake_output_surface.cc
+++ b/cc/test/fake_output_surface.cc
@@ -38,15 +38,17 @@ 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) {
needs_begin_frame_ = enable;
+ OutputSurface::SetNeedsBeginFrame(enable);
}
void FakeOutputSurface::BeginFrame(base::TimeTicks frame_time) {
- client_->BeginFrame(frame_time);
+ BeginFrame(frame_time);
}
bool FakeOutputSurface::ForcedDrawToSoftwareDevice() const {
@@ -55,7 +57,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