| Index: ui/android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
|
| diff --git a/ui/android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java b/ui/android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
|
| index 53d33036edebd785726c59dd42110a40fa6b1610..5f4c59885f0846303661d388515c55e3c00f2e2b 100644
|
| --- a/ui/android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
|
| +++ b/ui/android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
|
| @@ -26,6 +26,12 @@ class SurfaceTexturePlatformWrapper {
|
| }
|
|
|
| @CalledByNative
|
| + private static SurfaceTexture createSingleBuffered(int textureId) {
|
| + assert Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT;
|
| + return new SurfaceTexture(textureId, true);
|
| + }
|
| +
|
| + @CalledByNative
|
| private static void destroy(SurfaceTexture surfaceTexture) {
|
| surfaceTexture.setOnFrameAvailableListener(null);
|
| surfaceTexture.release();
|
| @@ -48,6 +54,12 @@ class SurfaceTexturePlatformWrapper {
|
| }
|
|
|
| @CalledByNative
|
| + private static void releaseTexImage(SurfaceTexture surfaceTexture) {
|
| + assert Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT;
|
| + surfaceTexture.releaseTexImage();
|
| + }
|
| +
|
| + @CalledByNative
|
| private static void setDefaultBufferSize(SurfaceTexture surfaceTexture, int width,
|
| int height) {
|
| surfaceTexture.setDefaultBufferSize(width, height);
|
|
|