зеркало из 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(
|
NS_DispatchToCurrentThread(NS_NewRunnableFunction(
|
||||||
"Destroy + recreate encoder after failed reconfigure",
|
"Destroy + recreate encoder after failed reconfigure",
|
||||||
[self = RefPtr(self), message]() MOZ_CAN_RUN_SCRIPT_BOUNDARY {
|
[self = RefPtr(self), message]()
|
||||||
// Destroy the agent, and finally create a fresh
|
MOZ_CAN_RUN_SCRIPT_BOUNDARY {
|
||||||
// encoder with the new configuration.
|
// Destroy the agent, and finally create a fresh
|
||||||
self->DestroyEncoderAgentIfAny();
|
// encoder with the new configuration.
|
||||||
self->Configure(message);
|
self->DestroyEncoderAgentIfAny();
|
||||||
}));
|
self->Configure(message);
|
||||||
|
}));
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -170,11 +170,9 @@ class EncoderTemplate : public DOMEventTargetHelper {
|
||||||
/* Type conversion functions for the Encoder implementation */
|
/* Type conversion functions for the Encoder implementation */
|
||||||
protected:
|
protected:
|
||||||
virtual RefPtr<OutputType> EncodedDataToOutputType(
|
virtual RefPtr<OutputType> EncodedDataToOutputType(
|
||||||
nsIGlobalObject* aGlobalObject,
|
nsIGlobalObject* aGlobalObject, RefPtr<MediaRawData>& aData) = 0;
|
||||||
RefPtr<MediaRawData>& aData) = 0;
|
|
||||||
virtual OutputConfigType EncoderConfigToDecoderConfig(
|
virtual OutputConfigType EncoderConfigToDecoderConfig(
|
||||||
nsIGlobalObject* aGlobalObject,
|
nsIGlobalObject* aGlobalObject, const RefPtr<MediaRawData>& aData,
|
||||||
const RefPtr<MediaRawData>& aData,
|
|
||||||
const ConfigTypeInternal& aOutputConfig) const = 0;
|
const ConfigTypeInternal& aOutputConfig) const = 0;
|
||||||
/* Internal member variables and functions */
|
/* Internal member variables and functions */
|
||||||
protected:
|
protected:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче