Index: services/surfaces/display_impl.cc |
diff --git a/services/surfaces/display_impl.cc b/services/surfaces/display_impl.cc |
index 217ebc5d70488fbcc7bf83cf55ad86e2b790b836..fbd805a8a3dd8dc17f74e8d5c76f447e5da34f6a 100644 |
--- a/services/surfaces/display_impl.cc |
+++ b/services/surfaces/display_impl.cc |
@@ -77,11 +77,10 @@ void DisplayImpl::Draw() { |
pending_frame_->passes[0]->output_rect.To<gfx::Rect>().size(); |
last_submitted_frame_size_ = frame_size; |
display_->Resize(frame_size); |
- factory_.SubmitFrame(cc_id_, |
- pending_frame_.To<scoped_ptr<cc::CompositorFrame>>(), |
- base::Bind(&CallCallback, pending_callback_)); |
+ factory_.SubmitFrame( |
+ cc_id_, pending_frame_.Clone().To<scoped_ptr<cc::CompositorFrame>>(), |
blundell
2015/05/04 15:11:49
I'm not an expert here, but this feels to me like
jamesr
2015/05/04 18:03:22
Hmm, do we need new frame data in the recover path
|
+ base::Bind(&CallCallback, pending_callback_)); |
scheduler_->SetNeedsDraw(); |
- pending_frame_.reset(); |
pending_callback_.reset(); |
} |