8#include "qwayland-color-management-v1.h"
9#include <kpluginfactory.h>
15#include <config-use-surface-color-management-api.h>
17#if KRITA_USE_SURFACE_COLOR_MANAGEMENT_API
33 KisWaylandSurfaceColorManagerWrapper(QObject *parent,
const QVariantList &args)
49 return registry->
globalExists(QtWayland::wp_color_manager_v1::interface()->name);
53 QPromise<QString> promise;
58 if (infoFetcher->isReady()) {
59 promise.addResult(infoFetcher->report());
62 return promise.future();
66 [infoFetcher] (
const QString &report) {
74 infoFetcher.get(), [promise = std::move(promise)] (
const QString &report)
mutable {
75 promise.addResult(report);
88 registerPlugin<KisExtendedModifiersMapperWayland>()
89#
if KRITA_USE_SURFACE_COLOR_MANAGEMENT_API
90 , registerPlugin<detail::KisWaylandSurfaceColorManagerWrapper>()
91 , registerPlugin<KisWaylandOutputColorInfo>()
92 , registerPlugin<KisWaylandSurfaceColorManagementInfo>()
96#
if KRITA_USE_SURFACE_COLOR_MANAGEMENT_API
98#include <KritaPlatformPluginWayland.moc>
float value(const T *src, size_t ch)
KisSurfaceColorManagementInfo(QObject *parent=nullptr)
virtual QFuture< QString > debugReport()=0
virtual bool surfaceColorManagedByOS()=0
void sigDebugInfoReady(const QString &report)
Wayland registry for tracking wayland globals.
static KisWaylandRegistry * getOrCreate()
bool globalExists(const QString &interface)
K_PLUGIN_FACTORY_WITH_JSON(KritaASCCDLFactory, "kritaasccdl.json", registerPlugin< KritaASCCDL >();) KritaASCCDL
#define KIS_SAFE_ASSERT_RECOVER_NOOP(cond)
ChildIterator< value_type, is_const > parent(const ChildIterator< value_type, is_const > &it)