Android: Expose getDisplaySize() helper function
Bug: b/136037072 Change-Id: Idecfc3b295ae2a060aa8955c86f94677153a161b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/143797 Reviewed-by: Paulina Hensman <phensman@webrtc.org> Commit-Queue: Magnus Jedvert <magjed@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28383}
This commit is contained in:

committed by
Commit Bot

parent
554be4b3cb
commit
7dd9969547
@ -233,7 +233,7 @@ public class RendererCommon {
|
|||||||
* Calculate display size based on minimum fraction of the video that must remain visible,
|
* Calculate display size based on minimum fraction of the video that must remain visible,
|
||||||
* video aspect ratio, and maximum display size.
|
* video aspect ratio, and maximum display size.
|
||||||
*/
|
*/
|
||||||
private static Point getDisplaySize(
|
public static Point getDisplaySize(
|
||||||
float minVisibleFraction, float videoAspectRatio, int maxDisplayWidth, int maxDisplayHeight) {
|
float minVisibleFraction, float videoAspectRatio, int maxDisplayWidth, int maxDisplayHeight) {
|
||||||
// If there is no constraint on the amount of cropping, fill the allowed display area.
|
// If there is no constraint on the amount of cropping, fill the allowed display area.
|
||||||
if (minVisibleFraction == 0 || videoAspectRatio == 0) {
|
if (minVisibleFraction == 0 || videoAspectRatio == 0) {
|
||||||
|
Reference in New Issue
Block a user