Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9855ebdc authored by Jooyung Han's avatar Jooyung Han
Browse files

Use PublicFormat from libui

This is a part of cutting dependency from libmediandk to
libandroid_runtime.

PublicFormat which was defined in android_view_Surface has
been moved to libui.

Bug: 124268753
Test: m -j
Change-Id: I5f0e64ee6e2d5eb6b64491356a5bfa50b512a9c9
Merged-In: I5f0e64ee6e2d5eb6b64491356a5bfa50b512a9c9
parent fe30459e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -261,8 +261,8 @@ AImageReader::AImageReader(int32_t width,
media_status_t
AImageReader::init() {
    PublicFormat publicFormat = static_cast<PublicFormat>(mFormat);
    mHalFormat = android_view_Surface_mapPublicFormatToHalFormat(publicFormat);
    mHalDataSpace = android_view_Surface_mapPublicFormatToHalDataspace(publicFormat);
    mHalFormat = mapPublicFormatToHalFormat(publicFormat);
    mHalDataSpace = mapPublicFormatToHalDataspace(publicFormat);
    mHalUsage = AHardwareBuffer_convertToGrallocUsageBits(mUsage);

    sp<IGraphicBufferProducer> gbProducer;