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

Unified Diff: gpu/command_buffer/service/feature_info.cc

Issue 12617020: Windows: On context lost, GPU process exits. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 9 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 | « gpu/command_buffer/service/feature_info.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/feature_info.cc
===================================================================
--- gpu/command_buffer/service/feature_info.cc (revision 191607)
+++ gpu/command_buffer/service/feature_info.cc (working copy)
@@ -97,6 +97,7 @@
flush_on_context_switch(false),
delete_instead_of_resize_fbo(false),
use_client_side_arrays_for_stream_buffers(false),
+ exit_on_context_lost(false),
max_texture_size(0),
max_cube_map_texture_size(0) {
}
@@ -701,6 +702,12 @@
// TODO(dsinclair): Add AddExtensionString("GL_CHROMIUM_sampler_objects")
// when available.
}
+
+#if defined(OS_WIN)
+ // Some drivers are unable to reset the D3D device in the GPU process
+ // sandbox.
+ workarounds_.exit_on_context_lost = true;
+#endif
}
void FeatureInfo::AddExtensionString(const std::string& str) {
« no previous file with comments | « gpu/command_buffer/service/feature_info.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698