Skip to content

Commit

Permalink
Add a RendererOption to configure if picture caching is enabled.
Browse files Browse the repository at this point in the history
Although not hooked up internally yet, this provides a hook so
that the gecko pref can be added.

We'll use this to provide a temporary way to compare performance
and also to allow picture caching to be disabled temporarily if
we encounter any bad regressions.
  • Loading branch information
gw3583 committed Nov 28, 2018
1 parent be65949 commit d2e4f4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webrender/src/renderer.rs
Expand Up @@ -4771,6 +4771,7 @@ pub struct RendererOptions {
pub chase_primitive: ChasePrimitive,
pub support_low_priority_transactions: bool,
pub namespace_alloc_by_client: bool,
pub enable_picture_caching: bool,
}

impl Default for RendererOptions {
Expand Down Expand Up @@ -4806,6 +4807,7 @@ impl Default for RendererOptions {
chase_primitive: ChasePrimitive::Nothing,
support_low_priority_transactions: false,
namespace_alloc_by_client: false,
enable_picture_caching: false,
}
}
}
Expand Down

0 comments on commit d2e4f4c

Please sign in to comment.