Lines Matching refs:viewport
426 Rect viewport(newViewport);
441 if (viewport.isEmpty()) {
442 // viewport can be invalid if it has never been set, in that case
444 // it's also invalid to have an empty viewport, so we handle that
446 viewport = Rect(w, h);
448 // viewport is always specified in the logical orientation
450 swap(viewport.right, viewport.bottom);
457 float src_width = viewport.width();
458 float src_height = viewport.height();
467 float src_x = viewport.left;
468 float src_y = viewport.top;
474 // The viewport and frame are both in the logical orientation.
483 mScissor = mGlobalTransform.transform(viewport);
489 mViewport = viewport;