blob: 26e2381401fcb98ffc5bd8b377e56ba04b59d2f1 [file] [log] [blame]
John Stultz18814f62018-02-22 16:02:49 -08001/*
2 * Copyright (C) 2016 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
19#ifndef MALI_GRALLOC_DEBUG_H_
20#define MALI_GRALLOC_DEBUG_H_
21
22#include <utils/String8.h>
23#include <hardware/hardware.h>
24#include "gralloc_priv.h"
25#include "mali_gralloc_module.h"
26
27#if GRALLOC_USE_GRALLOC1_API == 1
28#include <hardware/gralloc1.h>
29#else
30#include <hardware/gralloc.h>
31#endif
32
33void mali_gralloc_dump_buffer_add(private_handle_t *handle);
34void mali_gralloc_dump_buffer_erase(private_handle_t *handle);
35
36void mali_gralloc_dump_string(android::String8 &buf, const char *fmt, ...);
37void mali_gralloc_dump_buffers(android::String8 &dumpBuffer, uint32_t *outSize);
38void mali_gralloc_dump_internal(uint32_t *outSize, char *outBuffer);
39#endif