Skip to content

Commit

Permalink
Revert "expose DirectContext and BackendRenderTarget on Surface"
Browse files Browse the repository at this point in the history
This reverts commit 26ec690.
  • Loading branch information
silenium-dev committed Jul 8, 2024
1 parent a943b19 commit 76dfe14
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions skiko/src/commonMain/kotlin/org/jetbrains/skia/Surface.kt
Original file line number Diff line number Diff line change
Expand Up @@ -540,9 +540,9 @@ class Surface : RefCnt {
}
}

val context: DirectContext?
internal val _context: DirectContext?

val renderTarget: BackendRenderTarget?
internal val _renderTarget: BackendRenderTarget?

/**
*
Expand Down Expand Up @@ -1002,18 +1002,18 @@ class Surface : RefCnt {
}

internal constructor(ptr: NativePointer) : super(ptr) {
context = null
renderTarget = null
_context = null
_renderTarget = null
}

internal constructor(ptr: NativePointer, context: DirectContext?) : super(ptr) {
this.context = context
renderTarget = null
_context = context
_renderTarget = null
}

internal constructor(ptr: NativePointer, context: DirectContext?, renderTarget: BackendRenderTarget?) : super(ptr) {
this.context = context
this.renderTarget = renderTarget
_context = context
_renderTarget = renderTarget
}
}

Expand Down

0 comments on commit 76dfe14

Please sign in to comment.