[FCP++] Refactor CalculateVisualSize in TextPaint and ImagePaint
TextPaintTimingDetector and ImagePaintTimingDetector have the same codes to calculate the visual size of a rect. We can move this common part into PaintTimingDetector. This CL also refactor the logic in CalculateVisualSize for simplification. The new signature return the size value instead of the rect. By do this, we can save the logic of getting size from rect in RecordText and RecordImage. Bug: 869924 Change-Id: Icc2b88db90c1816e24f8ba7446ada701996fc652 Reviewed-on: https://chromium-review.googlesource.com/c/1348859 Commit-Queue: Liquan (Max) Gǔ <maxlg@chromium.org> Reviewed-by:Steve Kobes <skobes@chromium.org> Cr-Commit-Position: refs/heads/master@{#610668}
Showing
Please register or sign in to comment