Flutter Engine
The Flutter Engine
Path.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
8package org.skia.jetski;
9
10public class Path {
11 private long mNativeInstance;
12
13 Path(long native_instance) {
14 mNativeInstance = native_instance;
15 }
16
17 /**
18 * Releases any resources associated with this Shader.
19 */
20 public void release() {
21 nRelease(mNativeInstance);
22 mNativeInstance = 0;
23 }
24
25 @Override
26 protected void finalize() throws Throwable {
27 release();
28 }
29
30 // package private
31 long getNativeInstance() { return mNativeInstance; }
32
33 private static native void nRelease(long nativeInstance);
34}
long getNativeInstance()
Definition: Path.java:31
Path(long native_instance)
Definition: Path.java:13