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

Unified Diff: mojo/services/html_viewer/weblayertreeview_impl.cc

Issue 902293002: Only set a valid surface from html_viewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/html_viewer/weblayertreeview_impl.cc
diff --git a/mojo/services/html_viewer/weblayertreeview_impl.cc b/mojo/services/html_viewer/weblayertreeview_impl.cc
index 00507deecc719819f098553be1460d29d845e83c..a1d4da82c260e571621dfaa74ac8a2ec93311983 100644
--- a/mojo/services/html_viewer/weblayertreeview_impl.cc
+++ b/mojo/services/html_viewer/weblayertreeview_impl.cc
@@ -101,7 +101,8 @@ void WebLayerTreeViewImpl::ApplyViewportDeltas(
}
void WebLayerTreeViewImpl::RequestNewOutputSurface() {
- layer_tree_host_->SetOutputSurface(output_surface_.Pass());
+ if (output_surface_.get())
+ layer_tree_host_->SetOutputSurface(output_surface_.Pass());
}
void WebLayerTreeViewImpl::DidFailToInitializeOutputSurface() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698