diff options
author | Samson <16504129+sagudev@users.noreply.github.com> | 2025-02-10 18:20:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-10 17:20:27 +0000 |
commit | 0fed99590a9377d8be071e457ecb1b3284f9ef27 (patch) | |
tree | f137190d69c099b65250ad078cee8b1426ed6b3a /components/shared/webrender/rendering_context.rs | |
parent | 90130315a771cf2d52c982523721162f007a400c (diff) | |
download | servo-0fed99590a9377d8be071e457ecb1b3284f9ef27.tar.gz servo-0fed99590a9377d8be071e457ecb1b3284f9ef27.zip |
Revert "Use surfman with glow bindings (#34328)" (#35402)
This reverts commit 503bb10c5b1fafe01ebfb6b320902be2e8671c69.
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Diffstat (limited to 'components/shared/webrender/rendering_context.rs')
-rw-r--r-- | components/shared/webrender/rendering_context.rs | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/components/shared/webrender/rendering_context.rs b/components/shared/webrender/rendering_context.rs index 8b1e1165a3a..e38a9c25828 100644 --- a/components/shared/webrender/rendering_context.rs +++ b/components/shared/webrender/rendering_context.rs @@ -180,8 +180,7 @@ impl RenderingContext for SurfmanRenderingContext { fn framebuffer_object(&self) -> u32 { self.context_surface_info() .unwrap_or(None) - .and_then(|info| info.framebuffer_object) - .map(|fbo| fbo.0.get()) + .map(|info| info.framebuffer_object) .unwrap_or(0) } #[allow(unsafe_code)] @@ -218,10 +217,7 @@ impl RenderingContext for SurfmanRenderingContext { } = device.surface_info(&surface); debug!("... getting texture for surface {:?}", front_buffer_id); let surface_texture = device.create_surface_texture(context, surface).unwrap(); - let gl_texture = device - .surface_texture_object(&surface_texture) - .map(|tex| tex.0.get()) - .unwrap_or(0); + let gl_texture = device.surface_texture_object(&surface_texture); Some((surface_texture, gl_texture, size)) } @@ -429,10 +425,7 @@ impl SurfmanRenderingContext { pub fn surface_texture_object(&self, surface: &SurfaceTexture) -> u32 { let device = &self.0.device.borrow(); - device - .surface_texture_object(surface) - .map(|t| t.0.get()) - .unwrap_or_default() + device.surface_texture_object(surface) } pub fn get_proc_address(&self, name: &str) -> *const c_void { |