blob: 1c71310448148ea2268f56931f0e35387b28fdee (
plain)
1234567891011121314151617181920212223242526272829303132 | // Copyright (C) 2019 The Qt Company Ltd.// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only#ifndef QWASMOFFSCREENSURFACE_H#define QWASMOFFSCREENSURFACE_H#include <qpa/qplatformoffscreensurface.h>#include <emscripten/val.h>#include <string> QT_BEGIN_NAMESPACE class QOffscreenSurface;class QWasmOffscreenSurface final :public QPlatformOffscreenSurface {public:explicitQWasmOffscreenSurface(QOffscreenSurface *offscreenSurface);~QWasmOffscreenSurface() final;conststd::string &id()const{return m_specialTargetId; }boolisValid()const override;private:std::string m_specialTargetId;emscripten::val m_offscreenCanvas;}; QT_END_NAMESPACE #endif
|