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

Issue 2779523004: gpu: Bind the mojom::GpuService request on the IO thread. (Closed)

Created:
3 years, 8 months ago by sadrul
Modified:
3 years, 8 months ago
CC:
chromium-reviews, piman+watch_chromium.org, rjkroege
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

gpu: Bind the mojom::GpuService request on the IO thread. Bind the mojom::GpuService request on the IO thread, so that requests for memory allocation from the host does not block on the main thread. Most of the other API implementations of mojom::GpuService interface needs to happen in the main thread though. So thread hop back onto the main thread in those cases. BUG=643746 Review-Url: https://codereview.chromium.org/2779523004 Cr-Commit-Position: refs/heads/master@{#460195} Committed: https://chromium.googlesource.com/chromium/src/+/0526dc5e7f8cc5b0577b5519893d51a6e87100a1

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -18 lines) Patch
M services/ui/gpu/gpu_service.h View 3 chunks +5 lines, -2 lines 0 comments Download
M services/ui/gpu/gpu_service.cc View 1 2 18 chunks +126 lines, -16 lines 1 comment Download

Dependent Patchsets:

Messages

Total messages: 25 (17 generated)
sadrul
This is a requirement for switching to the mojom api for gpu memory allocation (https://codereview.chromium.org/2701233002/) ...
3 years, 8 months ago (2017-03-28 05:37:07 UTC) #13
sadrul
https://codereview.chromium.org/2779523004/diff/40001/services/ui/gpu/gpu_service.cc File services/ui/gpu/gpu_service.cc (right): https://codereview.chromium.org/2779523004/diff/40001/services/ui/gpu/gpu_service.cc#newcode208 services/ui/gpu/gpu_service.cc:208: FROM_HERE, base::Bind(&GpuService::DestroyGpuMemoryBuffer, weak_ptr_, Just a quick note: I deliberately ...
3 years, 8 months ago (2017-03-28 05:40:13 UTC) #14
Ken Rockot(use gerrit already)
This is unfortunate, but it's hard to imagine a clean API for allowing a single ...
3 years, 8 months ago (2017-03-28 19:09:57 UTC) #16
jbauman
lgtm
3 years, 8 months ago (2017-03-28 19:16:33 UTC) #17
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/2779523004/40001
3 years, 8 months ago (2017-03-28 19:59:40 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/0526dc5e7f8cc5b0577b5519893d51a6e87100a1
3 years, 8 months ago (2017-03-28 20:09:39 UTC) #23
yzshen1
On 2017/03/28 19:09:57, Ken Rockot wrote: > This is unfortunate, but it's hard to imagine ...
3 years, 8 months ago (2017-03-28 22:49:26 UTC) #24
sadrul
3 years, 8 months ago (2017-03-28 22:55:02 UTC) #25
Message was sent while issue was closed.
On 2017/03/28 22:49:26, yzshen1 wrote:
> On 2017/03/28 19:09:57, Ken Rockot wrote:
> > This is unfortunate, but it's hard to imagine a clean API for allowing a
> single
> > interface binding to split dispatch across multiple task runners. If this
> comes
> > up more often we might have to consider a more general solution (+yzshen
FYI).
> > LGTM in any case.
> 
> I don't know much about the GpuService interface, can it be split into
multiple
> interfaces?

It wouldn't really make sense. The thread-split is more of an internal detail of
the API implementation. As far as the api-users are concerned, they shouldn't
need to know (or care) about it.

Powered by Google App Engine
This is Rietveld 408576698