Descriptionozone: Add post message loop initialization hook
InitializeForGpuPostMainLoop initializes the subsystems/resources necessary for
the GPU process, after the message loop is started. This is used mainly for
initialization tasks that need to take a reference to the UI thread
MessageLoopProxy. InitializeForGPU() necessarily needs to be called first.
Main motivation for such change is to fix those unit tests that needs to
initialize GL without yet message loop has been initialized. So we broke the
Ozone GPU process initialization in two now, post and pre message loop
initialized.
BUG=450919
TEST=gpu_unittests, content_unittests, gl_tests (need small changes tho, coming
next) chrome and ozone_demo on GBM platform
Patch Set 1 #
Total comments: 4
Patch Set 2 : address spang's comments #Patch Set 3 : rebase #Patch Set 4 : fix typo #Patch Set 5 : init at GLSurface::InitializeOneOffInternal #Patch Set 6 : add DCHECK #Patch Set 7 : return without failing #
Messages
Total messages: 33 (6 generated)
|