bool MdpCtrl::setSource(const utils::PipeArgs& args) { setSrcWhf(args.whf); //TODO These are hardcoded. Can be moved out of setSource. mOVInfo.alpha = 0xff; mOVInfo.transp_mask = 0xffffffff; //TODO These calls should ideally be a part of setPipeParams API setFlags(args.mdpFlags); setZ(args.zorder); setIsFg(args.isFg); return true; }
bool MdpCtrl::setInfo(RotatorBase* r, const utils::PipeArgs& args, const utils::ScreenInfo& info) { // new request utils::Whf whf(args.whf); mOVInfo.id = MSMFB_NEW_REQUEST; updateSource(r, args, info); setUserData(0); mOVInfo.alpha = 0xff; mOVInfo.transp_mask = 0xffffffff; setZ(args.zorder); setFlags(args.mdpFlags); setWait(args.wait); setIsFg(args.isFg); mSize = whf.size; return true; }