Skip to content

Commit

Permalink
last refactor for previously commited changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MaapuH committed Mar 1, 2025
1 parent 32ca897 commit ef6a5ac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ class BackendTexture internal constructor(ptr: NativePointer) : Managed(ptr, _Fi
* Creates BackendTexture from GL texture.
*
* @param textureFormat - GL enum, must be valid
* @throws RuntimeException if nullptr is returned
* @throws RuntimeException if nullptr is returned.
*
* @see glTextureParametersModified
*/
fun makeGL(
textureId: Int,
Expand Down
8 changes: 4 additions & 4 deletions skiko/src/commonMain/kotlin/org/jetbrains/skia/Image.kt
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,16 @@ class Image internal constructor(ptr: NativePointer) : RefCnt(ptr), IHasImageInf
* Creates GPU-backed SkImage from backendTexture associated with context.
*
* Skia will assume ownership of the resource and will release it when no longer needed.
* A non-null SkImage is returned if format of backendTexture is recognized and supported.
* A non-null Image is returned if format of backendTexture is recognized and supported.
* Recognized formats vary by GPU backend.
*
* @param context GPU context
* @param backendTexture texture residing on GPU
* @param origin origin of backendTexture
* @param colorType color type of the resulting image
* @return created SkImage
* @param colorType color type of the resulting Image
* @return created Image
*
* @throws RuntimeException - if nullPtr is returned to create.
* @throws RuntimeException - if nullPtr is returned.
*/
fun adoptTextureFrom(
context: DirectContext,
Expand Down
1 change: 0 additions & 1 deletion skiko/src/jvmMain/cpp/common/Image.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include <jni.h>
#include "SkData.h"
#include "SkImage.h"
#include <ganesh/gl/GrGLBackendSurface.h>
#include "ganesh/GrBackendSurface.h"
#include "ganesh/gl/GrGLBackendSurface.h"
#include "include/gpu/ganesh/SkImageGanesh.h"
Expand Down

0 comments on commit ef6a5ac

Please sign in to comment.