| #pragma once |
| #include <android/binder_interface_utils.h> |
| |
| #include <cstdint> |
| #include <memory> |
| #include <optional> |
| #include <string> |
| #include <vector> |
| #ifdef BINDER_STABILITY_SUPPORT |
| #include <android/binder_stability.h> |
| #endif // BINDER_STABILITY_SUPPORT |
| #include <aidl/android/hardware/graphics/common/BufferUsage.h> |
| #include <aidl/android/hardware/graphics/common/PixelFormat.h> |
| namespace aidl { |
| namespace android { |
| namespace hardware { |
| namespace graphics { |
| namespace common { |
| class HardwareBufferDescription { |
| public: |
| static const char* descriptor; |
| |
| int32_t width = {}; |
| int32_t height = {}; |
| int32_t layers = {}; |
| ::aidl::android::hardware::graphics::common::PixelFormat format = ::aidl::android::hardware::graphics::common::PixelFormat(0); |
| ::aidl::android::hardware::graphics::common::BufferUsage usage = ::aidl::android::hardware::graphics::common::BufferUsage(0); |
| int32_t stride = {}; |
| |
| binder_status_t readFromParcel(const AParcel* parcel); |
| binder_status_t writeToParcel(AParcel* parcel) const; |
| }; |
| } // namespace common |
| } // namespace graphics |
| } // namespace hardware |
| } // namespace android |
| } // namespace aidl |