Definition at line 14 of file Surface.java.
◆ Surface()
org.skia.jetski.Surface.Surface |
( |
Bitmap |
bitmap | ) |
|
|
inline |
Create a Surface backed by the provided Bitmap.
The Bitmap must be mutable and its pixels are locked for the lifetime of the Surface.
Definition at line 22 of file Surface.java.
22 {
23 this(CreateBitmapInstance(
bitmap));
24 }
◆ CreateGL()
static Surface org.skia.jetski.Surface.CreateGL |
( |
android.view.Surface |
surface | ) |
|
|
inlinestatic |
◆ createThreadedSurface()
static Surface org.skia.jetski.Surface.createThreadedSurface |
( |
android.view.Surface |
surface | ) |
|
|
inlinestatic |
Create a Surface backed by the provided Android Surface (android.view.Surface). JetSki handles thread management. Assumes OpenGL backend.
Definition at line 39 of file Surface.java.
◆ CreateVulkan()
static Surface org.skia.jetski.Surface.CreateVulkan |
( |
android.view.Surface |
surface | ) |
|
|
inlinestatic |
◆ finalize()
void org.skia.jetski.Surface.finalize |
( |
| ) |
throws Throwable |
|
inlineprotected |
◆ flushAndSubmit()
void org.skia.jetski.Surface.flushAndSubmit |
( |
| ) |
|
|
inline |
Definition at line 67 of file Surface.java.
67 {
68 nFlushAndSubmit(mNativeInstance);
69 }
◆ getCanvas()
Canvas org.skia.jetski.Surface.getCanvas |
( |
| ) |
|
|
inline |
The Canvas associated with this Surface.
Definition at line 46 of file Surface.java.
46 {
47
48
49 return new Canvas(this, nGetNativeCanvas(mNativeInstance));
50 }
◆ getHeight()
int org.skia.jetski.Surface.getHeight |
( |
| ) |
|
|
inline |
Definition at line 75 of file Surface.java.
75 {
76 return nGetHeight(mNativeInstance);
77 }
◆ getWidth()
int org.skia.jetski.Surface.getWidth |
( |
| ) |
|
|
inline |
Definition at line 71 of file Surface.java.
71 {
72 return nGetWidth(mNativeInstance);
73 }
◆ makeImageSnapshot()
Image org.skia.jetski.Surface.makeImageSnapshot |
( |
| ) |
|
|
inline |
Returns an Image capturing the Surface contents. Subsequent drawing to Surface contents are not captured.
Definition at line 57 of file Surface.java.
57 {
58 return new Image(nMakeImageSnapshot(mNativeInstance));
59 }
◆ release()
void org.skia.jetski.Surface.release |
( |
| ) |
|
|
inline |
Releases any resources associated with this Surface.
Definition at line 82 of file Surface.java.
82 {
83 nRelease(mNativeInstance);
84 mNativeInstance = 0;
85 }
The documentation for this class was generated from the following file:
- third_party/skia/platform_tools/android/apps/jetski/src/main/java/org/skia/jetski/Surface.java