diff options
author | Josh Matthews <josh@joshmatthews.net> | 2019-10-08 13:19:21 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2019-10-10 09:57:20 -0400 |
commit | c53680b282aa5bf77ca15b8a4f9ae84afb8b9361 (patch) | |
tree | c41be0a3275b0ef09751a0c85517d4030545ec8a /components/script/dom/bindings | |
parent | 4d7110aca53f54c5a9ee2bbbfbe800627c9af249 (diff) | |
download | servo-c53680b282aa5bf77ca15b8a4f9ae84afb8b9361.tar.gz servo-c53680b282aa5bf77ca15b8a4f9ae84afb8b9361.zip |
webgl: Lazily clear the canvas right before the first webgl command of the next frame.
Diffstat (limited to 'components/script/dom/bindings')
-rw-r--r-- | components/script/dom/bindings/trace.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/script/dom/bindings/trace.rs b/components/script/dom/bindings/trace.rs index 5fbc9629f68..e86c96e0a9e 100644 --- a/components/script/dom/bindings/trace.rs +++ b/components/script/dom/bindings/trace.rs @@ -48,7 +48,9 @@ use canvas_traits::canvas::{CompositionOrBlending, LineCapStyle, LineJoinStyle, use canvas_traits::webgl::WebGLVertexArrayId; use canvas_traits::webgl::{ActiveAttribInfo, ActiveUniformInfo, GlType, TexDataType, TexFormat}; use canvas_traits::webgl::{GLFormats, GLLimits, WebGLQueryId, WebGLSamplerId}; -use canvas_traits::webgl::{WebGLBufferId, WebGLChan, WebGLContextShareMode, WebGLError}; +use canvas_traits::webgl::{ + WebGLBufferId, WebGLChan, WebGLContextId, WebGLContextShareMode, WebGLError, +}; use canvas_traits::webgl::{WebGLFramebufferId, WebGLMsgSender, WebGLPipeline, WebGLProgramId}; use canvas_traits::webgl::{WebGLReceiver, WebGLRenderbufferId, WebGLSLVersion, WebGLSender}; use canvas_traits::webgl::{WebGLShaderId, WebGLSyncId, WebGLTextureId, WebGLVersion}; @@ -519,6 +521,7 @@ unsafe_no_jsmanaged_fields!(Rect<f32>); unsafe_no_jsmanaged_fields!(CascadeData); unsafe_no_jsmanaged_fields!(WindowGLContext); unsafe_no_jsmanaged_fields!(Frame); +unsafe_no_jsmanaged_fields!(WebGLContextId); unsafe impl<'a> JSTraceable for &'a str { #[inline] |