blob: 5f15faacfd501c1199f5cad2568e3d806a46d2bf [file] [log] [blame]
Romain Guy3b748a42013-04-17 18:54:38 -07001/*
2 * Copyright (C) 2013 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Derek Sollenbergere78f7c92019-07-31 15:18:47 -040017#include <android/hardware_buffer.h>
Romain Guy3b748a42013-04-17 18:54:38 -070018
19#include "jni.h"
20
21namespace android {
22
Derek Sollenbergere78f7c92019-07-31 15:18:47 -040023class GraphicBuffer;
24
Romain Guy3b748a42013-04-17 18:54:38 -070025// This function does not perform any type checking, the specified
26// object must be an instance of android.view.GraphicBuffer
Derek Sollenbergere78f7c92019-07-31 15:18:47 -040027sp<GraphicBuffer> android_graphics_GraphicBuffer_getNativeGraphicsBuffer(JNIEnv* env, jobject obj);
Romain Guy3b748a42013-04-17 18:54:38 -070028
Derek Sollenbergere78f7c92019-07-31 15:18:47 -040029extern jobject android_graphics_GraphicBuffer_createFromAHardwareBuffer(JNIEnv* env,
30 AHardwareBuffer* buffer);
sergeyv6e3658a2017-01-04 16:57:51 -080031
Romain Guy3b748a42013-04-17 18:54:38 -070032}