Index: talk/app/webrtc/java/android/org/webrtc/RendererCommon.java |
diff --git a/talk/app/webrtc/java/android/org/webrtc/RendererCommon.java b/talk/app/webrtc/java/android/org/webrtc/RendererCommon.java |
index fec41c12e9c719a5be09708893d63fc8ca1d7dcc..94d180da5a0b80d392239505f9ab63485c76df3f 100644 |
--- a/talk/app/webrtc/java/android/org/webrtc/RendererCommon.java |
+++ b/talk/app/webrtc/java/android/org/webrtc/RendererCommon.java |
@@ -76,6 +76,15 @@ public class RendererCommon { |
0, 1, 0, 1}; |
} |
+ // Matrix with transform x' = 1 - x. |
+ public static final float[] horizontalFlipMatrix() { |
+ return new float[] { |
+ -1, 0, 0, 0, |
+ 0, 1, 0, 0, |
+ 0, 0, 1, 0, |
+ 1, 0, 0, 1}; |
+ } |
+ |
/** |
* Returns texture matrix that will have the effect of rotating the frame |rotationDegree| |
* clockwise when rendered. |