-
Notifications
You must be signed in to change notification settings - Fork 450
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(👾): use PixelBuffer instead of SampleBuffer on iOS (#2374)
- Loading branch information
1 parent
2f6ff85
commit 8e41da3
Showing
5 changed files
with
10 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,8 +134,8 @@ class RNSkPlatformContext { | |
virtual sk_sp<SkSurface> makeOffscreenSurface(int width, int height) = 0; | ||
|
||
/** | ||
* Creates an image from a native buffer. | ||
* - On iOS, this is a `CMSampleBuffer` | ||
* Creates an image from a native buffer. (for testing purposes only) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
* - On iOS, this is a `CVPixelBufferRef*` | ||
This comment has been minimized.
Sorry, something went wrong.
mrousavy
Contributor
|
||
* - On Android, this is a `AHardwareBuffer*` | ||
* @param buffer The native platform buffer. | ||
* @return sk_sp<SkImage> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
why for testing purposes only? 😅