Skip to content

Fix PixelRef.rowBytes type#928

Open
9il wants to merge 1 commit intoJetBrains:masterfrom
9il:patch-1
Open

Fix PixelRef.rowBytes type#928
9il wants to merge 1 commit intoJetBrains:masterfrom
9il:patch-1

Conversation

@9il
Copy link
Copy Markdown

@9il 9il commented May 18, 2024

BTW, pixels pointer is missing in PixelRef.

BTW, `PixelRef` is missing `pixels` pointer.
@elijah-semyonov
Copy link
Copy Markdown
Contributor

elijah-semyonov commented May 21, 2024

It's indeed not a pointer:
https://api.skia.org/classSkPixelRef.html#ae3f171a1d99f2adfd0683654dac3efc7

@igordmn this fix is correct one, seems like we simply didn't use this API anywhere?
Can it possibly break some binary interfacing?

Copy link
Copy Markdown
Contributor

@MatkovIvan MatkovIvan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The type in JNI/C++ needs to be updated too.

extern "C" JNIEXPORT jlong JNICALL Java_org_jetbrains_skia_PixelRefKt_PixelRef_1nGetRowBytes

@MatkovIvan MatkovIvan requested a review from igordmn June 12, 2024 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants