JetBrains / skija

Java bindings for Skia
Apache License 2.0
2.63k stars 128 forks source link

Add more Surface bindings #60

Closed mzgreen closed 4 years ago

mzgreen commented 4 years ago

Added more bindings for Surface:

int getWidth()
int getHeight()
ImageInfo getImageInfo()
int generationId()
void notifyContentWillChange(ContentChangeMode)
DirectContext getRecordingContext()
Surface makeSurfaceI(ImageInfo);
Surface makeSurface(int, int);
Image makeImageSnapshotR(IRect);
void draw(Canvas, float, float, Paint);
boolean readPixels(Bitmap, int, int);
void writePixels(Bitmap, int, int);
void flushAndSubmit(boolean);
void flush();
boolean isUnique();
mzgreen commented 4 years ago

Not sure how those ascii progress bars in readme are calculated so I haven't updated it 😅

tonsky commented 4 years ago

Awesome, thank you!