mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Implement GPURenderBundleEncoder and GPURenderBundle
This commit is contained in:
parent
75abccb16b
commit
aff22db33f
32 changed files with 676 additions and 115 deletions
|
@ -201,7 +201,13 @@ impl GPUCanvasContextMethods for GPUCanvasContext {
|
|||
|
||||
self.webrender_image.set(Some(receiver.recv().unwrap()));
|
||||
|
||||
let swap_chain = GPUSwapChain::new(&self.global(), self.channel.clone(), &self, &*texture);
|
||||
let swap_chain = GPUSwapChain::new(
|
||||
&self.global(),
|
||||
self.channel.clone(),
|
||||
&self,
|
||||
&*texture,
|
||||
descriptor.parent.label.as_ref().cloned(),
|
||||
);
|
||||
*self.swap_chain.borrow_mut() = Some(Dom::from_ref(&*swap_chain));
|
||||
swap_chain
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue