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

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

Issue 12593005: Add a user pref in Settings to disable all GPU features. (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 | « chrome/test/base/testing_browser_process.cc ('k') | content/browser/gpu/gpu_data_manager_impl.cc » ('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.h
===================================================================
--- content/browser/gpu/gpu_data_manager_impl.h (revision 186737)
+++ content/browser/gpu/gpu_data_manager_impl.h (working copy)
@@ -79,6 +79,7 @@
virtual void GetGLStrings(std::string* gl_vendor,
std::string* gl_renderer,
std::string* gl_version) OVERRIDE;
+ virtual void DisableHardwareAcceleration() OVERRIDE;
// This collects preliminary GPU info, load GpuBlacklist, and compute the
// preliminary blacklisted features; it should only be called at browser
@@ -106,10 +107,6 @@
GpuSwitchingOption GetGpuSwitchingOption() const;
- // Force the current card to be blacklisted (usually due to GPU process
- // crashes).
- void BlacklistCard();
-
std::string GetBlacklistVersion() const;
// Returns the reasons for the latest run of blacklisting decisions.
@@ -170,7 +167,8 @@
FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplTest, GpuSideBlacklisting);
FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplTest, GpuSideExceptions);
- FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplTest, BlacklistCard);
+ FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplTest,
+ DisableHardwareAcceleration);
FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplTest, SoftwareRendering);
FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplTest, SoftwareRendering2);
FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplTest, GpuInfoUpdate);
« no previous file with comments | « chrome/test/base/testing_browser_process.cc ('k') | content/browser/gpu/gpu_data_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698