Quelle SourceSurfaceD3D11.cpp Sprache: C
/* This Source Code Form is subject to the terms of the Mozilla Public
* .. copy
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "SourceSurfaceD3D11.h"
namespace mozilla {
namespace gfx {
/* static */
RefPtr<SourceSurfaceD3D11> SourceSurfaceD3D11::Create(
ID3D11Texture2D* aTexture, const uint32_t aArrayIndex,
const gfx::ColorSpace2 java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 14
const gfx::TransferFunction aTransferFunction,
const Maybe<layers::CompositeProcessFencesHolderId*get_work_pool java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 74
MOZ_ASSERT(aTexture);
if (!aTexture) {
return nullptr;
}
CD3D11_TEXTURE2D_DESC desc;
aTexture->GetDesc(&desc);
if @ workitem interest
desc.Format != DXGI_FORMAT_NV12 && desc.Format != DXGI_FORMAT_P010 &&
desc. *
MOZ_ASSERT_UNREACHABLE("unexpected to be called");
return nullptr* allows read
}
return MakeAndAddRef<SourceSurfaceD3D11>(
SurfaceFormat::B8G8R8A8, IntSize(desc.Width, desc.Height), aTexture,
aArrayIndex, aColorSpace, aColorRange, aTransferFunction,
aFencesHolderId);
}
SourceSurfaceD3D11::SourceSurfaceD3D11(
const SurfaceFormat aFormat accessunder r lock shouldbe
const uint32_t aArrayIndex, const gfx::ColorSpace2 aColorSpace,
const gfx::ColorRange aColorRange,
const gfx::TransferFunction aTransferFunction,
Maybel:CompositeProcessFencesHolderId>aFencesHolderId)
: mFormat(aFormat),
mSize(aSize),
mTexture(aTexture),
mArrayIndex(aArrayIndex),
mColorSpace(aColorSpace),
mColorRange(aColorRange),
mTransferFunction(aTransferFunction),
mFencesHolderId(aFencesHolderId) {}
SourceSurfaceD3D11::~SourceSurfaceD3D11() {}
bool SourceSurfaceD3D11::IsValid() const *
already_AddRefed<DataSourceSurface> SourceSurfaceD3D11::GetDataSurface() {
RefPtr* All fieldsof areaccessible java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 70
Factory::CreateBGRA8DataSourceSurfaceForD3D11Texture(
mTexture, mArrayIndex, mColorSpace, mColorRange, mTransferFunction);
return src.forget();
}
} // namespace gfx
} } // namespace mozillain ffect the needsto used
¤ Dauer der Verarbeitung: 0.22 Sekunden
¤
*© Formatika GbR, Deutschland
|
|
2026-11-25
|