2016-09-21 12:25:33 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
2017-06-14 18:39:59 +03:00
|
|
|
include protocol PTexture;
|
2016-09-21 12:25:41 +03:00
|
|
|
include protocol PVideoDecoder;
|
2016-09-21 12:25:33 +03:00
|
|
|
include LayersSurfaces;
|
|
|
|
include "mozilla/dom/MediaIPCUtils.h";
|
2016-11-22 05:44:38 +03:00
|
|
|
using VideoInfo from "MediaInfo.h";
|
|
|
|
using struct mozilla::layers::TextureFactoryIdentifier from "mozilla/layers/CompositorTypes.h";
|
2016-09-21 12:25:33 +03:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
2016-11-04 03:28:28 +03:00
|
|
|
sync protocol PVideoDecoderManager
|
2016-09-21 12:25:33 +03:00
|
|
|
{
|
2016-09-21 12:25:41 +03:00
|
|
|
manages PVideoDecoder;
|
2016-09-21 12:25:33 +03:00
|
|
|
parent:
|
2016-11-22 05:44:38 +03:00
|
|
|
sync PVideoDecoder(VideoInfo info, TextureFactoryIdentifier identifier) returns (bool success);
|
2016-09-21 12:25:33 +03:00
|
|
|
|
2016-11-04 03:28:28 +03:00
|
|
|
sync Readback(SurfaceDescriptorGPUVideo sd) returns (SurfaceDescriptor aResult);
|
|
|
|
|
2016-09-21 12:25:33 +03:00
|
|
|
async DeallocateSurfaceDescriptorGPUVideo(SurfaceDescriptorGPUVideo sd);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|