From 574bdee19dac1e1e908f6b43667d46de8c96450c Mon Sep 17 00:00:00 2001 From: Chris Spencer Date: Tue, 29 Aug 2023 22:16:45 +0100 Subject: [PATCH] android: Add explanatory comment to u_gralloc MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Chris Spencer Reviewed-by: Roman Stratiienko Reviewed-by: Tapani Pälli Part-of: --- src/util/u_gralloc/u_gralloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/u_gralloc/u_gralloc.c b/src/util/u_gralloc/u_gralloc.c index 0d1e5f6..0adc58e 100644 --- a/src/util/u_gralloc/u_gralloc.c +++ b/src/util/u_gralloc/u_gralloc.c @@ -23,6 +23,7 @@ static const struct u_grallocs { enum u_gralloc_type type; struct u_gralloc *(*create)(); } u_grallocs[] = { + /* Prefer the CrOS API as it is significantly faster than IMapper4 */ {.type = U_GRALLOC_TYPE_CROS, .create = u_gralloc_cros_api_create}, #ifdef USE_IMAPPER4_METADATA_API {.type = U_GRALLOC_TYPE_GRALLOC4, .create = u_gralloc_imapper_api_create}, -- 2.7.4