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

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

Issue 23473003: Added GPU driver workaround for OSX multimonitor multisampling disabling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Whitespace tweak Created 7 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
« 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 // Get number of features being blacklisted. 171 // Get number of features being blacklisted.
172 size_t GetBlacklistedFeatureCount() const; 172 size_t GetBlacklistedFeatureCount() const;
173 173
174 void SetDisplayCount(unsigned int display_count); 174 void SetDisplayCount(unsigned int display_count);
175 unsigned int GetDisplayCount() const; 175 unsigned int GetDisplayCount() const;
176 176
177 // Called when GPU process initialization failed. 177 // Called when GPU process initialization failed.
178 void OnGpuProcessInitFailure(); 178 void OnGpuProcessInitFailure();
179 179
180 bool IsDriverBugWorkaroundActive(int feature) const;
181
180 private: 182 private:
181 friend class GpuDataManagerImplPrivate; 183 friend class GpuDataManagerImplPrivate;
182 friend class GpuDataManagerImplPrivateTest; 184 friend class GpuDataManagerImplPrivateTest;
183 friend struct DefaultSingletonTraits<GpuDataManagerImpl>; 185 friend struct DefaultSingletonTraits<GpuDataManagerImpl>;
184 186
185 // It's similar to AutoUnlock, but we want to make it a no-op 187 // It's similar to AutoUnlock, but we want to make it a no-op
186 // if the owner GpuDataManagerImpl is null. 188 // if the owner GpuDataManagerImpl is null.
187 // This should only be used by GpuDataManagerImplPrivate where 189 // This should only be used by GpuDataManagerImplPrivate where
188 // callbacks are called, during which re-entering 190 // callbacks are called, during which re-entering
189 // GpuDataManagerImpl is possible. 191 // GpuDataManagerImpl is possible.
(...skipping 21 matching lines...) Expand all
211 213
212 mutable base::Lock lock_; 214 mutable base::Lock lock_;
213 scoped_ptr<GpuDataManagerImplPrivate> private_; 215 scoped_ptr<GpuDataManagerImplPrivate> private_;
214 216
215 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); 217 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl);
216 }; 218 };
217 219
218 } // namespace content 220 } // namespace content
219 221
220 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ 222 #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