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

Issue 2749873002: Move Ozone GPU initialization. (Closed)

Created:
3 years, 9 months ago by kylechar
Modified:
3 years, 9 months ago
Reviewers:
rjkroege, piman
CC:
chromium-reviews, rjkroege, jam, darin-cc_chromium.org, piman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -15 lines) Patch
M content/gpu/in_process_gpu_thread.cc View 2 chunks +10 lines, -0 lines 0 comments Download
M gpu/ipc/service/gpu_init.cc View 1 2 3 4 2 chunks +12 lines, -0 lines 0 comments Download
M ui/gl/init/gl_factory_ozone.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/gl/test/gl_image_test_support.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M ui/gl/test/gl_surface_test_support.cc View 1 2 chunks +15 lines, -4 lines 0 comments Download
M ui/ozone/public/ozone_platform.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M ui/ozone/public/ozone_platform.cc View 1 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
kylechar
piman: content/gpu/*, gpu/ipc/service/*, ui/gl/* rjkroege: ui/ozone/*
3 years, 9 months ago (2017-03-15 18:50:36 UTC) #7
rjkroege
lgtm
3 years, 9 months ago (2017-03-15 19:18:51 UTC) #9
piman
https://codereview.chromium.org/2749873002/diff/80001/gpu/ipc/service/gpu_init.cc File gpu/ipc/service/gpu_init.cc (right): https://codereview.chromium.org/2749873002/diff/80001/gpu/ipc/service/gpu_init.cc#newcode183 gpu/ipc/service/gpu_init.cc:183: // Initialize Ozone GPU after the watchdog and sandbox ...
3 years, 9 months ago (2017-03-15 19:48:21 UTC) #10
kylechar
https://codereview.chromium.org/2749873002/diff/80001/gpu/ipc/service/gpu_init.cc File gpu/ipc/service/gpu_init.cc (right): https://codereview.chromium.org/2749873002/diff/80001/gpu/ipc/service/gpu_init.cc#newcode183 gpu/ipc/service/gpu_init.cc:183: // Initialize Ozone GPU after the watchdog and sandbox ...
3 years, 9 months ago (2017-03-15 20:59:08 UTC) #11
piman
lgtm
3 years, 9 months ago (2017-03-15 21:01:25 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2749873002/100001
3 years, 9 months ago (2017-03-15 21:19:32 UTC) #14
commit-bot: I haz the power
3 years, 9 months ago (2017-03-15 23:50:55 UTC) #17
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/002b2ee07c580e92cefa2fbc7c06...

Powered by Google App Engine
This is Rietveld 408576698