mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
script: add TaskSource
argument to route_promise
(#36831)
Added task_source argument to route_promise, enabling callers to pick the correct TaskSource. Testing: No testing required, straightforward refactor Fixes: #36825 Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
This commit is contained in:
parent
1e8896800a
commit
7e2d2ed0ce
8 changed files with 46 additions and 15 deletions
|
@ -271,7 +271,11 @@ impl GPUBufferMethods<crate::DomTypeHolder> for GPUBuffer {
|
|||
},
|
||||
};
|
||||
|
||||
let sender = route_promise(&promise, self);
|
||||
let sender = route_promise(
|
||||
&promise,
|
||||
self,
|
||||
self.global().task_manager().dom_manipulation_task_source(),
|
||||
);
|
||||
if let Err(e) = self.channel.0.send(WebGPURequest::BufferMapAsync {
|
||||
sender,
|
||||
buffer_id: self.buffer.0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue