Index: talk/app/webrtc/java/android/org/webrtc/EglBase.java |
diff --git a/talk/app/webrtc/java/android/org/webrtc/EglBase.java b/talk/app/webrtc/java/android/org/webrtc/EglBase.java |
index 3e7020db2723e6bec26022940fa8d0192793758f..8d2c808cb256c5239d638ed5b6206b370d70cad9 100644 |
--- a/talk/app/webrtc/java/android/org/webrtc/EglBase.java |
+++ b/talk/app/webrtc/java/android/org/webrtc/EglBase.java |
@@ -127,6 +127,18 @@ public final class EglBase { |
return eglSurface != EGL14.EGL_NO_SURFACE; |
} |
+ public int surfaceWidth() { |
+ final int widthArray[] = new int[1]; |
+ EGL14.eglQuerySurface(eglDisplay, eglSurface, EGL14.EGL_WIDTH, widthArray, 0); |
+ return widthArray[0]; |
+ } |
+ |
+ public int surfaceHeight() { |
+ final int heightArray[] = new int[1]; |
+ EGL14.eglQuerySurface(eglDisplay, eglSurface, EGL14.EGL_HEIGHT, heightArray, 0); |
+ return heightArray[0]; |
+ } |
+ |
public void releaseSurface() { |
if (eglSurface != EGL14.EGL_NO_SURFACE) { |
EGL14.eglDestroySurface(eglDisplay, eglSurface); |