Index: cc/test/fake_output_surface.cc |
diff --git a/cc/test/fake_output_surface.cc b/cc/test/fake_output_surface.cc |
index df9c0f7ae3d3b4eca2118eb57b48cd6e3e30cf13..46efba09f92dd7344a4f900ce6cf4bb13e873ee7 100644 |
--- a/cc/test/fake_output_surface.cc |
+++ b/cc/test/fake_output_surface.cc |
@@ -20,9 +20,7 @@ FakeOutputSurface::FakeOutputSurface( |
: OutputSurface(context_provider), |
client_(NULL), |
num_sent_frames_(0), |
- needs_begin_frame_(false), |
- has_external_stencil_test_(false), |
- fake_weak_ptr_factory_(this) { |
+ has_external_stencil_test_(false) { |
if (delegated_rendering) { |
capabilities_.delegated_rendering = true; |
capabilities_.max_frames_pending = 1; |
@@ -35,8 +33,7 @@ FakeOutputSurface::FakeOutputSurface( |
: OutputSurface(software_device.Pass()), |
client_(NULL), |
num_sent_frames_(0), |
- has_external_stencil_test_(false), |
- fake_weak_ptr_factory_(this) { |
+ has_external_stencil_test_(false) { |
if (delegated_rendering) { |
capabilities_.delegated_rendering = true; |
capabilities_.max_frames_pending = 1; |
@@ -50,8 +47,7 @@ FakeOutputSurface::FakeOutputSurface( |
: OutputSurface(context_provider, software_device.Pass()), |
client_(NULL), |
num_sent_frames_(0), |
- has_external_stencil_test_(false), |
- fake_weak_ptr_factory_(this) { |
+ has_external_stencil_test_(false) { |
if (delegated_rendering) { |
capabilities_.delegated_rendering = true; |
capabilities_.max_frames_pending = 1; |
@@ -82,24 +78,6 @@ void FakeOutputSurface::SwapBuffers(CompositorFrame* frame) { |
client_->DidSwapBuffers(); |
} |
-void FakeOutputSurface::SetNeedsBeginFrame(bool enable) { |
- needs_begin_frame_ = enable; |
- OutputSurface::SetNeedsBeginFrame(enable); |
- |
- if (enable) { |
- base::MessageLoop::current()->PostDelayedTask( |
- FROM_HERE, |
- base::Bind(&FakeOutputSurface::OnBeginFrame, |
- fake_weak_ptr_factory_.GetWeakPtr()), |
- base::TimeDelta::FromMilliseconds(16)); |
- } |
-} |
- |
-void FakeOutputSurface::OnBeginFrame() { |
- client_->BeginFrame(CreateBeginFrameArgsForTesting()); |
-} |
- |
- |
bool FakeOutputSurface::BindToClient(OutputSurfaceClient* client) { |
if (OutputSurface::BindToClient(client)) { |
client_ = client; |