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

Unified Diff: services/native_viewport/onscreen_context_provider.cc

Issue 1161533005: Fix crash when backgrounding MojoShell on Android. Fixes issue #186. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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
Index: services/native_viewport/onscreen_context_provider.cc
diff --git a/services/native_viewport/onscreen_context_provider.cc b/services/native_viewport/onscreen_context_provider.cc
index a7ba14b3d9c8dcf78a1463901cef86f799485ad6..90a98dc8106c6d02409526d842eb9e2b2a50aecb 100644
--- a/services/native_viewport/onscreen_context_provider.cc
+++ b/services/native_viewport/onscreen_context_provider.cc
@@ -32,8 +32,9 @@ void OnscreenContextProvider::SetAcceleratedWidget(
widget_ = widget;
if (widget_ == gfx::kNullAcceleratedWidget) {
- if (command_buffer_impl_)
+ if (command_buffer_impl_) {
command_buffer_impl_->DidLoseContext();
+ }
return;
}
« services/gles2/command_buffer_impl.cc ('K') | « services/gles2/command_buffer_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698