Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(390)

Unified Diff: services/surfaces/display_impl.cc

Issue 1123623003: Automatically redraw the display on resume. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/native_viewport/onscreen_context_provider.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « services/native_viewport/onscreen_context_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698