/* -*- Mode: C++; tab-width: 4; 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/. */
RefPtr<IDXGIResource1> resource;
texture->QueryInterface((IDXGIResource1**)getter_AddRefs(resource)); if (!resource) {
gfxCriticalNoteOnce << "Failed to get IDXGIResource"; return 0;
}
void ExternalTextureD3D11::GetSnapshot(const ipc::Shmem& aDestShmem, const gfx::IntSize& aSize) {
RefPtr<ID3D11Device> device;
mTexture->GetDevice(getter_AddRefs(device)); if (!device) {
MOZ_ASSERT_UNREACHABLE("unexpected to be called");
gfxCriticalNoteOnce << "Failed to get ID3D11Device"; return;
}
RefPtr<ID3D11DeviceContext> deviceContext;
device->GetImmediateContext(getter_AddRefs(deviceContext)); if (!deviceContext) {
MOZ_ASSERT_UNREACHABLE("unexpected to be called");
gfxCriticalNoteOnce << "Failed to get ID3D11DeviceContext"; return;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.