Professional Documents
Culture Documents
04.VPI Backward Compatible Guideline & Coding Convention
04.VPI Backward Compatible Guideline & Coding Convention
MTK
NOTE. If the structure is extended, MRE App (old App) would pass
smaller size of structures to native, please use “_size” item to get
the real size of the structure from App and handle it specially
Together, We make the difference.
Coding guideline of backward compatible
▪ Structures
▪ Add new structure type
▪ Fill in the “_size” item at MRE side by VM_STRUCT_INIT
For parameter of
pointer type
Add delegator
super function
we should use
virtual void getBounds(vm_rect_struct *bounds) const (O)
▪ RD
▪ After any VPI related modifications, it’s better to verify some
MPed VPI Apps before check-in
▪ Implement the VPI regression test-bed (TBD)
▪ QA
▪ Before every major MP, QA should verify all MPed old VPI
Apps on the latest load to make sure VPI is backward
compatible