Lines Matching refs:crop
104 mCurrentState.crop.makeInvalid(); in Layer()
262 Rect crop; in getContentCrop() local
265 crop = mCurrentCrop; in getContentCrop()
268 crop = mActiveBuffer->getBounds(); in getContentCrop()
271 crop.makeInvalid(); in getContentCrop()
273 return crop; in getContentCrop()
398 Rect crop = getCrop(s); in getCroppedBufferSize() local
399 if (!crop.isEmpty() && size.isValid()) { in getCroppedBufferSize()
400 size.intersect(crop, &size); in getCroppedBufferSize()
401 } else if (!crop.isEmpty()) { in getCroppedBufferSize()
402 size = crop; in getCroppedBufferSize()
1149 bool Layer::setCrop_legacy(const Rect& crop, bool immediate) { in setCrop_legacy() argument
1150 if (mCurrentState.requestedCrop_legacy == crop) return false; in setCrop_legacy()
1152 mCurrentState.requestedCrop_legacy = crop; in setCrop_legacy()
1154 mCurrentState.crop_legacy = crop; in setCrop_legacy()
1376 const FloatRect& crop = compositionState.sourceCrop; in miniDump() local
1377 StringAppendF(&result, "%6.1f %6.1f %6.1f %6.1f\n", crop.left, crop.top, crop.right, in miniDump()
1378 crop.bottom); in miniDump()
2016 const FloatRect& crop = compositionState.sourceCrop; in writeToProto() local
2017 LayerProtoHelper::writeToProto(crop, [&]() { return layerInfo->mutable_hwc_crop(); }); in writeToProto()