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

Side by Side Diff: chromecast/browser/cast_browser_main_parts.cc

Issue 1616953003: content: Improve thread priority for raster threads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromecast/browser/cast_browser_main_parts.h" 5 #include "chromecast/browser/cast_browser_main_parts.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 #elif defined(ARCH_CPU_ARM_FAMILY) 208 #elif defined(ARCH_CPU_ARM_FAMILY)
209 // On Linux arm, enable CMA pipeline by default. 209 // On Linux arm, enable CMA pipeline by default.
210 { switches::kEnableCmaMediaPipeline, "" }, 210 { switches::kEnableCmaMediaPipeline, "" },
211 #if !defined(DISABLE_DISPLAY) 211 #if !defined(DISABLE_DISPLAY)
212 { switches::kEnableHardwareOverlays, "" }, 212 { switches::kEnableHardwareOverlays, "" },
213 #endif 213 #endif
214 #endif 214 #endif
215 #endif // defined(OS_LINUX) 215 #endif // defined(OS_LINUX)
216 // Enable prefixed EME until all Cast partner apps are moved off of it. 216 // Enable prefixed EME until all Cast partner apps are moved off of it.
217 { switches::kEnablePrefixedEncryptedMedia, "" }, 217 { switches::kEnablePrefixedEncryptedMedia, "" },
218 // Needed to fix a bug where the raster thread doesn't get scheduled for a
219 // substantial time (~5 seconds). See https://crbug.com/441895.
220 { switches::kUseNormalPriorityForTileTaskWorkerThreads, "" },
221 // Needed so that our call to GpuDataManager::SetGLStrings doesn't race 218 // Needed so that our call to GpuDataManager::SetGLStrings doesn't race
222 // against GPU process creation (which is otherwise triggered from 219 // against GPU process creation (which is otherwise triggered from
223 // BrowserThreadsStarted). The GPU process will be created as soon as a 220 // BrowserThreadsStarted). The GPU process will be created as soon as a
224 // renderer needs it, which always happens after main loop starts. 221 // renderer needs it, which always happens after main loop starts.
225 { switches::kDisableGpuEarlyInit, "" }, 222 { switches::kDisableGpuEarlyInit, "" },
226 // Enable navigator.connection API. 223 // Enable navigator.connection API.
227 // TODO(derekjchow): Remove this switch when enabled by default. 224 // TODO(derekjchow): Remove this switch when enabled by default.
228 { switches::kEnableNetworkInformation, "" }, 225 { switches::kEnableNetworkInformation, "" },
229 { NULL, NULL }, // Termination 226 { NULL, NULL }, // Termination
230 }; 227 };
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 #if defined(USE_AURA) 449 #if defined(USE_AURA)
453 aura::Env::DeleteInstance(); 450 aura::Env::DeleteInstance();
454 #endif 451 #endif
455 452
456 DeregisterKillOnAlarm(); 453 DeregisterKillOnAlarm();
457 #endif 454 #endif
458 } 455 }
459 456
460 } // namespace shell 457 } // namespace shell
461 } // namespace chromecast 458 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698