Bug 1729570 - part 3: Remove unused gfxPlatform::GetAcceleratedCompositorBackends(). r=jrmuizel

Differential Revision: https://phabricator.services.mozilla.com/D124862
This commit is contained in:
Tetsuharu Ohzeki 2021-09-08 00:32:09 +00:00
Родитель 52196aec67
Коммит cc4be149b9
4 изменённых файлов: 0 добавлений и 37 удалений

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

@ -3099,24 +3099,6 @@ bool gfxPlatform::PerfWarnings() {
return StaticPrefs::gfx_perf_warnings_enabled(); return StaticPrefs::gfx_perf_warnings_enabled();
} }
void gfxPlatform::GetAcceleratedCompositorBackends(
nsTArray<LayersBackend>& aBackends) {
if (gfxConfig::IsEnabled(Feature::OPENGL_COMPOSITING)) {
aBackends.AppendElement(LayersBackend::LAYERS_OPENGL);
} else {
static int tell_me_once = 0;
if (!tell_me_once) {
NS_WARNING("OpenGL-accelerated layers are not supported on this system");
tell_me_once = 1;
}
#ifdef MOZ_WIDGET_ANDROID
MOZ_CRASH(
"OpenGL-accelerated layers are a hard requirement on this platform. "
"Cannot continue without support for them");
#endif
}
}
void gfxPlatform::NotifyCompositorCreated(LayersBackend aBackend) { void gfxPlatform::NotifyCompositorCreated(LayersBackend aBackend) {
if (mCompositorBackend == aBackend) { if (mCompositorBackend == aBackend) {
return; return;

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

@ -834,11 +834,6 @@ class gfxPlatform : public mozilla::layers::MemoryPressureListener {
// platform. // platform.
virtual bool AccelerateLayersByDefault(); virtual bool AccelerateLayersByDefault();
// Returns a prioritized list of available compositor backends for
// acceleration.
virtual void GetAcceleratedCompositorBackends(
nsTArray<mozilla::layers::LayersBackend>& aBackends);
// Returns preferences of canvas and content backends. // Returns preferences of canvas and content backends.
virtual BackendPrefsData GetBackendPrefs() const; virtual BackendPrefsData GetBackendPrefs() const;

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

@ -1756,18 +1756,6 @@ gfxWindowsPlatform::CreateHardwareVsyncSource() {
return d3dVsyncSource.forget(); return d3dVsyncSource.forget();
} }
void gfxWindowsPlatform::GetAcceleratedCompositorBackends(
nsTArray<LayersBackend>& aBackends) {
if (gfxConfig::IsEnabled(Feature::OPENGL_COMPOSITING) &&
StaticPrefs::layers_prefer_opengl_AtStartup()) {
aBackends.AppendElement(LayersBackend::LAYERS_OPENGL);
}
if (gfxConfig::IsEnabled(Feature::D3D11_COMPOSITING)) {
aBackends.AppendElement(LayersBackend::LAYERS_D3D11);
}
}
void gfxWindowsPlatform::ImportGPUDeviceData( void gfxWindowsPlatform::ImportGPUDeviceData(
const mozilla::gfx::GPUDeviceData& aData) { const mozilla::gfx::GPUDeviceData& aData) {
MOZ_ASSERT(XRE_IsParentProcess()); MOZ_ASSERT(XRE_IsParentProcess());

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

@ -204,8 +204,6 @@ class gfxWindowsPlatform final : public gfxPlatform {
protected: protected:
bool AccelerateLayersByDefault() override { return true; } bool AccelerateLayersByDefault() override { return true; }
void GetAcceleratedCompositorBackends(
nsTArray<mozilla::layers::LayersBackend>& aBackends) override;
nsTArray<uint8_t> GetPlatformCMSOutputProfileData() override; nsTArray<uint8_t> GetPlatformCMSOutputProfileData() override;
void GetPlatformDisplayInfo(mozilla::widget::InfoObject& aObj) override; void GetPlatformDisplayInfo(mozilla::widget::InfoObject& aObj) override;