icecat: add release icecat-140.10.1-1gnu1 for ecne
This commit is contained in:
parent
a5f93cb214
commit
ff85d7c623
1256 changed files with 63469 additions and 24141 deletions
|
|
@ -81,43 +81,35 @@ void MediaSystemResourceManager::Init() {
|
|||
}
|
||||
}
|
||||
|
||||
MediaSystemResourceManager::MediaSystemResourceManager()
|
||||
: mReentrantMonitor("MediaSystemResourceManager.mReentrantMonitor"),
|
||||
mShutDown(false),
|
||||
mChild(nullptr) {
|
||||
MediaSystemResourceManager::MediaSystemResourceManager() {
|
||||
MOZ_ASSERT(InImageBridgeChildThread());
|
||||
OpenIPC();
|
||||
if (auto imageBridge = ImageBridgeChild::GetSingleton()) {
|
||||
if (auto* child =
|
||||
imageBridge->SendPMediaSystemResourceManagerConstructor()) {
|
||||
mChild = static_cast<media::MediaSystemResourceManagerChild*>(child);
|
||||
mChild->SetManager(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
MediaSystemResourceManager::~MediaSystemResourceManager() {
|
||||
MOZ_ASSERT(IsIpcClosed());
|
||||
}
|
||||
|
||||
void MediaSystemResourceManager::OpenIPC() {
|
||||
MOZ_ASSERT(InImageBridgeChildThread());
|
||||
MOZ_ASSERT(!mChild);
|
||||
|
||||
media::PMediaSystemResourceManagerChild* child =
|
||||
ImageBridgeChild::GetSingleton()
|
||||
->SendPMediaSystemResourceManagerConstructor();
|
||||
mChild = static_cast<media::MediaSystemResourceManagerChild*>(child);
|
||||
mChild->SetManager(this);
|
||||
}
|
||||
|
||||
void MediaSystemResourceManager::CloseIPC() {
|
||||
MOZ_ASSERT(InImageBridgeChildThread());
|
||||
|
||||
if (!mChild) {
|
||||
return;
|
||||
if (mChild) {
|
||||
mChild->Destroy();
|
||||
mChild = nullptr;
|
||||
}
|
||||
mChild->Destroy();
|
||||
mChild = nullptr;
|
||||
mShutDown = true;
|
||||
}
|
||||
|
||||
void MediaSystemResourceManager::OnIpcClosed() { mChild = nullptr; }
|
||||
void MediaSystemResourceManager::OnIpcClosed() {
|
||||
MOZ_ASSERT(InImageBridgeChildThread());
|
||||
|
||||
bool MediaSystemResourceManager::IsIpcClosed() { return mChild ? true : false; }
|
||||
mChild = nullptr;
|
||||
}
|
||||
|
||||
void MediaSystemResourceManager::Register(MediaSystemResourceClient* aClient) {
|
||||
ReentrantMonitorAutoEnter mon(mReentrantMonitor);
|
||||
|
|
@ -245,7 +237,7 @@ bool MediaSystemResourceManager::AcquireSyncNoWait(
|
|||
|
||||
void MediaSystemResourceManager::DoAcquire(uint32_t aId) {
|
||||
MOZ_ASSERT(InImageBridgeChildThread());
|
||||
if (mShutDown || !mChild) {
|
||||
if (!mChild) {
|
||||
HandleAcquireResult(aId, false);
|
||||
return;
|
||||
}
|
||||
|
|
@ -294,10 +286,9 @@ void MediaSystemResourceManager::ReleaseResource(
|
|||
|
||||
void MediaSystemResourceManager::DoRelease(uint32_t aId) {
|
||||
MOZ_ASSERT(InImageBridgeChildThread());
|
||||
if (mShutDown || !mChild) {
|
||||
return;
|
||||
if (mChild) {
|
||||
mChild->SendRelease(aId);
|
||||
}
|
||||
mChild->SendRelease(aId);
|
||||
}
|
||||
|
||||
void MediaSystemResourceManager::RecvResponse(uint32_t aId, bool aSuccess) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue