mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Report errors from void returning operations
This commit is contained in:
parent
6499367fe2
commit
8cb5fad828
10 changed files with 140 additions and 38 deletions
|
@ -148,12 +148,14 @@ impl GPUDevice {
|
|||
label: Option<String>,
|
||||
) -> DomRoot<Self> {
|
||||
let queue = GPUQueue::new(global, channel.clone(), queue);
|
||||
reflect_dom_object(
|
||||
let device = reflect_dom_object(
|
||||
Box::new(GPUDevice::new_inherited(
|
||||
channel, adapter, extensions, limits, device, &queue, label,
|
||||
)),
|
||||
global,
|
||||
)
|
||||
);
|
||||
queue.set_device(&*device);
|
||||
device
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -341,7 +343,7 @@ impl GPUDeviceMethods for GPUDevice {
|
|||
&self.global(),
|
||||
self.channel.clone(),
|
||||
buffer,
|
||||
self.device,
|
||||
&self,
|
||||
state,
|
||||
descriptor.size,
|
||||
map_info,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue