Flutter Engine
The Flutter Engine
SkQP.java
Go to the documentation of this file.
1/*
2 * Copyright 2017 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.skqp;
9
10import android.content.res.AssetManager;
11
12/**
13 This class does the heavy lifting for SkQP and provides the JNI interface
14 used by both SkQPActivity (firebase interface) and SkQPRunner (JUnit interface).
15 */
16public class SkQP {
17 protected native void nInit(AssetManager assetManager, String dataDir);
18 protected native String[] nExecuteUnitTest(int test);
19 protected native void nMakeReport();
20
21 protected String[] mUnitTests;
22
23 // These arrays are intended to be a matching set.
24 // mSkSLErrorTestName[n] holds a name; mSkSLErrorTestShader[n] has the associated shader text.
25 protected String[] mSkSLErrorTestName;
26 protected String[] mSkSLErrorTestShader;
27
28 protected static final String kSkiaGM = "skqp_";
29 protected static final String kSkiaUnitTests = "skqp_unitTest";
30 protected static final String LOG_PREFIX = "org.skia.skqp";
31
32 static {
33 System.loadLibrary("skqp_jni");
34 }
35}
36
static final String kSkiaGM
Definition: SkQP.java:28
native void nMakeReport()
static final String kSkiaUnitTests
Definition: SkQP.java:29
static final String LOG_PREFIX
Definition: SkQP.java:30
String[] mUnitTests
Definition: SkQP.java:21
native String[] nExecuteUnitTest(int test)
native void nInit(AssetManager assetManager, String dataDir)
String[] mSkSLErrorTestShader
Definition: SkQP.java:26
String[] mSkSLErrorTestName
Definition: SkQP.java:25