Files
tubestation/gfx/layers/Fence.cpp
sotaro ceeb8ba7b7 Bug 1957001 - Use FenceD3D11 for shnchronization in DXGIYCbCrTextureData r=media-playback-reviewers,gfx-reviewers,alwu,lsalzman
DXGIYCbCrTextureData uses keyed mutex for synchronization. But it is inefficient than FenceD3D11. And it caused the performance problem when DXGIYCbCrTextureData has multiple users like Bug 1956305

Differential Revision: https://phabricator.services.mozilla.com/D243622
2025-04-04 05:27:37 +00:00

25 lines
734 B
C++

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* 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/. */
#include "Fence.h"
namespace mozilla {
namespace layers {
FenceFileHandle::FenceFileHandle(UniqueFileHandle&& aFileHandle)
: mFileHandle(std::move(aFileHandle)) {
MOZ_ASSERT(mFileHandle);
}
FenceFileHandle::~FenceFileHandle() = default;
UniqueFileHandle FenceFileHandle::DuplicateFileHandle() {
return mozilla::DuplicateFileHandle(mFileHandle);
}
} // namespace layers
} // namespace mozilla