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

Side by Side Diff: chrome/browser/gpu_blacklist.h

Issue 5841002: Finish deinlining virtual methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert parts of the balloon modifications Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_GPU_BLACKLIST_H_ 5 #ifndef CHROME_BROWSER_GPU_BLACKLIST_H_
6 #define CHROME_BROWSER_GPU_BLACKLIST_H_ 6 #define CHROME_BROWSER_GPU_BLACKLIST_H_
7 #pragma once 7 #pragma once
8 8
9 // Determines whether certain gpu-related features are blacklisted or not. 9 // Determines whether certain gpu-related features are blacklisted or not.
10 // A valid gpu_blacklist.json file are in the format of 10 // A valid gpu_blacklist.json file are in the format of
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 scoped_ptr<Version> version_; 109 scoped_ptr<Version> version_;
110 scoped_ptr<Version> version2_; 110 scoped_ptr<Version> version2_;
111 }; 111 };
112 112
113 class OsInfo { 113 class OsInfo {
114 public: 114 public:
115 OsInfo(const std::string& os, 115 OsInfo(const std::string& os,
116 const std::string& version_op, 116 const std::string& version_op,
117 const std::string& version_string, 117 const std::string& version_string,
118 const std::string& version_string2); 118 const std::string& version_string2);
119 ~OsInfo();
119 120
120 // Determines if a given os/version is included in the OsInfo set. 121 // Determines if a given os/version is included in the OsInfo set.
121 bool Contains(OsType type, const Version& version) const; 122 bool Contains(OsType type, const Version& version) const;
122 123
123 // Determines if the VersionInfo contains valid information. 124 // Determines if the VersionInfo contains valid information.
124 bool IsValid() const; 125 bool IsValid() const;
125 126
126 OsType type() const; 127 OsType type() const;
127 128
128 // Maps string to OsType; returns kOsUnknown if it's not a valid os. 129 // Maps string to OsType; returns kOsUnknown if it's not a valid os.
(...skipping 14 matching lines...) Expand all
143 bool Contains(OsType os_type, const Version& os_version, 144 bool Contains(OsType os_type, const Version& os_version,
144 uint32 vendor_id, uint32 device_id, 145 uint32 vendor_id, uint32 device_id,
145 const Version& driver_version) const; 146 const Version& driver_version) const;
146 147
147 // Returns the OsType. 148 // Returns the OsType.
148 OsType GetOsType() const; 149 OsType GetOsType() const;
149 150
150 // Returns the GpuFeatureFlags. 151 // Returns the GpuFeatureFlags.
151 GpuFeatureFlags GetGpuFeatureFlags() const; 152 GpuFeatureFlags GetGpuFeatureFlags() const;
152 153
154 ~GpuBlacklistEntry();
155
153 private: 156 private:
154 GpuBlacklistEntry(); 157 GpuBlacklistEntry();
155 158
156 bool SetOsInfo(const std::string& os, 159 bool SetOsInfo(const std::string& os,
157 const std::string& version_op, 160 const std::string& version_op,
158 const std::string& version_string, 161 const std::string& version_string,
159 const std::string& version_string2); 162 const std::string& version_string2);
160 163
161 bool SetVendorId(const std::string& vendor_id_string); 164 bool SetVendorId(const std::string& vendor_id_string);
162 165
(...skipping 18 matching lines...) Expand all
181 184
182 void Clear(); 185 void Clear();
183 186
184 std::vector<GpuBlacklistEntry*> blacklist_; 187 std::vector<GpuBlacklistEntry*> blacklist_;
185 188
186 DISALLOW_COPY_AND_ASSIGN(GpuBlacklist); 189 DISALLOW_COPY_AND_ASSIGN(GpuBlacklist);
187 }; 190 };
188 191
189 #endif // CHROME_BROWSER_GPU_BLACKLIST_H_ 192 #endif // CHROME_BROWSER_GPU_BLACKLIST_H_
190 193
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698