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