зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1729570 - part 3: Remove unused gfxPlatform::GetAcceleratedCompositorBackends(). r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D124862
This commit is contained in:
Родитель
52196aec67
Коммит
cc4be149b9
|
@ -3099,24 +3099,6 @@ bool gfxPlatform::PerfWarnings() {
|
|||
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) {
|
||||
if (mCompositorBackend == aBackend) {
|
||||
return;
|
||||
|
|
|
@ -834,11 +834,6 @@ class gfxPlatform : public mozilla::layers::MemoryPressureListener {
|
|||
// platform.
|
||||
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.
|
||||
virtual BackendPrefsData GetBackendPrefs() const;
|
||||
|
||||
|
|
|
@ -1756,18 +1756,6 @@ gfxWindowsPlatform::CreateHardwareVsyncSource() {
|
|||
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(
|
||||
const mozilla::gfx::GPUDeviceData& aData) {
|
||||
MOZ_ASSERT(XRE_IsParentProcess());
|
||||
|
|
|
@ -204,8 +204,6 @@ class gfxWindowsPlatform final : public gfxPlatform {
|
|||
|
||||
protected:
|
||||
bool AccelerateLayersByDefault() override { return true; }
|
||||
void GetAcceleratedCompositorBackends(
|
||||
nsTArray<mozilla::layers::LayersBackend>& aBackends) override;
|
||||
nsTArray<uint8_t> GetPlatformCMSOutputProfileData() override;
|
||||
void GetPlatformDisplayInfo(mozilla::widget::InfoObject& aObj) override;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче