Index: content/browser/gpu/gpu_data_manager_impl.h |
=================================================================== |
--- content/browser/gpu/gpu_data_manager_impl.h (revision 155222) |
+++ content/browser/gpu/gpu_data_manager_impl.h (working copy) |
@@ -16,7 +16,6 @@ |
#include "base/observer_list_threadsafe.h" |
#include "base/synchronization/lock.h" |
#include "base/values.h" |
-#include "content/browser/gpu/gpu_blacklist.h" |
#include "content/public/browser/gpu_data_manager.h" |
#include "content/public/common/gpu_info.h" |
#include "content/public/common/gpu_memory_stats.h" |
@@ -30,12 +29,10 @@ |
static GpuDataManagerImpl* GetInstance(); |
// GpuDataManager implementation. |
- virtual void Initialize( |
- const std::string& browser_version_string, |
- const std::string& gpu_blacklist_json) OVERRIDE; |
+ virtual void InitializeGpuInfo() OVERRIDE; |
virtual content::GpuFeatureType GetBlacklistedFeatures() const OVERRIDE; |
- virtual base::ListValue* GetBlacklistReasons() const OVERRIDE; |
- virtual std::string GetBlacklistVersion() const OVERRIDE; |
+ virtual void SetPreliminaryBlacklistedFeatures( |
+ content::GpuFeatureType features) OVERRIDE; |
virtual content::GPUInfo GetGPUInfo() const OVERRIDE; |
virtual bool GpuAccessAllowed() const OVERRIDE; |
virtual void RequestCompleteGpuInfoIfNeeded() OVERRIDE; |
@@ -50,8 +47,7 @@ |
virtual void RemoveObserver( |
content::GpuDataManagerObserver* observer) OVERRIDE; |
- // Only update if the current GPUInfo is not finalized. If blacklist is |
- // loaded, run through blacklist and update blacklisted features. |
+ // Only update if the current GPUInfo is not finalized. |
void UpdateGpuInfo(const content::GPUInfo& gpu_info); |
void UpdateVideoMemoryUsageStats( |
@@ -95,21 +91,16 @@ |
GpuDataManagerImpl(); |
virtual ~GpuDataManagerImpl(); |
+ // If flags hasn't been set and GPUInfo is available, run through blacklist |
+ // and compute the flags. |
void UpdateBlacklistedFeatures(content::GpuFeatureType features); |
- // This should only be called once at initialization time, when preliminary |
- // gpu info is collected. |
- void UpdatePreliminaryBlacklistedFeatures(); |
- |
// Notify all observers whenever there is a GPU info update. |
void NotifyGpuInfoUpdate(); |
// Try to switch to software rendering, if possible and necessary. |
void EnableSoftwareRenderingIfNecessary(); |
- // Send UMA histograms about the disabled/enabled features. |
- void UpdateStats(); |
- |
bool complete_gpu_info_already_requested_; |
content::GpuFeatureType gpu_feature_type_; |
@@ -118,8 +109,6 @@ |
content::GPUInfo gpu_info_; |
mutable base::Lock gpu_info_lock_; |
- scoped_ptr<GpuBlacklist> gpu_blacklist_; |
- |
const scoped_refptr<GpuDataManagerObserverList> observer_list_; |
ListValue log_messages_; |