Lines Matching refs:viewport
492 Rect viewport(newViewport);
507 if (viewport.isEmpty()) {
508 // viewport can be invalid if it has never been set, in that case
510 // it's also invalid to have an empty viewport, so we handle that
512 viewport = Rect(w, h);
514 // viewport is always specified in the logical orientation
516 swap(viewport.right, viewport.bottom);
523 float src_width = viewport.width();
524 float src_height = viewport.height();
533 float src_x = viewport.left;
534 float src_y = viewport.top;
540 // The viewport and frame are both in the logical orientation.
549 mScissor = mGlobalTransform.transform(viewport);
573 mViewport = viewport;