Commit 6a46a4ab authored by maurossi's avatar maurossi
Browse files

drm_hwcomposer: hwcutils: use <ui/Gralloc.h> with Android Q and later

Fixes the following building error with Android P:

external/drm_hwcomposer/utils/hwcutils.cpp:21:10: fatal error: 'ui/Gralloc.h' file not found
         ^~~~~~~~~~~~~~
1 error generated.

Fixes: add24cb7

 ("drm_hwcomposer: stop using pixel_stride")
Signed-off-by: maurossi's avatarMauro Rossi <issor.oruam@gmail.com>
parent c95d2ede
Pipeline #225545 passed with stage
in 30 seconds
......@@ -18,7 +18,11 @@
#define LOG_TAG "hwc-drm-utils"
#include <log/log.h>
#if PLATFORM_SDK_VERSION >= 29 /* Android Q and later */
#include <ui/Gralloc.h>
#else
#include <ui/Gralloc2.h>
#endif
#include <ui/GraphicBufferMapper.h>
#include "bufferinfo/BufferInfoGetter.h"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment