| Index: cc/test/fake_output_surface.cc
|
| diff --git a/cc/test/fake_output_surface.cc b/cc/test/fake_output_surface.cc
|
| index ebbe7832b167284c658db7e168433797148d81ba..4c6968cb32290f6ecb497e56550fe2cc6f546176 100644
|
| --- a/cc/test/fake_output_surface.cc
|
| +++ b/cc/test/fake_output_surface.cc
|
| @@ -4,11 +4,14 @@
|
|
|
| #include "cc/test/fake_output_surface.h"
|
|
|
| +#include "cc/output_surface_client.h"
|
| +
|
| namespace cc {
|
|
|
| FakeOutputSurface::FakeOutputSurface(
|
| scoped_ptr<WebKit::WebGraphicsContext3D> context3d, bool has_parent)
|
| - : num_sent_frames_(0) {
|
| + : num_sent_frames_(0)
|
| + , vsync_notification_enabled_(false) {
|
| context3d_ = context3d.Pass();
|
| capabilities_.has_parent_compositor = has_parent;
|
| }
|
| @@ -51,4 +54,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
|
|
|