зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
445c72eacd
Коммит
62e876725c
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче