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

Unified Diff: content/browser/gpu/gpu_data_manager_impl.cc

Issue 9844005: Disable GPU features if /dev/nvidiactl is inaccessible (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 | « no previous file | content/common/gpu/gpu_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_data_manager_impl.cc
===================================================================
--- content/browser/gpu/gpu_data_manager_impl.cc (revision 129207)
+++ content/browser/gpu/gpu_data_manager_impl.cc (working copy)
@@ -161,6 +161,9 @@
if (software_rendering_)
return true;
+ if (!gpu_info_.gpu_accessible)
+ return false;
+
// We only need to block GPU process if more features are disallowed other
// than those in the preliminary gpu feature flags because the latter work
// through renderer commandline switches.
@@ -380,6 +383,7 @@
}
object->can_lose_context = other.can_lose_context;
object->software_rendering = other.software_rendering;
+ object->gpu_accessible = other.gpu_accessible;
#if defined(OS_WIN)
if (object->dx_diagnostics.values.size() == 0 &&
object->dx_diagnostics.children.size() == 0) {
« no previous file with comments | « no previous file | content/common/gpu/gpu_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698