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

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

Issue 1186393004: gpu: Remove async texture uploads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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/compositor_util.h ('k') | content/browser/renderer_host/compositor_impl_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « content/browser/gpu/compositor_util.h ('k') | content/browser/renderer_host/compositor_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698