/* * Copyright (c) 2024, Andrew Kaster * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace Web::WebGL { class WebGLSync : public WebGLObject { WEB_PLATFORM_OBJECT(WebGLSync, WebGLObject); GC_DECLARE_ALLOCATOR(WebGLSync); public: static GC::Ref create(JS::Realm& realm, GLuint handle); virtual ~WebGLSync() override; protected: explicit WebGLSync(JS::Realm&, GLuint handle); virtual void initialize(JS::Realm&) override; }; }