mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
script: Always provide canvas epoch on update_rendering (#39024)
We never not provided it. Testing: Existing tests. Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
parent
b44b461a76
commit
95adb6f673
4 changed files with 11 additions and 11 deletions
|
@ -278,13 +278,13 @@ impl CanvasContext for GPUCanvasContext {
|
|||
}
|
||||
|
||||
/// <https://gpuweb.github.io/gpuweb/#abstract-opdef-updating-the-rendering-of-a-webgpu-canvas>
|
||||
fn update_rendering(&self, canvas_epoch: Option<Epoch>) -> bool {
|
||||
fn update_rendering(&self, canvas_epoch: Epoch) -> bool {
|
||||
if !self.onscreen() {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Step 1: Expire the current texture of context.
|
||||
self.expire_current_texture(canvas_epoch)
|
||||
self.expire_current_texture(Some(canvas_epoch))
|
||||
// Step 2: Set context.[[lastPresentedImage]] to context.[[drawingBuffer]].
|
||||
// TODO: Implement this.
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue