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