2 * Copyright 2021 Google Inc.
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
8 package org.skia.androidkit;
10 import java.lang.IllegalArgumentException;
12 public class HSLAMatrixColorFilter extends ColorFilter {
13 public HSLAMatrixColorFilter(float[] m) throws IllegalArgumentException {
17 private static long makeNative(float[] m) throws IllegalArgumentException {
19 throw new IllegalArgumentException("Expecting an array of 20 floats.");
22 return nMakeHSLAMatrix(m);
25 private static native long nMakeHSLAMatrix(float[] m);