DescriptionMove Ozone GPU initialization.
Right now OzonePlatform::InitializeForGPU() gets called as part of
gl::init::GetAllowedGLImplementations(). We need to properly set
InitParams when initializing the Ozone GPU so the platform knows if it
should expect to be running in a single process.
Instead, have the GpuInit or tests call InitializeForGPU(). This way
GpuInit can set InitParams::single_process to false and tests can set
InitParams::single_process to true.
Since this CL updates all callers of OzonePlatform::InitializeForGPU()
to use the new version, we can also delete the deprecated version of the
function.
BUG=700142, 620934
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Review-Url: https://codereview.chromium.org/2749873002
Cr-Commit-Position: refs/heads/master@{#457266}
Committed: https://chromium.googlesource.com/chromium/src/+/002b2ee07c580e92cefa2fbc7c067af40c367c44
Patch Set 1 #Patch Set 2 : Remove deprecated function. #Patch Set 3 : Add DCHECK. #Patch Set 4 : Move to gpu_init. #
Total comments: 4
Patch Set 5 : Fixes. #
Messages
Total messages: 17 (10 generated)
|