summaryrefslogtreecommitdiffstats
path: root/content/public
diff options
context:
space:
mode:
authorzmo@chromium.org <zmo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-12 18:31:59 +0000
committerzmo@chromium.org <zmo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-12 18:31:59 +0000
commit5742fc7ee206d77716571aad6250dffa21624764 (patch)
tree7a1eff4355b47f47a6d4d47c76e7d16228d782de /content/public
parent2f70247ef25f754fcc5eff940d960c9d433e7067 (diff)
downloadchromium_src-5742fc7ee206d77716571aad6250dffa21624764.zip
chromium_src-5742fc7ee206d77716571aad6250dffa21624764.tar.gz
chromium_src-5742fc7ee206d77716571aad6250dffa21624764.tar.bz2
Cache GL strings from GPU process and use them at next browser startup.
So we can make complete GPU blacklist decisions at browser startup time. BUG=164728 TEST= Review URL: https://codereview.chromium.org/11446080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172627 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public')
-rw-r--r--content/public/browser/gpu_data_manager.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/content/public/browser/gpu_data_manager.h b/content/public/browser/gpu_data_manager.h
index 3159adb..e5222d6 100644
--- a/content/public/browser/gpu_data_manager.h
+++ b/content/public/browser/gpu_data_manager.h
@@ -103,6 +103,17 @@ class GpuDataManager {
// Disable the gpu process watchdog thread.
virtual void DisableGpuWatchdog() = 0;
+ // Set GL strings. This triggers a re-calculation of GPU blacklist
+ // decision.
+ virtual void SetGLStrings(const std::string& gl_vendor,
+ const std::string& gl_renderer,
+ const std::string& gl_version) = 0;
+
+ // Obtain collected GL strings.
+ virtual void GetGLStrings(std::string* gl_vendor,
+ std::string* gl_renderer,
+ std::string* gl_version) = 0;
+
protected:
virtual ~GpuDataManager() {}
};