summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/test/gpu/gpu_feature_browsertest.cc8
-rw-r--r--content/browser/gpu/compositor_util.cc11
-rw-r--r--content/browser/gpu/gpu_data_manager_impl_private.cc4
3 files changed, 12 insertions, 11 deletions
diff --git a/chrome/test/gpu/gpu_feature_browsertest.cc b/chrome/test/gpu/gpu_feature_browsertest.cc
index d20357e..72f1327 100644
--- a/chrome/test/gpu/gpu_feature_browsertest.cc
+++ b/chrome/test/gpu/gpu_feature_browsertest.cc
@@ -210,8 +210,8 @@ class AcceleratedCompositingBlockedTest : public GpuFeatureTest {
}
};
-#if defined(USE_AURA)
-// Compositing is always on for Aura.
+#if defined(USE_AURA) || defined(OS_MACOSX)
+// Compositing is always on for Aura and Mac.
#define MAYBE_AcceleratedCompositingBlocked DISABLED_AcceleratedCompositingBlocked
#else
#define MAYBE_AcceleratedCompositingBlocked AcceleratedCompositingBlocked
@@ -234,8 +234,8 @@ class AcceleratedCompositingTest : public GpuFeatureTest {
}
};
-#if defined(USE_AURA)
-// Compositing is always on for Aura.
+#if defined(USE_AURA) || defined(OS_MACOSX)
+// Compositing is always on for Aura and Mac.
#define MAYBE_AcceleratedCompositingDisabled DISABLED_AcceleratedCompositingDisabled
#else
#define MAYBE_AcceleratedCompositingDisabled AcceleratedCompositingDisabled
diff --git a/content/browser/gpu/compositor_util.cc b/content/browser/gpu/compositor_util.cc
index 73af130..133ed5d 100644
--- a/content/browser/gpu/compositor_util.cc
+++ b/content/browser/gpu/compositor_util.cc
@@ -219,18 +219,19 @@ bool IsThreadedCompositingEnabled() {
return true;
}
-#if defined(USE_AURA)
- // We always want threaded compositing on Aura.
+#if defined(USE_AURA) || defined(OS_MACOSX)
+ // We always want threaded compositing on Aura and Mac (the fallback is a
+ // threaded software compositor).
return true;
#endif
if (!CanDoAcceleratedCompositing() || IsForceCompositingModeBlacklisted())
return false;
-#if defined(OS_MACOSX) || defined(OS_WIN)
+#if defined(OS_WIN)
// Windows Vista+ has been shipping with TCM enabled at 100% since M24 and
- // Mac OSX 10.8+ since M28. The blacklist check above takes care of returning
- // false before this hits on unsupported Win/Mac versions.
+ // The blacklist check above takes care of returning false before this hits
+ // on unsupported Win versions.
return true;
#endif
diff --git a/content/browser/gpu/gpu_data_manager_impl_private.cc b/content/browser/gpu/gpu_data_manager_impl_private.cc
index 5eeeb7d..cfd96ca 100644
--- a/content/browser/gpu/gpu_data_manager_impl_private.cc
+++ b/content/browser/gpu/gpu_data_manager_impl_private.cc
@@ -971,8 +971,8 @@ GpuDataManagerImplPrivate::GpuDataManagerImplPrivate(
DisableHardwareAcceleration();
if (command_line->HasSwitch(switches::kEnableSoftwareCompositing))
use_software_compositor_ = true;
- //TODO(jbauman): enable for Chrome OS and Linux
-#if defined(USE_AURA) && !defined(OS_CHROMEOS)
+ // TODO(jbauman): enable for Chrome OS
+#if (defined(USE_AURA) && !defined(OS_CHROMEOS)) || defined(OS_MACOSX)
use_software_compositor_ = true;
#endif