Feat/row align bytes (#7)
* better bytes alignment Signed-off-by: fufesou <shuanglongchen@yeah.net> * debug macos Signed-off-by: fufesou <shuanglongchen@yeah.net> * debug linux Signed-off-by: fufesou <shuanglongchen@yeah.net> * windows switch_rgba Signed-off-by: fufesou <shuanglongchen@yeah.net> * better switch_rgba Signed-off-by: fufesou <shuanglongchen@yeah.net> --------- Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
044bb260d9
commit
873919902e
16 changed files with 94 additions and 60 deletions
|
|
@ -24,9 +24,9 @@ class TextureRgbaRenderer {
|
|||
|
||||
/// Provide the rgba data to the texture.
|
||||
Future<bool> onRgba(
|
||||
int key, Uint8List data, int height, int width, int stride_align) {
|
||||
int key, Uint8List data, int height, int width, int row_align_bytes) {
|
||||
return TextureRgbaRendererPlatform.instance
|
||||
.onRgba(key, data, height, width, stride_align);
|
||||
.onRgba(key, data, height, width, row_align_bytes);
|
||||
}
|
||||
|
||||
Future<int> getTexturePtr(int key) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue