From 7dd99695472c67fd8bf002fe07fc0134e3ffe3f7 Mon Sep 17 00:00:00 2001 From: Magnus Jedvert Date: Wed, 26 Jun 2019 09:12:48 +0200 Subject: [PATCH] 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 Commit-Queue: Magnus Jedvert Cr-Commit-Position: refs/heads/master@{#28383} --- sdk/android/api/org/webrtc/RendererCommon.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/android/api/org/webrtc/RendererCommon.java b/sdk/android/api/org/webrtc/RendererCommon.java index f039a06f29..e33f9e9064 100644 --- a/sdk/android/api/org/webrtc/RendererCommon.java +++ b/sdk/android/api/org/webrtc/RendererCommon.java @@ -233,7 +233,7 @@ public class RendererCommon { * Calculate display size based on minimum fraction of the video that must remain visible, * video aspect ratio, and maximum display size. */ - private static Point getDisplaySize( + public static Point getDisplaySize( float minVisibleFraction, float videoAspectRatio, int maxDisplayWidth, int maxDisplayHeight) { // If there is no constraint on the amount of cropping, fill the allowed display area. if (minVisibleFraction == 0 || videoAspectRatio == 0) {