Bug 1595994 - P22. Show in which process decoding occurs in media devtools. r=mattwoodrow

Depends on D92745

Differential Revision: https://phabricator.services.mozilla.com/D92863
This commit is contained in:
Jean-Yves Avenard 2020-10-20 23:30:50 +00:00
Родитель b589051f9b
Коммит 30f42deea0
3 изменённых файлов: 7 добавлений и 2 удалений

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

@ -78,7 +78,11 @@ RefPtr<MediaDataDecoder::InitPromise> RemoteDecoderChild::Init() {
return;
}
const auto& initResponse = aResponse.get_InitCompletionIPDL();
mDescription = initResponse.decoderDescription();
mDescription =
initResponse.decoderDescription() +
(GetManager()->Location() == RemoteDecodeIn::RddProcess
? " (RDD remote)"_ns
: " (GPU remote)"_ns);
mIsHardwareAccelerated = initResponse.hardware();
mHardwareAcceleratedReason = initResponse.hardwareReason();
mConversion = initResponse.conversion();

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

@ -78,6 +78,7 @@ class RemoteDecoderManagerChild final
// called from the manager thread.
void RunWhenGPUProcessRecreated(already_AddRefed<Runnable> aTask);
RemoteDecodeIn Location() const { return mLocation; }
layers::VideoBridgeSource GetSource() const;
protected:

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

@ -34,7 +34,7 @@ RefPtr<MediaDataDecoder::InitPromise> RemoteMediaDataDecoder::Init() {
return InitPromise::CreateAndReject(NS_ERROR_DOM_MEDIA_CANCELED,
__func__);
}
mDescription = mChild->GetDescriptionName() + " (remote)"_ns;
mDescription = mChild->GetDescriptionName();
mIsHardwareAccelerated =
mChild->IsHardwareAccelerated(mHardwareAcceleratedReason);
mConversion = mChild->NeedsConversion();