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

Issue 2870653002: ozone: Use the right thread for BinderRegistry. (Closed)

Created:
3 years, 7 months ago by sadrul
Modified:
3 years, 6 months ago
Reviewers:
rjkroege, varad, sky
CC:
chromium-reviews, kalyank, piman+watch_chromium.org, ozone-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

ozone: Use the right thread for BinderRegistry. In single-process mode, it is necessary to make sure that the DeviceCursor is initialized on the gpu thread, as opposed to the ui thread. Otherwise, we end up using gpu-thread specific objects (e.g. |OzonePlatformGbm::pending_cursor_requests_|, |OzonePlatformGbm::drm_thread_proxy_|) from both the gpu and ui threads. BUG=717257 Review-Url: https://codereview.chromium.org/2870653002 Cr-Commit-Position: refs/heads/master@{#470056} Committed: https://chromium.googlesource.com/chromium/src/+/2fc984150a60b860103aa4d2f67d9c1686d340da

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -2 lines) Patch
M ui/ozone/platform/drm/gpu/drm_thread_proxy.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/ozone/platform/drm/ozone_platform_gbm.cc View 4 chunks +5 lines, -1 line 1 comment Download

Messages

Total messages: 15 (9 generated)
sadrul
3 years, 7 months ago (2017-05-08 17:22:43 UTC) #6
rjkroege
lgtm
3 years, 7 months ago (2017-05-08 18:09:57 UTC) #7
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/2870653002/1
3 years, 7 months ago (2017-05-08 18:18:06 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/2fc984150a60b860103aa4d2f67d9c1686d340da
3 years, 7 months ago (2017-05-08 18:34:53 UTC) #12
varad
https://codereview.chromium.org/2870653002/diff/1/ui/ozone/platform/drm/ozone_platform_gbm.cc File ui/ozone/platform/drm/ozone_platform_gbm.cc (right): https://codereview.chromium.org/2870653002/diff/1/ui/ozone/platform/drm/ozone_platform_gbm.cc#newcode213 ui/ozone/platform/drm/ozone_platform_gbm.cc:213: gpu_task_runner_ = base::ThreadTaskRunnerHandle::Get(); exo clients segfault here during ui::OzonePlatform::InitializeForGPU ...
3 years, 6 months ago (2017-06-02 09:59:41 UTC) #14
rjkroege
3 years, 6 months ago (2017-06-02 17:25:04 UTC) #15
Message was sent while issue was closed.
On 2017/06/02 09:59:41, varad wrote:
>
https://codereview.chromium.org/2870653002/diff/1/ui/ozone/platform/drm/ozone...
> File ui/ozone/platform/drm/ozone_platform_gbm.cc (right):
> 
>
https://codereview.chromium.org/2870653002/diff/1/ui/ozone/platform/drm/ozone...
> ui/ozone/platform/drm/ozone_platform_gbm.cc:213: gpu_task_runner_ =
> base::ThreadTaskRunnerHandle::Get();
> exo clients segfault here during ui::OzonePlatform::InitializeForGPU when run
> with --use-drm. do we want a ThreadTaskRunnerHandle::IsSet() check before the
> Get()?

File a bug please?

Powered by Google App Engine
This is Rietveld 408576698