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

Unified Diff: chrome/renderer/render_thread.cc

Issue 6380001: Disabled GPU process prelaunch field trial.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 | « chrome/common/chrome_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_thread.cc
===================================================================
--- chrome/renderer/render_thread.cc (revision 71474)
+++ chrome/renderer/render_thread.cc (working copy)
@@ -127,9 +127,6 @@
static const double kInitialExtensionIdleHandlerDelayS = 5.0 /* seconds */;
static const int64 kMaxExtensionIdleHandlerDelayS = 5*60 /* seconds */;
-static const int kPrelauchGpuPercentage = 5;
-static const int kPrelauchGpuProcessDelayMS = 10000;
-
// Keep the global RenderThread in a TLS slot so it is impossible to access
// incorrectly from the wrong thread.
static base::LazyInstance<base::ThreadLocalPointer<RenderThread> > lazy_tls(
@@ -301,23 +298,6 @@
AddFilter(suicide_on_channel_error_filter_.get());
#endif
- // Establish a channel to the GPU process asynchronously if requested. If the
- // channel is established in time, EstablishGpuChannelSync will not block when
- // it is later called. Delays by a fixed period of time to avoid loading the
- // GPU immediately in an attempt to not slow startup time.
- scoped_refptr<base::FieldTrial> prelaunch_trial(
- new base::FieldTrial("PrelaunchGpuProcessExperiment", 100));
- int prelaunch_group = prelaunch_trial->AppendGroup("prelaunch_gpu_process",
- kPrelauchGpuPercentage);
- if (prelaunch_group == prelaunch_trial->group() ||
- CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kPrelaunchGpuProcess)) {
- message_loop()->PostDelayedTask(FROM_HERE,
- task_factory_->NewRunnableMethod(
- &RenderThread::EstablishGpuChannel),
- kPrelauchGpuProcessDelayMS);
- }
-
TRACE_EVENT_END("RenderThread::Init", 0, "");
}
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698