OSDN Git Service

06b59ba744d47ae78927bdcd5e8fc3f88a36688e
[android-x86/external-minigbm.git] / helpers.h
1 /*
2  * Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
3  * Use of this source code is governed by a BSD-style license that can be
4  * found in the LICENSE file.
5  */
6
7 #ifndef HELPERS_H
8 #define HELPERS_H
9
10 int gbm_bpp_from_format(uint32_t format);
11 int gbm_bytes_from_format(uint32_t format);
12 int gbm_is_format_supported(struct gbm_bo *bo);
13 int gbm_dumb_bo_create(struct gbm_bo *bo, uint32_t width, uint32_t height,
14                        uint32_t format, uint32_t flags);
15 int gbm_dumb_bo_destroy(struct gbm_bo *bo);
16 int gbm_gem_bo_destroy(struct gbm_bo *bo);
17
18 #endif