| Index: cc/test/fake_output_surface.h
|
| diff --git a/cc/test/fake_output_surface.h b/cc/test/fake_output_surface.h
|
| index a2dd67cdbff7bfa08475dc794668cc8089cda5ac..cd96a2db2ae16ec24737a17888b615625955f5d6 100644
|
| --- a/cc/test/fake_output_surface.h
|
| +++ b/cc/test/fake_output_surface.h
|
| @@ -13,6 +13,10 @@
|
| #include "cc/test/fake_web_graphics_context_3d.h"
|
| #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3D.h"
|
|
|
| +namespace base {
|
| +class TimeTicks;
|
| +}
|
| +
|
| namespace cc {
|
|
|
| class FakeOutputSurface : public OutputSurface {
|
| @@ -69,6 +73,12 @@ class FakeOutputSurface : public OutputSurface {
|
| CompositorFrame& last_sent_frame() { return last_sent_frame_; }
|
| size_t num_sent_frames() { return num_sent_frames_; }
|
|
|
| + virtual void EnableVSyncNotification(bool enable) OVERRIDE;
|
| + bool vsync_notification_enabled() const {
|
| + return vsync_notification_enabled_;
|
| + }
|
| + void DidVSync(base::TimeTicks frame_time);
|
| +
|
| private:
|
| explicit FakeOutputSurface(
|
| scoped_ptr<WebKit::WebGraphicsContext3D> context3d, bool has_parent);
|
| @@ -81,6 +91,7 @@ private:
|
| OutputSurfaceClient* client_;
|
| CompositorFrame last_sent_frame_;
|
| size_t num_sent_frames_;
|
| + bool vsync_notification_enabled_;
|
| };
|
|
|
| static inline scoped_ptr<cc::OutputSurface> createFakeOutputSurface()
|
|
|