| Index: content/browser/gpu/gpu_blacklist.h
|
| ===================================================================
|
| --- content/browser/gpu/gpu_blacklist.h (revision 160744)
|
| +++ content/browser/gpu/gpu_blacklist.h (working copy)
|
| @@ -92,6 +92,11 @@
|
| // Returns the version of the current blacklist.
|
| std::string GetVersion() const;
|
|
|
| + // Check if we needs more gpu info to make the blacklisting decisions.
|
| + // This is computed from the last MakeBlacklistDecision() call.
|
| + // If yes, we should create a gl context and do a full gpu info collection.
|
| + bool needs_more_info() const { return needs_more_info_; }
|
| +
|
| private:
|
| friend class GpuBlacklistTest;
|
| FRIEND_TEST_ALL_PREFIXES(GpuBlacklistTest, ChromeVersionEntry);
|
| @@ -275,6 +280,10 @@
|
| const Version& machine_model_version,
|
| const content::GPUInfo& gpu_info) const;
|
|
|
| + // Determines whether we needs more gpu info to make the blacklisting
|
| + // decision. It should only be checked if Contains() returns true.
|
| + bool NeedsMoreInfo(const content::GPUInfo& gpu_info) const;
|
| +
|
| // Returns the OsType.
|
| OsType GetOsType() const;
|
|
|
| @@ -466,6 +475,8 @@
|
|
|
| bool contains_unknown_fields_;
|
|
|
| + bool needs_more_info_;
|
| +
|
| std::string current_machine_model_name_;
|
| scoped_ptr<Version> current_machine_model_version_;
|
|
|
|
|