Implement GPUBuffer.getMappedRange()

This commit is contained in:
Kunal Mohan 2020-06-29 22:37:30 +05:30
parent 19b36bd795
commit 575036bb88
4 changed files with 132 additions and 91 deletions

View file

@ -2769,13 +2769,6 @@ where
warn!("Exit Canvas Paint thread failed ({})", e);
}
if let Some(webgl_threads) = self.webgl_threads.as_ref() {
debug!("Exiting WebGL thread.");
if let Err(e) = webgl_threads.exit() {
warn!("Exit WebGL Thread failed ({})", e);
}
}
debug!("Exiting WebGPU threads.");
let receivers = self
.browsing_context_group_set
@ -2800,6 +2793,13 @@ where
}
}
if let Some(webgl_threads) = self.webgl_threads.as_ref() {
debug!("Exiting WebGL thread.");
if let Err(e) = webgl_threads.exit() {
warn!("Exit WebGL Thread failed ({})", e);
}
}
debug!("Exiting GLPlayer thread.");
if let Some(glplayer_threads) = self.glplayer_threads.as_ref() {
if let Err(e) = glplayer_threads.exit() {