diff options
Diffstat (limited to 'components/canvas_traits/webgl.rs')
-rw-r--r-- | components/canvas_traits/webgl.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/components/canvas_traits/webgl.rs b/components/canvas_traits/webgl.rs index 142119fb75d..9df1c8e56db 100644 --- a/components/canvas_traits/webgl.rs +++ b/components/canvas_traits/webgl.rs @@ -91,6 +91,8 @@ pub struct WebGLCreateContextResult { pub glsl_version: WebGLSLVersion, /// The GL API used by the context. pub api_type: GlType, + /// The format for creating new offscreen framebuffers for this context. + pub framebuffer_format: GLFormats, } #[derive(Clone, Copy, Debug, Deserialize, MallocSizeOf, Serialize)] @@ -886,3 +888,9 @@ pub struct GLLimits { pub max_vertex_texture_image_units: u32, pub max_vertex_uniform_vectors: u32, } + +#[derive(Clone, Copy, Debug, Deserialize, MallocSizeOf, Serialize)] +pub struct GLFormats { + pub texture_format: u32, + pub texture_type: u32, +} |