mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-03 01:38:46 +02:00
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
19 lines
671 B
C++
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
|