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

Side by Side Diff: content/public/browser/gpu_data_manager.h

Issue 10915219: Add capability for GPU blacklist to manage GPU switching. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_
6 #define CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ 6 #define CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 24 matching lines...) Expand all
35 // The same as above, except that the GPUInfo is provided. 35 // The same as above, except that the GPUInfo is provided.
36 // For testing only. 36 // For testing only.
37 virtual void Initialize(const std::string& browser_version_string, 37 virtual void Initialize(const std::string& browser_version_string,
38 const std::string& gpu_blacklist_json, 38 const std::string& gpu_blacklist_json,
39 const content::GPUInfo& gpu_info) = 0; 39 const content::GPUInfo& gpu_info) = 0;
40 40
41 virtual std::string GetBlacklistVersion() const = 0; 41 virtual std::string GetBlacklistVersion() const = 0;
42 42
43 virtual GpuFeatureType GetBlacklistedFeatures() const = 0; 43 virtual GpuFeatureType GetBlacklistedFeatures() const = 0;
44 44
45 virtual GpuSwitchingOption GetGpuSwitchingOption() const = 0;
46
45 // Returns the reasons for the latest run of blacklisting decisions. 47 // Returns the reasons for the latest run of blacklisting decisions.
46 // For the structure of returned value, see documentation for 48 // For the structure of returned value, see documentation for
47 // GpuBlacklist::GetBlacklistedReasons(). 49 // GpuBlacklist::GetBlacklistedReasons().
48 // Caller is responsible to release the returned value. 50 // Caller is responsible to release the returned value.
49 virtual base::ListValue* GetBlacklistReasons() const = 0; 51 virtual base::ListValue* GetBlacklistReasons() const = 0;
50 52
51 virtual GPUInfo GetGPUInfo() const = 0; 53 virtual GPUInfo GetGPUInfo() const = 0;
52 54
53 // This indicator might change because we could collect more GPU info or 55 // This indicator might change because we could collect more GPU info or
54 // because the GPU blacklist could be updated. 56 // because the GPU blacklist could be updated.
(...skipping 29 matching lines...) Expand all
84 virtual void AddObserver(GpuDataManagerObserver* observer) = 0; 86 virtual void AddObserver(GpuDataManagerObserver* observer) = 0;
85 virtual void RemoveObserver(GpuDataManagerObserver* observer) = 0; 87 virtual void RemoveObserver(GpuDataManagerObserver* observer) = 0;
86 88
87 protected: 89 protected:
88 virtual ~GpuDataManager() {} 90 virtual ~GpuDataManager() {}
89 }; 91 };
90 92
91 }; // namespace content 93 }; // namespace content
92 94
93 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ 95 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698