Lines Matching defs:crop

98     mCurrentState.active.crop.makeInvalid();
239 // this is the crop rectangle that applies to the buffer
241 Rect crop;
243 // if the buffer crop is defined, we use that
244 crop = mCurrentCrop;
247 crop = mActiveBuffer->getBounds();
249 // if we don't have a buffer yet, we use an empty/invalid crop
250 crop.makeInvalid();
252 return crop;
268 if (!s.active.crop.isEmpty()) {
269 win.intersect(s.active.crop, &win);
276 // the content crop is the area of the content that gets scaled to the
278 FloatRect crop(getContentCrop());
280 // the active.crop is the area of the window that gets cropped, but not
284 // apply the projection's clipping to the window crop in
292 if (!s.active.crop.isEmpty()) {
293 activeCrop = s.active.crop;
300 // paranoia: make sure the window-crop is constrained in the
308 // Transform the window crop to match the buffer coordinate system,
323 // below, crop is intersected with winCrop expressed in crop's coordinate space
324 float xScale = crop.getWidth() / float(winWidth);
325 float yScale = crop.getHeight() / float(winHeight);
332 crop.left += insetL;
333 crop.top += insetT;
334 crop.right -= insetR;
335 crop.bottom -= insetB;
337 return crop;
572 * the "source crop" is rounded to texel boundaries.
643 if (!s.active.crop.isEmpty()) {
644 win.intersect(s.active.crop, &win);
724 " current={ active ={ wh={%4u,%4u} crop={%4d,%4d,%4d,%4d} (%4d,%4d) }\n"
725 " requested={ wh={%4u,%4u} crop={%4d,%4d,%4d,%4d} (%4d,%4d) }}\n"
726 " drawing={ active ={ wh={%4u,%4u} crop={%4d,%4d,%4d,%4d} (%4d,%4d) }\n"
727 " requested={ wh={%4u,%4u} crop={%4d,%4d,%4d,%4d} (%4d,%4d) }}\n",
730 c.active.crop.left,
731 c.active.crop.top,
732 c.active.crop.right,
733 c.active.crop.bottom,
734 c.active.crop.getWidth(),
735 c.active.crop.getHeight(),
737 c.requested.crop.left,
738 c.requested.crop.top,
739 c.requested.crop.right,
740 c.requested.crop.bottom,
741 c.requested.crop.getWidth(),
742 c.requested.crop.getHeight(),
744 s.active.crop.left,
745 s.active.crop.top,
746 s.active.crop.right,
747 s.active.crop.bottom,
748 s.active.crop.getWidth(),
749 s.active.crop.getHeight(),
751 s.requested.crop.left,
752 s.requested.crop.top,
753 s.requested.crop.right,
754 s.requested.crop.bottom,
755 s.requested.crop.getWidth(),
756 s.requested.crop.getHeight());
877 bool Layer::setCrop(const Rect& crop) {
878 if (mCurrentState.requested.crop == crop)
881 mCurrentState.requested.crop = crop;
1011 " drawing={ active ={ wh={%4u,%4u} crop={%4d,%4d,%4d,%4d} (%4d,%4d) }\n"
1012 " requested={ wh={%4u,%4u} crop={%4d,%4d,%4d,%4d} (%4d,%4d) }}\n",
1015 front.active.crop.left,
1016 front.active.crop.top,
1017 front.active.crop.right,
1018 front.active.crop.bottom,
1019 front.active.crop.getWidth(),
1020 front.active.crop.getHeight(),
1022 front.requested.crop.left,
1023 front.requested.crop.top,
1024 front.requested.crop.right,
1025 front.requested.crop.bottom,
1026 front.requested.crop.getWidth(),
1027 front.requested.crop.getHeight());
1102 Rect crop(mSurfaceFlingerConsumer->getCurrentCrop());
1105 if ((crop != mCurrentCrop) ||
1109 mCurrentCrop = crop;
1184 "layerStack=%4d, z=%9d, pos=(%g,%g), size=(%4d,%4d), crop=(%4d,%4d,%4d,%4d), "
1189 s.active.crop.left, s.active.crop.top,
1190 s.active.crop.right, s.active.crop.bottom,