minigbm: Refactored minigbm on top a private API
We would like to reuse the same set of drivers for ChromeOS (with a minigbm frontend) and Android (with a gralloc frontend). Since we don't want to pollute the gbm API with gralloc formats and usages, we can refactor minigbm on top a private API that will be a superset of gbm and gralloc. This change redirects gbm calls to the private API. TEST=Ran graphics_Gbm on minnie and cyan, and checked if Chrome boots. BUG=chromium:616275 CQ-DEPEND=CL:367791 Change-Id: I50d10f9d6c7ea936b0d76c5299a58d948939fdf9 Reviewed-on: https://chromium-review.googlesource.com/367780 Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org> Tested-by: Gurchetan Singh <gurchetansingh@chromium.org> Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
This commit is contained in:
parent
0fd114250d
commit
46faf6bf43
21 changed files with 1067 additions and 497 deletions
13
gbm_helpers.h
Normal file
13
gbm_helpers.h
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* Copyright (c) 2016 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.
|
||||
*/
|
||||
|
||||
#ifndef GBM_HELPERS_H
|
||||
#define GBM_HELPERS_H
|
||||
|
||||
drv_format_t gbm_convert_format(uint32_t format);
|
||||
uint64_t gbm_convert_flags(uint32_t flags);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue