Bug 1872315 - clang-format EncoderTemplate.* r=media-playback-reviewers,alwu

Depends on D197397

Differential Revision: https://phabricator.services.mozilla.com/D197398
This commit is contained in:
Chun-Min Chang 2023-12-29 16:06:44 +00:00
Родитель 445c72eacd
Коммит 62e876725c
2 изменённых файлов: 9 добавлений и 10 удалений

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

@ -789,12 +789,13 @@ void EncoderTemplate<EncoderType>::Reconfigure(
NS_DispatchToCurrentThread(NS_NewRunnableFunction(
"Destroy + recreate encoder after failed reconfigure",
[self = RefPtr(self), message]() MOZ_CAN_RUN_SCRIPT_BOUNDARY {
// Destroy the agent, and finally create a fresh
// encoder with the new configuration.
self->DestroyEncoderAgentIfAny();
self->Configure(message);
}));
[self = RefPtr(self), message]()
MOZ_CAN_RUN_SCRIPT_BOUNDARY {
// Destroy the agent, and finally create a fresh
// encoder with the new configuration.
self->DestroyEncoderAgentIfAny();
self->Configure(message);
}));
});
return;
}

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

@ -170,11 +170,9 @@ class EncoderTemplate : public DOMEventTargetHelper {
/* Type conversion functions for the Encoder implementation */
protected:
virtual RefPtr<OutputType> EncodedDataToOutputType(
nsIGlobalObject* aGlobalObject,
RefPtr<MediaRawData>& aData) = 0;
nsIGlobalObject* aGlobalObject, RefPtr<MediaRawData>& aData) = 0;
virtual OutputConfigType EncoderConfigToDecoderConfig(
nsIGlobalObject* aGlobalObject,
const RefPtr<MediaRawData>& aData,
nsIGlobalObject* aGlobalObject, const RefPtr<MediaRawData>& aData,
const ConfigTypeInternal& aOutputConfig) const = 0;
/* Internal member variables and functions */
protected: