Lines Matching refs:viewport
392 Rect viewport(newViewport);
407 if (viewport.isEmpty()) {
408 // viewport can be invalid if it has never been set, in that case
410 // it's also invalid to have an empty viewport, so we handle that
412 viewport = Rect(w, h);
414 // viewport is always specified in the logical orientation
416 swap(viewport.right, viewport.bottom);
423 float src_width = viewport.width();
424 float src_height = viewport.height();
433 float src_x = viewport.left;
434 float src_y = viewport.top;
440 // The viewport and frame are both in the logical orientation.
449 mScissor = mGlobalTransform.transform(viewport);
455 mViewport = viewport;