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

Unified Diff: content/browser/gpu/gpu_data_manager_impl_private.cc

Issue 23473003: Added GPU driver workaround for OSX multimonitor multisampling disabling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed unnecessary change to public API Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl_private.h ('k') | gpu/config/gpu_driver_bug_list_json.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_data_manager_impl_private.cc
diff --git a/content/browser/gpu/gpu_data_manager_impl_private.cc b/content/browser/gpu/gpu_data_manager_impl_private.cc
index 98656dfdd68ccffbf7f02be7ae4f9f663d753a74..b15842f3da8d1f10b46a89b60b4f9b75c37f3ab3 100644
--- a/content/browser/gpu/gpu_data_manager_impl_private.cc
+++ b/content/browser/gpu/gpu_data_manager_impl_private.cc
@@ -241,7 +241,9 @@ void DisplayReconfigCallback(CGDirectDisplayID display,
bool fireGpuSwitch = flags & kCGDisplayAddFlag;
- if (displayCount != manager->GetDisplayCount()) {
+ if(manager->IsDriverBugWorkaroundActive(
+ gpu::DISABLE_MULTIMONITOR_MULTISAMPLING) &&
+ displayCount != manager->GetDisplayCount()) {
Ken Russell (switch to Gerrit) 2013/08/29 19:28:00 The workaround check needs to be done below in ord
manager->SetDisplayCount(displayCount);
fireGpuSwitch = true;
}
@@ -376,6 +378,10 @@ bool GpuDataManagerImplPrivate::IsFeatureBlacklisted(int feature) const {
return (blacklisted_features_.count(feature) == 1);
}
+bool GpuDataManagerImplPrivate::IsDriverBugWorkaroundActive(int feature) const {
+ return (gpu_driver_bugs_.count(feature) == 1);
+}
+
size_t GpuDataManagerImplPrivate::GetBlacklistedFeatureCount() const {
if (use_swiftshader_)
return 1;
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl_private.h ('k') | gpu/config/gpu_driver_bug_list_json.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698