• Home
  • Raw
  • Download

Lines Matching refs:crop

134     mCurrentState.crop.makeInvalid();  in Layer()
137 mCurrentState.requestedCrop = mCurrentState.crop; in Layer()
426 Rect crop; in getContentCrop() local
429 crop = mCurrentCrop; in getContentCrop()
432 crop = mActiveBuffer->getBounds(); in getContentCrop()
435 crop.makeInvalid(); in getContentCrop()
437 return crop; in getContentCrop()
454 if (!s.crop.isEmpty()) { in computeScreenBounds()
455 win.intersect(s.crop, &win); in computeScreenBounds()
497 if (!s.crop.isEmpty()) { in computeBounds()
498 win.intersect(s.crop, &win); in computeBounds()
533 if (!s.crop.isEmpty()) { in computeInitialCrop()
534 activeCrop.intersect(s.crop, &activeCrop); in computeInitialCrop()
553 FloatRect crop = getContentCrop().toFloatRect(); in computeCrop() local
624 float xScale = crop.getWidth() / float(winWidth); in computeCrop()
625 float yScale = crop.getHeight() / float(winHeight); in computeCrop()
632 crop.left += insetL; in computeCrop()
633 crop.top += insetT; in computeCrop()
634 crop.right -= insetR; in computeCrop()
635 crop.bottom -= insetB; in computeCrop()
637 return crop; in computeCrop()
696 if (!s.crop.isEmpty()) {
697 Rect activeCrop(s.crop);
993 if (!s.crop.isEmpty()) {
994 win.intersect(s.crop, &win);
1042 if (!s.crop.isEmpty()) {
1043 win.intersect(s.crop, &win);
1422 static void boundPoint(vec2* point, const Rect& crop) { argument
1423 if (point->x < crop.left) {
1424 point->x = crop.left;
1426 if (point->x > crop.right) {
1427 point->x = crop.right;
1429 if (point->y < crop.top) {
1430 point->y = crop.top;
1432 if (point->y > crop.bottom) {
1433 point->y = crop.bottom;
1667 c.crop.left,
1668 c.crop.top,
1669 c.crop.right,
1670 c.crop.bottom,
1671 c.crop.getWidth(),
1672 c.crop.getHeight(),
1675 s.crop.left,
1676 s.crop.top,
1677 s.crop.right,
1678 s.crop.bottom,
1679 s.crop.getWidth(),
1680 s.crop.getHeight(),
1918 bool Layer::setCrop(const Rect& crop, bool immediate) { argument
1919 if (mCurrentState.requestedCrop == crop)
1922 mCurrentState.requestedCrop = crop;
1924 mCurrentState.crop = crop;
1933 bool Layer::setFinalCrop(const Rect& crop, bool immediate) { argument
1934 if (mCurrentState.requestedFinalCrop == crop)
1937 mCurrentState.requestedFinalCrop = crop;
1939 mCurrentState.finalCrop = crop;
2332 Rect crop(mSurfaceFlingerConsumer->getCurrentCrop()); local
2335 if ((crop != mCurrentCrop) ||
2339 mCurrentCrop = crop;
2457 s.crop.left, s.crop.top,
2458 s.crop.right, s.crop.bottom,
2527 const FloatRect& crop = hwcInfo.sourceCrop; local
2528 result.appendFormat("%6.1f %6.1f %6.1f %6.1f\n", crop.left, crop.top,
2529 crop.right, crop.bottom);