Lines Matching refs:crop
565 bool ResourceDefault::CalculateCropRects(const LayerRect &scissor, LayerRect *crop,
567 float &crop_left = crop->left;
568 float &crop_top = crop->top;
569 float &crop_right = crop->right;
570 float &crop_bottom = crop->bottom;
571 float crop_width = crop->right - crop->left;
572 float crop_height = crop->bottom - crop->top;
620 Normalize(1, 1, crop);
622 if (IsValid(*crop) && IsValid(*dst))
657 DisplayError ResourceDefault::ValidateDimensions(const LayerRect &crop, const LayerRect &dst) {
658 if (!IsValid(crop)) {
659 Log(kTagResources, "Invalid crop rect", crop);
668 float crop_width = crop.right - crop.left;
669 float crop_height = crop.bottom - crop.top;
702 DisplayError ResourceDefault::ValidateScaling(const LayerRect &crop, const LayerRect &dst,
710 error = GetScaleFactor(crop, dst, &scale_x, &scale_y);
772 DisplayError ResourceDefault::GetScaleFactor(const LayerRect &crop, const LayerRect &dst,
774 float crop_width = crop.right - crop.left;
775 float crop_height = crop.bottom - crop.top;