Lines Matching full:crop
95 mCurrentState.active.crop.makeInvalid();
252 // this is the crop rectangle that applies to the buffer
254 Rect crop;
256 // if the buffer crop is defined, we use that
257 crop = mCurrentCrop;
260 crop = mActiveBuffer->getBounds();
262 // if we don't have a buffer yet, we use an empty/invalid crop
263 crop.makeInvalid();
265 return crop;
275 if (!s.active.crop.isEmpty()) {
276 win.intersect(s.active.crop, &win);
283 * The way we compute the crop (aka. texture coordinates when we have a
290 // the content crop is the area of the content that gets scaled to the
292 Rect crop(getContentCrop());
294 // the active.crop is the area of the window that gets cropped, but not
298 // apply the projection's clipping to the window crop in
304 Rect activeCrop(s.transform.transform(s.active.crop));
308 // paranoia: make sure the window-crop is constrained in the
313 // Transform the window crop to match the buffer coordinate system,
329 // of crop and winCrop
330 float xScale = float(crop.width()) / float(winWidth);
331 float yScale = float(crop.height()) / float(winHeight);
338 crop.left += insetL;
339 crop.top += insetT;
340 crop.right -= insetR;
341 crop.bottom -= insetB;
343 return crop;
589 * the "source crop" is rounded to texel boundaries.
665 if (!s.active.crop.isEmpty()) {
666 win.intersect(s.active.crop, &win);
744 " current={ active ={ wh={%4u,%4u} crop={%4d,%4d,%4d,%4d} (%4d,%4d) }\n"
745 " requested={ wh={%4u,%4u} crop={%4d,%4d,%4d,%4d} (%4d,%4d) }}\n"
746 " drawing={ active ={ wh={%4u,%4u} crop={%4d,%4d,%4d,%4d} (%4d,%4d) }\n"
747 " requested={ wh={%4u,%4u} crop={%4d,%4d,%4d,%4d} (%4d,%4d) }}\n",
750 temp.active.crop.left,
751 temp.active.crop.top,
752 temp.active.crop.right,
753 temp.active.crop.bottom,
754 temp.active.crop.getWidth(),
755 temp.active.crop.getHeight(),
757 temp.requested.crop.left,
758 temp.requested.crop.top,
759 temp.requested.crop.right,
760 temp.requested.crop.bottom,
761 temp.requested.crop.getWidth(),
762 temp.requested.crop.getHeight(),
764 front.active.crop.left,
765 front.active.crop.top,
766 front.active.crop.right,
767 front.active.crop.bottom,
768 front.active.crop.getWidth(),
769 front.active.crop.getHeight(),
771 front.requested.crop.left,
772 front.requested.crop.top,
773 front.requested.crop.right,
774 front.requested.crop.bottom,
775 front.requested.crop.getWidth(),
776 front.requested.crop.getHeight());
897 bool Layer::setCrop(const Rect& crop) {
898 if (mCurrentState.requested.crop == crop)
901 mCurrentState.requested.crop = crop;
1036 " drawing={ active ={ wh={%4u,%4u} crop={%4d,%4d,%4d,%4d} (%4d,%4d) }\n"
1037 " requested={ wh={%4u,%4u} crop={%4d,%4d,%4d,%4d} (%4d,%4d) }}\n",
1040 front.active.crop.left,
1041 front.active.crop.top,
1042 front.active.crop.right,
1043 front.active.crop.bottom,
1044 front.active.crop.getWidth(),
1045 front.active.crop.getHeight(),
1047 front.requested.crop.left,
1048 front.requested.crop.top,
1049 front.requested.crop.right,
1050 front.requested.crop.bottom,
1051 front.requested.crop.getWidth(),
1052 front.requested.crop.getHeight());
1111 Rect crop(mSurfaceFlingerConsumer->getCurrentCrop());
1114 if ((crop != mCurrentCrop) ||
1118 mCurrentCrop = crop;
1196 "layerStack=%4d, z=%9d, pos=(%g,%g), size=(%4d,%4d), crop=(%4d,%4d,%4d,%4d), "
1201 s.active.crop.left, s.active.crop.top,
1202 s.active.crop.right, s.active.crop.bottom,