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

Commit 00431cca authored by Krzysztof Kosiński's avatar Krzysztof Kosiński
Browse files

Fix headers in Gralloc.h.

Only include headers which are used.

Bug: 423974626
Test: presubmit
Flag: EXEMPT trivial cleanup
Change-Id: Ie98b4453296b7a733df1f75a0b71c256aadd381d
parent 1278a4c2
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -20,14 +20,24 @@
#include <ui/Gralloc5.h>

#include <aidl/android/hardware/graphics/allocator/AllocationError.h>
#include <aidl/android/hardware/graphics/allocator/BufferDescriptorInfo.h>
#include <aidl/android/hardware/graphics/common/StandardMetadataType.h>
#include <aidlcommonsupport/NativeHandle.h>
#include <android/binder_manager.h>
#include <android/hardware/graphics/mapper/IMapper.h>
#include <android/hardware/graphics/mapper/utils/IMapperMetadataTypes.h>
#include <binder/IPCThreadState.h>
#include <dlfcn.h>
#include <gralloctypes/Gralloc4.h>
#include <ui/FatVector.h>
#include <ui/GraphicTypes.h>
#include <vndksupport/linker.h>

#include <cstdint>
#include <memory>
#include <sstream>
#include <string>
#include <vector>

using namespace aidl::android::hardware::graphics::allocator;
using namespace aidl::android::hardware::graphics::common;
using namespace ::android::hardware::graphics::mapper;
+6 −3
Original line number Diff line number Diff line
@@ -17,15 +17,18 @@
#ifndef ANDROID_UI_GRALLOC_H
#define ANDROID_UI_GRALLOC_H

#include <gralloctypes/Gralloc4.h>
#include <hidl/HidlSupport.h>
#include <cutils/native_handle.h>
#include <system/graphics.h>
#include <ui/GraphicTypes.h>
#include <ui/PixelFormat.h>
#include <ui/Rect.h>
#include <utils/StrongPointer.h>
#include <utils/Errors.h>
#include "GraphicBufferAllocator.h"

#include <cstdint>
#include <optional>
#include <string>
#include <vector>

namespace android {