Merge mozilla-central to autoland.

This commit is contained in:
Cosmin Sabou 2019-07-18 13:00:45 +03:00
Родитель 838a47ae50 da855d65d1
Коммит f4d5192efa
3 изменённых файлов: 2 добавлений и 25 удалений

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

@ -35,15 +35,11 @@ class KnowsCompositorVideo : public layers::KnowsCompositor {
public:
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(KnowsCompositorVideo, override)
VideoBridgeChild* GetVideoBridge() {
layers::TextureForwarder* GetTextureForwarder() override {
return mTextureFactoryIdentifier.mParentProcessType == GeckoProcessType_GPU
? VideoBridgeChild::GetSingletonToGPUProcess()
: VideoBridgeChild::GetSingletonToParentProcess();
}
layers::TextureForwarder* GetTextureForwarder() override {
return GetVideoBridge();
}
layers::LayersIPCActor* GetLayersIPCActor() override {
return GetTextureForwarder();
}
@ -409,18 +405,7 @@ MediaResult RemoteVideoDecoderParent::ProcessDecodedData(
MediaDataIPDL(data->mOffset, data->mTime, data->mTimecode,
data->mDuration, data->mKeyframe),
video->mDisplay, size, sd, video->mFrameID);
if (mKnowsCompositor) {
RefPtr<RemoteVideoDecoderParent> parent = this;
mKnowsCompositor->GetVideoBridge()->SendFlush()->Then(
GetCurrentThreadSerialEventTarget(), __func__,
[parent, output](bool) { Unused << parent->SendOutput(output); },
[parent](ResponseRejectReason&& aReason) {
parent->Error(NS_ERROR_DOM_MEDIA_NEED_NEW_DECODER);
});
} else {
Unused << SendOutput(output);
}
Unused << SendOutput(output);
}
return NS_OK;

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

@ -26,9 +26,6 @@ sync protocol PVideoBridge
parent:
async PTexture(SurfaceDescriptor aSharedData, ReadLockDescriptor aReadLock, LayersBackend aBackend,
TextureFlags aTextureFlags, uint64_t aSerial);
async Flush() returns (bool result);
};
} // namespace

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

@ -33,11 +33,6 @@ class VideoBridgeParent final : public PVideoBridgeParent,
const uint64_t& aSerial);
bool DeallocPTextureParent(PTextureParent* actor);
mozilla::ipc::IPCResult RecvFlush(FlushResolver&& aResolver) {
aResolver(true);
return IPC_OK();
}
// HostIPCAllocator
base::ProcessId GetChildProcessId() override { return OtherPid(); }
void NotifyNotUsed(PTextureParent* aTexture,