| Index: cc/test/fake_output_surface.cc
|
| diff --git a/cc/test/fake_output_surface.cc b/cc/test/fake_output_surface.cc
|
| index 0b9a6d3dd98d3fd65febf22d8343cfaf078bed9d..6369f61ec6740c4e7bb0c9d53617e5443dadd926 100644
|
| --- a/cc/test/fake_output_surface.cc
|
| +++ b/cc/test/fake_output_surface.cc
|
| @@ -4,12 +4,15 @@
|
|
|
| #include "cc/test/fake_output_surface.h"
|
|
|
| +#include "cc/output/output_surface_client.h"
|
| +
|
| namespace cc {
|
|
|
| FakeOutputSurface::FakeOutputSurface(
|
| scoped_ptr<WebKit::WebGraphicsContext3D> context3d, bool has_parent)
|
| : OutputSurface(context3d.Pass()),
|
| - num_sent_frames_(0) {
|
| + num_sent_frames_(0),
|
| + vsync_notification_enabled_(false) {
|
| capabilities_.has_parent_compositor = has_parent;
|
| }
|
|
|
| @@ -37,4 +40,12 @@ void FakeOutputSurface::SendFrameToParentCompositor(
|
| ++num_sent_frames_;
|
| }
|
|
|
| +void FakeOutputSurface::EnableVSyncNotification(bool enable) {
|
| + vsync_notification_enabled_ = enable;
|
| +}
|
| +
|
| +void FakeOutputSurface::DidVSync(base::TimeTicks frame_time) {
|
| + client_->DidVSync(frame_time);
|
| +}
|
| +
|
| } // namespace cc
|
|
|