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

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

Issue 2387333004: [Chromecast] Add kDisableES3GLContext to command line on Cast builds. (Closed)
Patch Set: TODO added. Also, it actually works now. Created 4 years, 1 month 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
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 #include "content/public/browser/child_process_security_policy.h" 54 #include "content/public/browser/child_process_security_policy.h"
55 #include "content/public/browser/gpu_data_manager.h" 55 #include "content/public/browser/gpu_data_manager.h"
56 #include "content/public/browser/storage_partition.h" 56 #include "content/public/browser/storage_partition.h"
57 #include "content/public/common/content_switches.h" 57 #include "content/public/common/content_switches.h"
58 #include "device/geolocation/geolocation_delegate.h" 58 #include "device/geolocation/geolocation_delegate.h"
59 #include "device/geolocation/geolocation_provider.h" 59 #include "device/geolocation/geolocation_provider.h"
60 #include "gpu/command_buffer/service/gpu_switches.h" 60 #include "gpu/command_buffer/service/gpu_switches.h"
61 #include "media/base/media.h" 61 #include "media/base/media.h"
62 #include "media/base/media_switches.h" 62 #include "media/base/media_switches.h"
63 #include "ui/compositor/compositor_switches.h" 63 #include "ui/compositor/compositor_switches.h"
64 #include "ui/gl/gl_switches.h"
64 65
65 #if !defined(OS_ANDROID) 66 #if !defined(OS_ANDROID)
66 #include <signal.h> 67 #include <signal.h>
67 #include <sys/prctl.h> 68 #include <sys/prctl.h>
68 #endif 69 #endif
69 #if defined(OS_LINUX) 70 #if defined(OS_LINUX)
70 #include <fontconfig/fontconfig.h> 71 #include <fontconfig/fontconfig.h>
71 #endif 72 #endif
72 73
73 #if defined(OS_ANDROID) 74 #if defined(OS_ANDROID)
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 #if !BUILDFLAG(IS_CAST_AUDIO_ONLY) 235 #if !BUILDFLAG(IS_CAST_AUDIO_ONLY)
235 { switches::kEnableHardwareOverlays, "" }, 236 { switches::kEnableHardwareOverlays, "" },
236 #endif 237 #endif
237 #endif 238 #endif
238 #endif // defined(OS_LINUX) 239 #endif // defined(OS_LINUX)
239 // Needed so that our call to GpuDataManager::SetGLStrings doesn't race 240 // Needed so that our call to GpuDataManager::SetGLStrings doesn't race
240 // against GPU process creation (which is otherwise triggered from 241 // against GPU process creation (which is otherwise triggered from
241 // BrowserThreadsStarted). The GPU process will be created as soon as a 242 // BrowserThreadsStarted). The GPU process will be created as soon as a
242 // renderer needs it, which always happens after main loop starts. 243 // renderer needs it, which always happens after main loop starts.
243 { switches::kDisableGpuEarlyInit, "" }, 244 { switches::kDisableGpuEarlyInit, "" },
245 // TODO(halliwell): Cast builds don't support ES3. Remove this switch when
246 // support is added (crbug.com/659395)
247 { switches::kDisableES3GLContext, "" },
244 // Enable navigator.connection API. 248 // Enable navigator.connection API.
245 // TODO(derekjchow): Remove this switch when enabled by default. 249 // TODO(derekjchow): Remove this switch when enabled by default.
246 { switches::kEnableNetworkInformation, "" }, 250 { switches::kEnableNetworkInformation, "" },
247 { NULL, NULL }, // Termination 251 { NULL, NULL }, // Termination
248 }; 252 };
249 253
250 void AddDefaultCommandLineSwitches(base::CommandLine* command_line) { 254 void AddDefaultCommandLineSwitches(base::CommandLine* command_line) {
251 int i = 0; 255 int i = 0;
252 while (g_default_switches[i].switch_name != NULL) { 256 while (g_default_switches[i].switch_name != NULL) {
253 command_line->AppendSwitchASCII( 257 command_line->AppendSwitchASCII(
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 541
538 void CastBrowserMainParts::PostDestroyThreads() { 542 void CastBrowserMainParts::PostDestroyThreads() {
539 #if !defined(OS_ANDROID) 543 #if !defined(OS_ANDROID)
540 media_resource_tracker_->FinalizeAndDestroy(); 544 media_resource_tracker_->FinalizeAndDestroy();
541 media_resource_tracker_ = nullptr; 545 media_resource_tracker_ = nullptr;
542 #endif 546 #endif
543 } 547 }
544 548
545 } // namespace shell 549 } // namespace shell
546 } // namespace chromecast 550 } // namespace chromecast
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698