gecko-dev/dom/webgpu/ExternalTexture.cpp
Jamie Nicol 82dfe3c6b1 Bug 1975457 - Rename webgpu::ExtTex to ExternalTexture. r=webgpu-reviewers,nical
Now that the previous patch has renamed ExternalTexture to
SharedTexture, we can rename our (currently just a stub)
implementation of webgpu's GPUExternalTexture to ExternalTexture.

Differential Revision: https://phabricator.services.mozilla.com/D255977
2025-07-03 19:02:27 +00:00

19 lines
671 B
C++

/* -*- 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/. */
#include "ExternalTexture.h"
#include "mozilla/dom/WebGPUBinding.h"
namespace mozilla::webgpu {
GPU_IMPL_CYCLE_COLLECTION(ExternalTexture, mGlobal)
JSObject* ExternalTexture::WrapObject(JSContext* cx,
JS ::Handle<JSObject*> givenProto) {
return dom::GPUExternalTexture_Binding::Wrap(cx, this, givenProto);
}
} // namespace mozilla::webgpu