diff options
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmcompositor.h')
| -rw-r--r-- | src/plugins/platforms/wasm/qwasmcompositor.h | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/plugins/platforms/wasm/qwasmcompositor.h b/src/plugins/platforms/wasm/qwasmcompositor.h index 8fc290dda3b..eb529a3d30b 100644 --- a/src/plugins/platforms/wasm/qwasmcompositor.h +++ b/src/plugins/platforms/wasm/qwasmcompositor.h @@ -7,6 +7,7 @@ #include "qwasmwindowstack.h" #include <qpa/qplatformwindow.h> +#include <private/qwasmsuspendresumecontrol_p.h> #include <QMap> #include <tuple> @@ -20,18 +21,6 @@ class QWasmScreen; enum class QWasmWindowTreeNodeChangeType; -class QWasmAnimationFrameHandler -{ -public: - QWasmAnimationFrameHandler(std::function<void(double)> handler); - ~QWasmAnimationFrameHandler(); - int64_t requestAnimationFrame(); - void cancelAnimationFrame(int64_t id); - -private: - uint32_t m_handlerIndex; -}; - class QWasmCompositor final : public QObject { Q_OBJECT @@ -65,8 +54,7 @@ private: bool m_isEnabled = true; QMap<QWasmWindow *, std::tuple<QRect, UpdateRequestDeliveryType>> m_requestUpdateWindows; - QWasmAnimationFrameHandler m_animationFrameHandler; - int64_t m_requestAnimationFrameId = -1; + uint32_t m_drawCallbackHandle = 0; bool m_inDeliverUpdateRequest = false; static bool m_requestUpdateHoldEnabled; }; |
