зеркало из https://github.com/mozilla/gecko-dev.git
Merge mozilla-central to autoland.
This commit is contained in:
Коммит
f4d5192efa
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче