1 #ifndef ANDROID_DVR_HARDWARE_COMPOSER_AIDL_ANDROID_DVR_PARCELABLE_COMPOSER_LAYER_H 2 #define ANDROID_DVR_HARDWARE_COMPOSER_AIDL_ANDROID_DVR_PARCELABLE_COMPOSER_LAYER_H 3 4 #include <binder/Parcelable.h> 5 #include <impl/vr_hwc.h> 6 7 #include <memory> 8 9 namespace android { 10 namespace dvr { 11 12 class ParcelableComposerLayer : public Parcelable { 13 public: 14 ParcelableComposerLayer(); 15 ParcelableComposerLayer(const ComposerView::ComposerLayer& layer); 16 ~ParcelableComposerLayer() override; 17 layer()18 ComposerView::ComposerLayer layer() const { return layer_; } 19 20 status_t writeToParcel(Parcel* parcel) const override; 21 status_t readFromParcel(const Parcel* parcel) override; 22 23 private: 24 ComposerView::ComposerLayer layer_; 25 }; 26 27 } // namespace dvr 28 } // namespace android 29 30 #endif // ANDROID_DVR_HARDWARE_COMPOSER_AIDL_ANDROID_DVR_PARCELABLE_COMPOSER_LAYER_H 31