Index: content/browser/gpu/compositor_util.cc |
diff --git a/content/browser/gpu/compositor_util.cc b/content/browser/gpu/compositor_util.cc |
index bf1008559bf7875629061a36ebed6a595dff371f..9fe88b1cd2b0c667ca0813691fa1561ad24fb942 100644 |
--- a/content/browser/gpu/compositor_util.cc |
+++ b/content/browser/gpu/compositor_util.cc |
@@ -191,14 +191,6 @@ int NumberOfRendererRasterThreads() { |
int num_raster_threads = num_processors / 2; |
- // Async uploads is used when neither zero-copy nor one-copy is enabled and |
- // it uses its own thread, so reduce the number of raster threads when async |
- // uploads is in use. |
- bool async_uploads_is_used = |
- !IsZeroCopyUploadEnabled() && !IsOneCopyUploadEnabled(); |
- if (async_uploads_is_used) |
- --num_raster_threads; |
- |
#if defined(OS_ANDROID) |
// Limit the number of raster threads to 1 on Android. |
// TODO(reveman): Remove this when we have a better mechanims to prevent |
@@ -222,15 +214,6 @@ int NumberOfRendererRasterThreads() { |
kMaxRasterThreads); |
} |
-bool IsOneCopyUploadEnabled() { |
- if (IsZeroCopyUploadEnabled()) |
- return false; |
- |
- const base::CommandLine& command_line = |
- *base::CommandLine::ForCurrentProcess(); |
- return !command_line.HasSwitch(switches::kDisableOneCopy); |
-} |
- |
bool IsZeroCopyUploadEnabled() { |
const base::CommandLine& command_line = |
*base::CommandLine::ForCurrentProcess(); |