Bug 1538710 - Remove disable-shrink pref r=bholley

Differential Revision: https://phabricator.services.mozilla.com/D25134

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Doug Thayer 2019-04-15 18:09:10 +00:00
Родитель 20361c4f24
Коммит 1bcffd5a5f
5 изменённых файлов: 5 добавлений и 18 удалений

Просмотреть файл

@ -567,8 +567,6 @@ static void WebRenderDebugPrefChangeCallback(const char* aPrefName, void*) {
GFX_WEBRENDER_DEBUG(".texture-cache.clear-evicted",
wr::DebugFlags_TEXTURE_CACHE_DBG_CLEAR_EVICTED)
GFX_WEBRENDER_DEBUG(".picture-caching", wr::DebugFlags_PICTURE_CACHING_DBG)
GFX_WEBRENDER_DEBUG(".texture-cache.disable-shrink",
wr::DebugFlags_TEXTURE_CACHE_DBG_DISABLE_SHRINK)
GFX_WEBRENDER_DEBUG(".primitives", wr::DebugFlags_PRIMITIVE_DBG)
// Bit 18 is for the zoom display, which requires the mouse position and thus
// currently only works in wrench.

Просмотреть файл

@ -1416,7 +1416,8 @@ impl RenderBackend {
// Avoid re-building the frame if the current built frame is still valid.
let build_frame = (render_frame && !doc.frame_is_valid) ||
self.resource_cache.requires_frame_build();
self.resource_cache.requires_frame_build() &&
doc.frame_builder.is_some();
// Request composite is true when we want to composite frame even when
// there is no frame update. This happens when video frame is updated under

Просмотреть файл

@ -611,13 +611,6 @@ impl TextureCache {
/// Clear all entries of the specified kind.
fn clear_kind(&mut self, kind: EntryKind) {
// This pref just helps us avoid crashes when we begin using multiple documents.
// What we need to do for clear to work correctly with multiple documents is
// to ensure that we generate frames for all documents whenever we do this.
if self.debug_flags.contains(DebugFlags::TEXTURE_CACHE_DBG_DISABLE_SHRINK) {
return;
}
let mut per_doc_data = mem::replace(&mut self.per_doc_data, FastHashMap::default());
for (&_, doc_data) in per_doc_data.iter_mut() {
let entry_handles = mem::replace(
@ -650,9 +643,6 @@ impl TextureCache {
}
fn clear_shared(&mut self) {
if self.debug_flags.contains(DebugFlags::TEXTURE_CACHE_DBG_DISABLE_SHRINK) {
return;
}
self.unset_doc_data();
self.clear_kind(EntryKind::Shared);
self.shared_textures.clear(&mut self.pending_updates);

Просмотреть файл

@ -1051,15 +1051,14 @@ bitflags! {
const TEXTURE_CACHE_DBG_CLEAR_EVICTED = 1 << 14;
/// Show picture caching debug overlay
const PICTURE_CACHING_DBG = 1 << 15;
const TEXTURE_CACHE_DBG_DISABLE_SHRINK = 1 << 16;
/// Highlight all primitives with colors based on kind.
const PRIMITIVE_DBG = 1 << 17;
const PRIMITIVE_DBG = 1 << 16;
/// Draw a zoom widget showing part of the framebuffer zoomed in.
const ZOOM_DBG = 1 << 18;
const ZOOM_DBG = 1 << 17;
/// Scale the debug renderer down for a smaller screen. This will disrupt
/// any mapping between debug display items and page content, so shouldn't
/// be used with overlays like the picture caching or primitive display.
const SMALL_SCREEN = 1 << 19;
const SMALL_SCREEN = 1 << 18;
}
}

Просмотреть файл

@ -949,7 +949,6 @@ pref("gfx.webrender.blob.paint-flashing", false);
// WebRender debugging utilities.
pref("gfx.webrender.debug.texture-cache", false);
pref("gfx.webrender.debug.texture-cache.clear-evicted", true);
pref("gfx.webrender.debug.texture-cache.disable-shrink", false);
pref("gfx.webrender.debug.render-targets", false);
pref("gfx.webrender.debug.gpu-cache", false);
pref("gfx.webrender.debug.alpha-primitives", false);