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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 786473002: Android: Handle readback helper context init failure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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: content/browser/renderer_host/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index 4a193c2d6dc55c5721e124c32c57a2e9a5892147..7bed6a0cf85fc56f9d163f8c1e10424c7d5e315e 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -190,10 +190,14 @@ GLHelperHolder::CreateContext3D() {
0, // offscreen
url, gpu_channel_host.get(), attrs, lose_context_when_out_of_memory,
limits, nullptr));
- if (context->InitializeOnCurrentThread())
+ if (context->InitializeOnCurrentThread()) {
context->pushGroupMarkerEXT(
base::StringPrintf("CmdBufferImageTransportFactory-%p",
context.get()).c_str());
+ } else {
+ context.reset();
+ }
+
return context.Pass();
}
« 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