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..a5f70798cb84c5d2b13760a07d837d4e9ee067d7 100644 |
--- a/cc/test/fake_output_surface.cc |
+++ b/cc/test/fake_output_surface.cc |
@@ -4,12 +4,16 @@ |
#include "cc/test/fake_output_surface.h" |
+#include "base/time.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 +41,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 |