Lines Matching refs:srect
837 struct ScreenRect srect = {0, 0, 0, 0};
839 srect.h = abstractScreenModes->height_;
840 srect.w = abstractScreenModes->width_;
843 std::swap(srect.w, srect.h);
844 srect.x = (srect.h - srect.w) / 2; // 2: used to calculate offset to center display node
845 srect.y = (srect.w - srect.h) / 2; // 2: used to calculate offset to center display node
871 RSNode::Animate(timingProtocol, curve, [weakNode, srect, rotationAfter, this]() {
877 SetDisplayNode(rotationAfter, displayNode, srect);
886 SetDisplayNode(rotationAfter, displayNode, srect);
891 const std::shared_ptr<RSDisplayNode>& displayNode, struct ScreenRect srect)
894 displayNode->SetFrame(srect.x, srect.y, srect.w, srect.h);
895 displayNode->SetBounds(srect.x, srect.y, srect.w, srect.h);