#include "common.h"

//region ohos
// Fusion Renderer owns its rendering context and surface through OHRender. Keep
// the public Skiko Ganesh entry points link-safe, but report them as unavailable
// instead of leaving lazy native symbols that crash when called.
static void deleteUnsupportedBackendRenderTarget(KNativePointer) {
}

SKIKO_EXPORT KNativePointer org_jetbrains_skia_BackendRenderTarget__1nGetFinalizer() {
    return reinterpret_cast<KNativePointer>(&deleteUnsupportedBackendRenderTarget);
}

SKIKO_EXPORT KNativePointer org_jetbrains_skia_BackendRenderTarget__1nMakeGL
  (KInt width, KInt height, KInt sampleCnt, KInt stencilBits, KInt fbId, KInt fbFormat) {
    return nullptr;
}

SKIKO_EXPORT KNativePointer org_jetbrains_skia_DirectContext__1nMakeGL() {
    return nullptr;
}

SKIKO_EXPORT void org_jetbrains_skia_DirectContext__1nFlushDefault(KNativePointer ptr) {
}

SKIKO_EXPORT void org_jetbrains_skia_DirectContext__1nSubmit
  (KNativePointer ptr, KBoolean syncCpu) {
}

SKIKO_EXPORT void org_jetbrains_skia_DirectContext__1nAbandon
  (KNativePointer ptr, KInt flags) {
}

SKIKO_EXPORT KNativePointer org_jetbrains_skia_Surface__1nMakeFromBackendRenderTarget
  (KNativePointer pContext, KNativePointer pBackendRenderTarget, KInt surfaceOrigin,
   KInt colorType, KNativePointer colorSpacePtr, KInteropPointer surfacePropsInts) {
    return nullptr;
}
//endregion
