From 67c676d9a7f5a5e0f904855235140d3dff2b502a Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Mon, 20 Apr 2020 20:32:27 +0000 Subject: [PATCH] Bug 1631579 - Remove `webrender::RendererKind` r=gfx-reviewers,kvark It appears to be unused since 2017 with https://github.com/servo/webrender/pull/1587 Differential Revision: https://phabricator.services.mozilla.com/D71647 --- gfx/wr/webrender/src/lib.rs | 2 +- gfx/wr/webrender/src/renderer.rs | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/gfx/wr/webrender/src/lib.rs b/gfx/wr/webrender/src/lib.rs index dc1114758691..5ff352ba1ec2 100644 --- a/gfx/wr/webrender/src/lib.rs +++ b/gfx/wr/webrender/src/lib.rs @@ -212,7 +212,7 @@ pub use crate::frame_builder::ChasePrimitive; pub use crate::prim_store::PrimitiveDebugId; pub use crate::profiler::{ProfilerHooks, set_profiler_hooks}; pub use crate::renderer::{ - AsyncPropertySampler, CpuProfile, DebugFlags, RendererKind, GpuProfile, GraphicsApi, + AsyncPropertySampler, CpuProfile, DebugFlags, GpuProfile, GraphicsApi, GraphicsApiInfo, PipelineInfo, Renderer, RendererError, RendererOptions, RenderResults, RendererStats, SceneBuilderHooks, ThreadListener, ShaderPrecacheFlags, MAX_VERTEX_TEXTURE_WIDTH, diff --git a/gfx/wr/webrender/src/renderer.rs b/gfx/wr/webrender/src/renderer.rs index f92ce7f3e05c..15684e69f342 100644 --- a/gfx/wr/webrender/src/renderer.rs +++ b/gfx/wr/webrender/src/renderer.rs @@ -933,12 +933,6 @@ impl From for ImageBufferKind { } } -#[derive(Debug, Copy, Clone)] -pub enum RendererKind { - Native, - OSMesa, -} - #[derive(Debug)] pub struct GpuProfile { pub frame_id: GpuFrameId, @@ -6721,7 +6715,6 @@ pub struct RendererOptions { pub enable_dithering: bool, pub max_recorded_profiles: usize, pub precache_flags: ShaderPrecacheFlags, - pub renderer_kind: RendererKind, /// Enable sub-pixel anti-aliasing if a fast implementation is available. pub enable_subpixel_aa: bool, /// Enable sub-pixel anti-aliasing if it requires a slow implementation. @@ -6793,7 +6786,6 @@ impl Default for RendererOptions { debug_flags: DebugFlags::empty(), max_recorded_profiles: 0, precache_flags: ShaderPrecacheFlags::empty(), - renderer_kind: RendererKind::Native, enable_subpixel_aa: false, force_subpixel_aa: false, clear_color: Some(ColorF::new(1.0, 1.0, 1.0, 1.0)),