diff options
author | Roman Stratiienko <r.stratiienko@gmail.com> | 2021-02-15 15:41:53 +0200 |
---|---|---|
committer | Roman Stratiienko <r.stratiienko@gmail.com> | 2021-03-01 13:47:46 +0200 |
commit | e398334e9741c9a67a6c257b219c5415855e14c7 (patch) | |
tree | 9038d76deae8ebf3bec2601f331c149c3c9d71cc /bufferinfo | |
parent | fa0023394b883cf77dc26365041e9f3d95a21157 (diff) | |
download | drm_hwcomposer-e398334e9741c9a67a6c257b219c5415855e14c7.tar.gz |
drm_hwcomposer: Create make target to test filegroups
Android.bp contains filegroups that are not built by default
(e.g. using $ mmma external/drm_hwcomposer)
Fix it.
To ensure build will work on wide range of Android versions,
pull depended headers from AOSP-11 tree:
1. Mali: "device/linaro/hikey/gralloc960"
2. Imagination: "hardware/ti/am57x/libhwcomposer"
and put it into ./tests/test_include directory.
Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
Diffstat (limited to 'bufferinfo')
-rw-r--r-- | bufferinfo/BufferInfoGetter.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bufferinfo/BufferInfoGetter.h b/bufferinfo/BufferInfoGetter.h index fad3d16..19ff02b 100644 --- a/bufferinfo/BufferInfoGetter.h +++ b/bufferinfo/BufferInfoGetter.h @@ -57,6 +57,9 @@ class LegacyBufferInfoGetter : public BufferInfoGetter { const gralloc_module_t *gralloc_; }; +#ifdef DISABLE_LEGACY_GETTERS +#define LEGACY_BUFFER_INFO_GETTER(getter_) +#else #define LEGACY_BUFFER_INFO_GETTER(getter_) \ LegacyBufferInfoGetter *LegacyBufferInfoGetter::CreateInstance() { \ auto *instance = new getter_(); \ @@ -71,6 +74,7 @@ class LegacyBufferInfoGetter : public BufferInfoGetter { } \ return instance; \ } +#endif } // namespace android #endif |