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

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

Issue 6532101: Merge part of r75473.... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/648/src/
Patch Set: Created 9 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/gpu_blacklist.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 std::string value_; 147 std::string value_;
148 }; 148 };
149 149
150 class GpuBlacklistEntry { 150 class GpuBlacklistEntry {
151 public: 151 public:
152 // Constructs GpuBlacklistEntry from DictionaryValue loaded from json. 152 // Constructs GpuBlacklistEntry from DictionaryValue loaded from json.
153 static GpuBlacklistEntry* GetGpuBlacklistEntryFromValue( 153 static GpuBlacklistEntry* GetGpuBlacklistEntryFromValue(
154 DictionaryValue* value); 154 DictionaryValue* value);
155 155
156 // Determines if a given os/gc/driver is included in the Entry set. 156 // Determines if a given os/gc/driver is included in the Entry set.
157 bool Contains(OsType os_type, const Version& os_version, 157 bool Contains(OsType os_type,
158 uint32 vendor_id, uint32 device_id, 158 const Version& os_version,
159 const std::string& driver_vendor, 159 const GPUInfo& gpu_info) const;
160 const Version& driver_version,
161 const std::string& gl_renderer) const;
162 160
163 // Returns the OsType. 161 // Returns the OsType.
164 OsType GetOsType() const; 162 OsType GetOsType() const;
165 163
166 // Returns the entry's unique id. 0 is reserved. 164 // Returns the entry's unique id. 0 is reserved.
167 uint32 id() const; 165 uint32 id() const;
168 166
169 // Returns the GpuFeatureFlags. 167 // Returns the GpuFeatureFlags.
170 GpuFeatureFlags GetGpuFeatureFlags() const; 168 GpuFeatureFlags GetGpuFeatureFlags() const;
171 169
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 // called and is used later by GetGpuFeatureFlagEntries(). 219 // called and is used later by GetGpuFeatureFlagEntries().
222 std::vector<GpuBlacklistEntry*> active_entries_; 220 std::vector<GpuBlacklistEntry*> active_entries_;
223 221
224 uint32 max_entry_id_; 222 uint32 max_entry_id_;
225 223
226 DISALLOW_COPY_AND_ASSIGN(GpuBlacklist); 224 DISALLOW_COPY_AND_ASSIGN(GpuBlacklist);
227 }; 225 };
228 226
229 #endif // CHROME_BROWSER_GPU_BLACKLIST_H_ 227 #endif // CHROME_BROWSER_GPU_BLACKLIST_H_
230 228
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/gpu_blacklist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698