summaryrefslogtreecommitdiffstats
path: root/content/browser/gpu_blacklist.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/gpu_blacklist.h')
-rw-r--r--content/browser/gpu_blacklist.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/content/browser/gpu_blacklist.h b/content/browser/gpu_blacklist.h
index f732af9..7758b65 100644
--- a/content/browser/gpu_blacklist.h
+++ b/content/browser/gpu_blacklist.h
@@ -37,6 +37,8 @@ class GpuBlacklist {
// If failed, the current GpuBlacklist is un-touched.
bool LoadGpuBlacklist(const std::string& json_context,
bool current_os_only);
+ bool LoadGpuBlacklist(const DictionaryValue& parsed_json,
+ bool current_os_only);
// Collects system information and combines them with gpu_info and blacklist
// information to determine gpu feature flags.
@@ -63,6 +65,11 @@ class GpuBlacklist {
// major and minor to 0 on failure.
bool GetVersion(uint16* major, uint16* monir) const;
+ // Collects the version of the current blacklist from a parsed json file.
+ // Returns false and sets major and minor to 0 on failure.
+ static bool GetVersion(
+ const DictionaryValue& parsed_json, uint16* major, uint16* minor);
+
private:
class VersionInfo {
public: