Flutter Engine
The Flutter Engine
third_party
skia
platform_tools
android
apps
jetski
src
main
java
org
skia
jetski
Shader.java
Go to the documentation of this file.
1
/*
2
* Copyright 2021 Google Inc.
3
*
4
* Use of this source code is governed by a BSD-style license that can be
5
* found in the LICENSE file.
6
*/
7
8
package
org.skia.jetski;
9
10
public
class
Shader
{
11
private
long
mNativeInstance;
12
13
/**
14
* Releases any resources associated with this Shader.
15
*/
16
public
void
release
() {
17
nRelease(mNativeInstance);
18
mNativeInstance = 0;
19
}
20
21
@Override
22
protected
void
finalize
() throws Throwable {
23
release
();
24
}
25
26
// package private
27
Shader
(
long
native_instance) {
28
mNativeInstance = native_instance;
29
}
30
31
long
getNativeInstance
() {
return
mNativeInstance; }
32
33
private
static
native
void
nRelease(
long
nativeInstance);
34
}
org.skia.jetski.Shader
Definition:
Shader.java:10
org.skia.jetski.Shader.release
void release()
Definition:
Shader.java:16
org.skia.jetski.Shader.Shader
Shader(long native_instance)
Definition:
Shader.java:27
org.skia.jetski.Shader.finalize
void finalize()
Definition:
Shader.java:22
org.skia.jetski.Shader.getNativeInstance
long getNativeInstance()
Definition:
Shader.java:31
Generated on Sun Jun 23 2024 21:56:08 for Flutter Engine by
1.9.4