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

Side by Side Diff: content/browser/gpu/gpu_data_manager_impl.h

Issue 14947002: Updated OSX to blacklist multisampling when multiple monitors are connected (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed feedback Created 7 years, 7 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
« no previous file with comments | « no previous file | content/browser/gpu/gpu_data_manager_impl.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) 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_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_
6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ 6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 // Get number of features being blacklisted. 166 // Get number of features being blacklisted.
167 size_t GetBlacklistedFeatureCount() const; 167 size_t GetBlacklistedFeatureCount() const;
168 168
169 typedef base::Callback<void()> GpuSwitchCallback; 169 typedef base::Callback<void()> GpuSwitchCallback;
170 170
171 // Add and remove gpu switch callback. 171 // Add and remove gpu switch callback.
172 void AddGpuSwitchCallback(const GpuSwitchCallback& callback); 172 void AddGpuSwitchCallback(const GpuSwitchCallback& callback);
173 void RemoveGpuSwitchCallback(const GpuSwitchCallback& callback); 173 void RemoveGpuSwitchCallback(const GpuSwitchCallback& callback);
174 174
175 #if defined(OS_MACOSX)
176 // Number of displays, to be used in GPU feature detection
Ken Russell (switch to Gerrit) 2013/05/08 01:58:00 Nit: here and throughout: end with ".".
bajones 2013/05/08 23:49:07 Done.
177 unsigned int display_count_;
Ken Russell (switch to Gerrit) 2013/05/08 01:58:00 Public fields violate the style guide: http://goog
bajones 2013/05/08 23:49:07 Done.
178 #endif
179
175 private: 180 private:
176 struct DomainBlockEntry { 181 struct DomainBlockEntry {
177 DomainGuilt last_guilt; 182 DomainGuilt last_guilt;
178 }; 183 };
179 184
180 typedef std::map<std::string, DomainBlockEntry> DomainBlockMap; 185 typedef std::map<std::string, DomainBlockEntry> DomainBlockMap;
181 186
182 typedef ObserverListThreadSafe<GpuDataManagerObserver> 187 typedef ObserverListThreadSafe<GpuDataManagerObserver>
183 GpuDataManagerObserverList; 188 GpuDataManagerObserverList;
184 189
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 bool domain_blocking_enabled_; 295 bool domain_blocking_enabled_;
291 296
292 std::vector<GpuSwitchCallback> gpu_switch_callbacks_; 297 std::vector<GpuSwitchCallback> gpu_switch_callbacks_;
293 298
294 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); 299 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl);
295 }; 300 };
296 301
297 } // namespace content 302 } // namespace content
298 303
299 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ 304 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/gpu_data_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698