Index: content/browser/gpu/compositor_util.cc |
diff --git a/content/browser/gpu/compositor_util.cc b/content/browser/gpu/compositor_util.cc |
index 0f01ec83812eb7d368c5fb6af2011e5570ea2dd9..ef94a578d899c41128290a0b1e6064886e3372b5 100644 |
--- a/content/browser/gpu/compositor_util.cc |
+++ b/content/browser/gpu/compositor_util.cc |
@@ -292,6 +292,15 @@ bool IsForceGpuRasterizationEnabled() { |
return command_line.HasSwitch(switches::kForceGpuRasterization); |
} |
+bool IsThreadedGpuRasterizationEnabled() { |
+ if (!IsImplSidePaintingEnabled()) |
+ return false; |
+ |
+ const base::CommandLine& command_line = |
+ *base::CommandLine::ForCurrentProcess(); |
+ return !command_line.HasSwitch(switches::kDisableThreadedGpuRasterization); |
+} |
+ |
bool UseSurfacesEnabled() { |
#if defined(OS_ANDROID) |
return false; |