• Home
  • Raw
  • Download

Lines Matching refs:viewport

77     if (!mLocked.viewport.isValid()) {  in getBoundsLocked()
81 *outMinX = mLocked.viewport.logicalLeft; in getBoundsLocked()
82 *outMinY = mLocked.viewport.logicalTop; in getBoundsLocked()
83 *outMaxX = mLocked.viewport.logicalRight - 1; in getBoundsLocked()
84 *outMaxY = mLocked.viewport.logicalBottom - 1; in getBoundsLocked()
155 return mLocked.viewport.displayId; in getDisplayId()
203 static void getNonRotatedSize(const DisplayViewport& viewport, int32_t& width, int32_t& height) { in getNonRotatedSize() argument
204 width = viewport.deviceWidth; in getNonRotatedSize()
205 height = viewport.deviceHeight; in getNonRotatedSize()
207 if (viewport.orientation == DISPLAY_ORIENTATION_90 || in getNonRotatedSize()
208 viewport.orientation == DISPLAY_ORIENTATION_270) { in getNonRotatedSize()
213 void MouseCursorController::setDisplayViewport(const DisplayViewport& viewport, in setDisplayViewport() argument
217 if (viewport == mLocked.viewport) { in setDisplayViewport()
221 const DisplayViewport oldViewport = mLocked.viewport; in setDisplayViewport()
222 mLocked.viewport = viewport; in setDisplayViewport()
227 getNonRotatedSize(viewport, newDisplayWidth, newDisplayHeight); in setDisplayViewport()
230 if (oldViewport.displayId != viewport.displayId || oldDisplayWidth != newDisplayWidth || in setDisplayViewport()
242 } else if (oldViewport.orientation != viewport.orientation) { in setDisplayViewport()
269 switch (viewport.orientation) { in setDisplayViewport()
273 y = viewport.deviceHeight - temp; in setDisplayViewport()
276 x = viewport.deviceWidth - x; in setDisplayViewport()
277 y = viewport.deviceHeight - y; in setDisplayViewport()
281 x = viewport.deviceWidth - y; in setDisplayViewport()
368 if (!mLocked.viewport.isValid()) { in updatePointerLocked()
376 mLocked.pointerSprite->setDisplayId(mLocked.viewport.displayId); in updatePointerLocked()
412 if (!mLocked.viewport.isValid()) { in loadResourcesLocked()
419 policy->loadPointerResources(&mResources, mLocked.viewport.displayId); in loadResourcesLocked()
420 policy->loadPointerIcon(&mLocked.pointerIcon, mLocked.viewport.displayId); in loadResourcesLocked()
427 mLocked.viewport.displayId); in loadResourcesLocked()
435 return mLocked.viewport.isValid(); in isViewportValid()
444 mLocked.viewport.displayId); in getAdditionalMouseResources()