Bug 1729816 - part 1: Remove unused gfxPlatform::GetLayerDiagnosticTypes() and related prefs. r=gfx-reviewers,mattwoodrow

Differential Revision: https://phabricator.services.mozilla.com/D125003
This commit is contained in:
Tetsuharu Ohzeki 2021-09-09 02:02:10 +00:00
parent bf70c93173
commit 34efa74406
5 changed files with 0 additions and 44 deletions

View File

@ -4345,7 +4345,6 @@ XPCOMService_GetGfxInfo
??0gfxWindowsPlatform@@QAE@XZ
??0gfxPlatform@@IAE@XZ
??0GfxInfoCollectorBase@widget@mozilla@@QAE@XZ
?GetLayerDiagnosticTypes@gfxPlatform@@QAE?AW4DiagnosticTypes@layers@mozilla@@XZ
?InitBackendPrefs@gfxPlatform@@IAEX$$QAUBackendPrefsData@@@Z
?DetachedFromEditor@EditorEventListener@mozilla@@IBE_NXZ
?ManagerInit@VRManager@gfx@mozilla@@SAXXZ

View File

@ -2850,7 +2850,6 @@ nscstring_fallible_append_utf16_to_latin1_lossy_impl
??0gfxWindowsPlatform@@QEAA@XZ
??0gfxPlatform@@IEAA@XZ
??0GfxInfoCollectorBase@widget@mozilla@@QEAA@XZ
?GetLayerDiagnosticTypes@gfxPlatform@@QEAA?AW4DiagnosticTypes@layers@mozilla@@XZ
?InitBackendPrefs@gfxPlatform@@IEAAX$$QEAUBackendPrefsData@@@Z
?ParseString@@YAXAEBV?$nsTSubstring@D@@DAEAV?$nsTArray@V?$nsTString@D@@@@@Z
?ManagerInit@VRManager@gfx@mozilla@@SAXXZ

View File

@ -1821,23 +1821,6 @@ gfxFontEntry* gfxPlatform::MakePlatformFont(const nsACString& aFontName,
aLength);
}
mozilla::layers::DiagnosticTypes gfxPlatform::GetLayerDiagnosticTypes() {
mozilla::layers::DiagnosticTypes type = DiagnosticTypes::NO_DIAGNOSTIC;
if (StaticPrefs::layers_draw_borders()) {
type |= mozilla::layers::DiagnosticTypes::LAYER_BORDERS;
}
if (StaticPrefs::layers_draw_tile_borders()) {
type |= mozilla::layers::DiagnosticTypes::TILE_BORDERS;
}
if (StaticPrefs::layers_draw_bigimage_borders()) {
type |= mozilla::layers::DiagnosticTypes::BIGIMAGE_BORDERS;
}
if (StaticPrefs::layers_flash_borders()) {
type |= mozilla::layers::DiagnosticTypes::FLASH_BORDERS;
}
return type;
}
BackendPrefsData gfxPlatform::GetBackendPrefs() const {
BackendPrefsData data;

View File

@ -654,11 +654,6 @@ class gfxPlatform : public mozilla::layers::MemoryPressureListener {
int GetScreenDepth() const { return mScreenDepth; }
mozilla::gfx::IntSize GetScreenSize() const { return mScreenSize; }
/**
* Return the layer debugging options to use browser-wide.
*/
mozilla::layers::DiagnosticTypes GetLayerDiagnosticTypes();
static void PurgeSkiaFontCache();
static bool UsesOffMainThreadCompositing();

View File

@ -6355,21 +6355,6 @@
#endif
mirror: always
- name: layers.draw-bigimage-borders
type: RelaxedAtomicBool
value: false
mirror: always
- name: layers.draw-borders
type: RelaxedAtomicBool
value: false
mirror: always
- name: layers.draw-tile-borders
type: RelaxedAtomicBool
value: false
mirror: always
- name: layers.draw-layer-info
type: RelaxedAtomicBool
value: false
@ -6429,11 +6414,6 @@
#endif
mirror: once
- name: layers.flash-borders
type: RelaxedAtomicBool
value: false
mirror: always
# Force all possible layers to be always active layers.
- name: layers.force-active
type: bool