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

Side by Side Diff: content/browser/browser_main_loop.cc

Issue 1429083002: gl_surface_egl: ensure off and on screen surfaces use the same EGLConfig (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/browser_main_loop.h" 5 #include "content/browser/browser_main_loop.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/feature_list.h" 9 #include "base/feature_list.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 #if defined(ENABLE_PLUGINS) 156 #if defined(ENABLE_PLUGINS)
157 #include "content/browser/plugin_service_impl.h" 157 #include "content/browser/plugin_service_impl.h"
158 #endif 158 #endif
159 159
160 #if defined(TCMALLOC_TRACE_MEMORY_SUPPORTED) 160 #if defined(TCMALLOC_TRACE_MEMORY_SUPPORTED)
161 #include "third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h" 161 #include "third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h"
162 #endif 162 #endif
163 163
164 #if defined(USE_X11) 164 #if defined(USE_X11)
165 #include "ui/base/x/x11_util_internal.h"
165 #include "ui/gfx/x/x11_connection.h" 166 #include "ui/gfx/x/x11_connection.h"
167 #include "ui/gfx/x/x11_switches.h"
166 #include "ui/gfx/x/x11_types.h" 168 #include "ui/gfx/x/x11_types.h"
167 #endif 169 #endif
168 170
169 #if defined(USE_NSS_CERTS) || !defined(USE_OPENSSL) 171 #if defined(USE_NSS_CERTS) || !defined(USE_OPENSSL)
170 #include "crypto/nss_util.h" 172 #include "crypto/nss_util.h"
171 #endif 173 #endif
172 174
173 #if defined(MOJO_SHELL_CLIENT) 175 #if defined(MOJO_SHELL_CLIENT)
174 #include "components/mus/public/interfaces/window_manager.mojom.h" 176 #include "components/mus/public/interfaces/window_manager.mojom.h"
175 #include "content/common/mojo/mojo_shell_connection_impl.h" 177 #include "content/common/mojo/mojo_shell_connection_impl.h"
(...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1367 config.dwICC = ICC_WIN95_CLASSES; 1369 config.dwICC = ICC_WIN95_CLASSES;
1368 if (!InitCommonControlsEx(&config)) 1370 if (!InitCommonControlsEx(&config))
1369 PLOG(FATAL); 1371 PLOG(FATAL);
1370 #endif 1372 #endif
1371 1373
1372 #if defined(USE_AURA) 1374 #if defined(USE_AURA)
1373 1375
1374 #if defined(USE_X11) 1376 #if defined(USE_X11)
1375 if (!gfx::GetXDisplay()) 1377 if (!gfx::GetXDisplay())
1376 return false; 1378 return false;
1379
1380 #if !defined(OS_CHROMEOS)
1381 // InitializeToolkit is called before CreateStartupTasks which one starts the
1382 // gpu process.
1383 int depth = 0;
1384 ui::ChooseVisualForWindow(NULL, &depth);
1385 DCHECK(depth > 0);
1386 base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
1387 switches::kWindowDepth, base::IntToString(depth));
1388 #endif
1389
1377 #endif 1390 #endif
1378 1391
1379 // Env creates the compositor. Aura widgets need the compositor to be created 1392 // Env creates the compositor. Aura widgets need the compositor to be created
1380 // before they can be initialized by the browser. 1393 // before they can be initialized by the browser.
1381 aura::Env::CreateInstance(true); 1394 aura::Env::CreateInstance(true);
1382 #endif // defined(USE_AURA) 1395 #endif // defined(USE_AURA)
1383 1396
1384 if (parts_) 1397 if (parts_)
1385 parts_->ToolkitInitialized(); 1398 parts_->ToolkitInitialized();
1386 1399
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
1463 DCHECK(is_tracing_startup_for_duration_); 1476 DCHECK(is_tracing_startup_for_duration_);
1464 1477
1465 is_tracing_startup_for_duration_ = false; 1478 is_tracing_startup_for_duration_ = false;
1466 TracingController::GetInstance()->StopTracing( 1479 TracingController::GetInstance()->StopTracing(
1467 TracingController::CreateFileSink( 1480 TracingController::CreateFileSink(
1468 startup_trace_file_, 1481 startup_trace_file_,
1469 base::Bind(OnStoppedStartupTracing, startup_trace_file_))); 1482 base::Bind(OnStoppedStartupTracing, startup_trace_file_)));
1470 } 1483 }
1471 1484
1472 } // namespace content 1485 } // namespace content
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