dawn/native: Initialize tint

Bug: tint:1853
Change-Id: Id6242163f0670a62ed94ac01dcd575b403145b4e
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/122383
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
Ben Clayton 2023-03-03 14:23:39 +00:00 committed by Dawn LUCI CQ
parent f7910f5b95
commit a5193704f6
2 changed files with 4 additions and 4 deletions

View File

@ -23,6 +23,7 @@
#include "dawn/native/Instance.h"
#include "dawn/native/Texture.h"
#include "dawn/platform/DawnPlatform.h"
#include "tint/tint.h"
// Contains the entry-points into dawn_native
@ -187,7 +188,9 @@ AdapterDiscoveryOptionsBase::AdapterDiscoveryOptionsBase(WGPUBackendType type)
// Instance
Instance::Instance(const WGPUInstanceDescriptor* desc)
: mImpl(APICreateInstance(reinterpret_cast<const InstanceDescriptor*>(desc))) {}
: mImpl(APICreateInstance(reinterpret_cast<const InstanceDescriptor*>(desc))) {
tint::Initialize();
}
Instance::~Instance() {
if (mImpl != nullptr) {

View File

@ -91,9 +91,6 @@ struct Coverage {
// types into the global object, and adding the 'create' function on the exported
// object.
Napi::Object Initialize(Napi::Env env, Napi::Object exports) {
// Initialize Tint
tint::Initialize();
// Set all the Dawn procedure function pointers.
dawnProcSetProcs(&dawn::native::GetProcs());