diff options
Diffstat (limited to 'gfx/wr/webrender/src/render_task_cache.rs')
-rw-r--r-- | gfx/wr/webrender/src/render_task_cache.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gfx/wr/webrender/src/render_task_cache.rs b/gfx/wr/webrender/src/render_task_cache.rs index 2c81a9824f..621a9afd92 100644 --- a/gfx/wr/webrender/src/render_task_cache.rs +++ b/gfx/wr/webrender/src/render_task_cache.rs @@ -11,7 +11,6 @@ use crate::device::TextureFilter; use crate::freelist::{FreeList, FreeListHandle, WeakFreeListHandle}; use crate::gpu_cache::GpuCache; use crate::internal_types::FastHashMap; -use crate::picture::SurfaceIndex; use crate::prim_store::image::ImageCacheKey; use crate::prim_store::gradient::{ FastLinearGradientCacheKey, LinearGradientCacheKey, RadialGradientCacheKey, @@ -36,7 +35,7 @@ const MAX_CACHE_TASK_SIZE: f32 = 4096.0; /// box-shadow input). pub enum RenderTaskParent { /// Parent is a surface - Surface(SurfaceIndex), + Surface, /// Parent is a render task RenderTask(RenderTaskId), } @@ -288,9 +287,7 @@ impl RenderTaskCache { // an input source. if let Some(render_task_id) = cache_entry.render_task_id { match parent { - // TODO(gw): Remove surface from here as a follow up patch, as it's now implicit - // due to using SurfaceBuilder - RenderTaskParent::Surface(_surface_index) => { + RenderTaskParent::Surface => { // If parent is a surface, use helper fn to add this dependency, // which correctly takes account of the render task configuration // of the surface. |