X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=gbm_priv.h;h=3dc1e5944584f17554346fa2394e1e2f54bd245d;hb=8b68e2a1121c2075cf72ce2da02cd82bd39d14a7;hp=0e42934d4a1b865f394f21dfd4bf2154f7ea27b3;hpb=7842d8fdd9555a9f64188d492e3d9e643f267cb8;p=android-x86%2Fexternal-minigbm.git diff --git a/gbm_priv.h b/gbm_priv.h index 0e42934..3dc1e59 100644 --- a/gbm_priv.h +++ b/gbm_priv.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 The Chromium OS Authors. All rights reserved. + * Copyright 2014 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -8,48 +8,25 @@ #define GBM_PRIV_H #include -#include #include +#include + +#include "drv.h" #include "gbm.h" -struct gbm_device -{ - int fd; - struct gbm_driver *driver; - void *priv; +struct gbm_device { + struct driver *drv; }; -struct gbm_surface -{ +struct gbm_surface { }; -struct gbm_bo -{ +struct gbm_bo { struct gbm_device *gbm; - uint32_t width; - uint32_t height; - uint32_t size; - uint32_t stride; - uint32_t format; - uint32_t tiling; - union gbm_bo_handle handle; - void *priv; + struct bo *bo; + uint32_t gbm_format; void *user_data; void (*destroy_user_data)(struct gbm_bo *, void *); }; -struct gbm_driver -{ - char *name; - int (*init)(struct gbm_device *gbm); - void (*close)(struct gbm_device *gbm); - int (*bo_create)(struct gbm_bo *bo, uint32_t width, uint32_t height, uint32_t format, uint32_t flags); - int (*bo_destroy)(struct gbm_bo *bo); - struct format_supported { - uint32_t format; - enum gbm_bo_flags usage; - } - format_list[10]; -}; - #endif