diff options
Diffstat (limited to 'content/gpu/gpu_main.cc')
-rw-r--r-- | content/gpu/gpu_main.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc index 1b0f58b..68aff9b 100644 --- a/content/gpu/gpu_main.cc +++ b/content/gpu/gpu_main.cc @@ -51,6 +51,14 @@ int GpuMain(const MainFunctionParams& parameters) { // GpuMsg_Initialize message from the browser. bool dead_on_arrival = false; + // Load the GL implementation and locate the bindings before starting the GPU + // watchdog because this can take a lot of time and the GPU watchdog might + // terminate the GPU process. + if (!gfx::GLSurface::InitializeOneOff()) { + LOG(INFO) << "GLContext::InitializeOneOff failed"; + dead_on_arrival = true; + } + #if defined(OS_WIN) sandbox::TargetServices* target_services = parameters.sandbox_info_.TargetServices(); @@ -61,14 +69,6 @@ int GpuMain(const MainFunctionParams& parameters) { target_services->LowerToken(); #endif - // Load the GL implementation and locate the bindings before starting the GPU - // watchdog because this can take a lot of time and the GPU watchdog might - // terminate the GPU process. - if (!gfx::GLSurface::InitializeOneOff()) { - LOG(INFO) << "GLContext::InitializeOneOff failed"; - dead_on_arrival = true; - } - #if defined(OS_MACOSX) chrome_application_mac::RegisterCrApp(); #endif |