7#include "phosphorzones_export.h"
34 qreal screenScale = 0.0);
48 static LayoutSnapshot buildSnapshot(
Layout* layout,
const QString& screenId,
const QRectF& screenGeometry,
51 void onLayoutRemoved(
const QUuid& layoutId);
52 void publishResult(
const QString& screenId,
const QUuid& layoutId,
Layout* layout, uint64_t generation);
54 QHash<QUuid, QPointer<Layout>> m_trackedLayouts;
59 QHash<QString, uint64_t> m_screenGeneration;
60 QPointer<LayoutRegistry> m_layoutManager;
61 QThread* m_thread =
nullptr;
65 std::unique_ptr<LayoutWorker> m_worker;
68 QHash<QString, int> m_inFlight;
static void recalculateSync(Layout *layout, const QRectF &screenGeometry, qreal screenScale=0.0)
Recalculate layout in place, on the calling (GUI) thread.
~LayoutComputeService() override
void setLayoutManager(LayoutRegistry *manager)
LayoutComputeService(QObject *parent=nullptr)
bool requestRecalculate(Layout *layout, const QString &screenId, const QRectF &screenGeometry, qreal screenScale=0.0)
screenScale is the output's logical scale, an input for a layout whose fixed geometry counts device p...
void geometriesComputedForGeneration(const QString &screenId, const QUuid &layoutId, PhosphorZones::Layout *layout, uint64_t generation)
uint64_t currentGeneration(const QString &screenId) const
void requestCompute(const PhosphorZones::LayoutSnapshot &snapshot, uint64_t generation)
Manual zone-layout registry + per-context assignment store.
Definition LayoutRegistry.h:87
Definition LayoutWorker.h:13
Represents a collection of zones that form a layout.
Definition Layout.h:42
Definition IWindowTrackingService.h:24
Definition LayoutComputeTypes.h:53
Definition LayoutComputeTypes.h:27