Lines Matching defs:crop

103     mCurrentState.active.crop.makeInvalid();
269 // this is the crop rectangle that applies to the buffer
271 Rect crop;
273 // if the buffer crop is defined, we use that
274 crop = mCurrentCrop;
277 crop = mActiveBuffer->getBounds();
279 // if we don't have a buffer yet, we use an empty/invalid crop
280 crop.makeInvalid();
282 return crop;
303 if (!s.active.crop.isEmpty()) {
304 win.intersect(s.active.crop, &win);
311 // the content crop is the area of the content that gets scaled to the
313 FloatRect crop(getContentCrop());
315 // the active.crop is the area of the window that gets cropped, but not
319 // apply the projection's clipping to the window crop in
327 if (!s.active.crop.isEmpty()) {
328 activeCrop = s.active.crop;
347 // Transform the window crop to match the buffer coordinate system,
393 // below, crop is intersected with winCrop expressed in crop's coordinate space
394 float xScale = crop.getWidth() / float(winWidth);
395 float yScale = crop.getHeight() / float(winHeight);
402 crop.left += insetL;
403 crop.top += insetT;
404 crop.right -= insetR;
405 crop.bottom -= insetB;
407 return crop;
434 if (!s.active.crop.isEmpty()) {
435 Rect activeCrop(s.active.crop);
446 // mark regions outside the crop as transparent
554 if (!s.active.crop.isEmpty()) {
555 win.intersect(s.active.crop, &win);
704 * the "source crop" is rounded to texel boundaries.
788 if (!s.active.crop.isEmpty()) {
789 win.intersect(s.active.crop, &win);
869 " current={ active ={ wh={%4u,%4u} crop={%4d,%4d,%4d,%4d} (%4d,%4d) }\n"
870 " requested={ wh={%4u,%4u} crop={%4d,%4d,%4d,%4d} (%4d,%4d) }}\n"
871 " drawing={ active ={ wh={%4u,%4u} crop={%4d,%4d,%4d,%4d} (%4d,%4d) }\n"
872 " requested={ wh={%4u,%4u} crop={%4d,%4d,%4d,%4d} (%4d,%4d) }}\n",
875 c.active.crop.left,
876 c.active.crop.top,
877 c.active.crop.right,
878 c.active.crop.bottom,
879 c.active.crop.getWidth(),
880 c.active.crop.getHeight(),
882 c.requested.crop.left,
883 c.requested.crop.top,
884 c.requested.crop.right,
885 c.requested.crop.bottom,
886 c.requested.crop.getWidth(),
887 c.requested.crop.getHeight(),
889 s.active.crop.left,
890 s.active.crop.top,
891 s.active.crop.right,
892 s.active.crop.bottom,
893 s.active.crop.getWidth(),
894 s.active.crop.getHeight(),
896 s.requested.crop.left,
897 s.requested.crop.top,
898 s.requested.crop.right,
899 s.requested.crop.bottom,
900 s.requested.crop.getWidth(),
901 s.requested.crop.getHeight());
1022 bool Layer::setCrop(const Rect& crop) {
1023 if (mCurrentState.requested.crop == crop)
1026 mCurrentState.requested.crop = crop;
1176 " drawing={ active ={ wh={%4u,%4u} crop={%4d,%4d,%4d,%4d} (%4d,%4d) }\n"
1177 " requested={ wh={%4u,%4u} crop={%4d,%4d,%4d,%4d} (%4d,%4d) }}\n",
1180 front.active.crop.left,
1181 front.active.crop.top,
1182 front.active.crop.right,
1183 front.active.crop.bottom,
1184 front.active.crop.getWidth(),
1185 front.active.crop.getHeight(),
1187 front.requested.crop.left,
1188 front.requested.crop.top,
1189 front.requested.crop.right,
1190 front.requested.crop.bottom,
1191 front.requested.crop.getWidth(),
1192 front.requested.crop.getHeight());
1274 Rect crop(mSurfaceFlingerConsumer->getCurrentCrop());
1277 if ((crop != mCurrentCrop) ||
1281 mCurrentCrop = crop;
1358 "layerStack=%4d, z=%9d, pos=(%g,%g), size=(%4d,%4d), crop=(%4d,%4d,%4d,%4d), "
1363 s.active.crop.left, s.active.crop.top,
1364 s.active.crop.right, s.active.crop.bottom,