Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
third_party
skia
platform_tools
android
apps
jetski
src
main
java
org
skia
jetski
MatrixColorFilter.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
import
java.lang.IllegalArgumentException;
11
12
public
class
MatrixColorFilter
extends
ColorFilter
{
13
public
MatrixColorFilter
(
float
[] m)
throws
IllegalArgumentException {
14
super(makeNative(m));
15
}
16
17
private
static
long
makeNative(
float
[] m)
throws
IllegalArgumentException {
18
if
(m.length != 20) {
19
throw
new
IllegalArgumentException(
"Expecting an array of 20 floats."
);
20
}
21
22
return
nMakeMatrix(m);
23
}
24
25
private
static
native
long
nMakeMatrix(
float
[] m);
26
};
org.skia.jetski.ColorFilter
Definition
ColorFilter.java:10
org.skia.jetski.MatrixColorFilter
Definition
MatrixColorFilter.java:12
org.skia.jetski.MatrixColorFilter.MatrixColorFilter
MatrixColorFilter(float[] m)
Definition
MatrixColorFilter.java:13
Generated on Fri Apr 26 2024 06:16:31 for Flutter Engine by
1.9.8