blob: 5148252e7a58acc1a4698a3e8cdda63146843703 [file] [log] [blame]
John Stultz18814f62018-02-22 16:02:49 -08001/*
2 * Copyright (C) 2016-2017 ARM Limited. All rights reserved.
3 *
4 * Copyright (C) 2008 The Android Open Source Project
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18#ifndef MALI_GRALLOC_BUFFERALLOCATION_H_
19#define MALI_GRALLOC_BUFFERALLOCATION_H_
20
21#include <hardware/hardware.h>
22#include "mali_gralloc_module.h"
23#include "mali_gralloc_private_interface_types.h"
24#include "mali_gralloc_buffer.h"
25#include "mali_gralloc_bufferdescriptor.h"
26
27int mali_gralloc_buffer_allocate(mali_gralloc_module *m, const gralloc_buffer_descriptor_t *descriptors,
28 uint32_t numDescriptors, buffer_handle_t *pHandle, bool *shared_backend);
29int mali_gralloc_buffer_free(buffer_handle_t pHandle);
30
31#endif /* MALI_GRALLOC_BUFFERALLOCATION_H_ */