| 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 5f4c59885f0846303661d388515c55e3c00f2e2b..b3ebd5a274e8d6242e958c12fc2dd6c13a43f5b7 100644
|
| --- a/ui/android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
|
| +++ b/ui/android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
|
| @@ -4,6 +4,7 @@
|
|
|
| package org.chromium.ui.gl;
|
|
|
| +import android.annotation.TargetApi;
|
| import android.graphics.SurfaceTexture;
|
| import android.os.Build;
|
| import android.util.Log;
|
| @@ -25,6 +26,7 @@ class SurfaceTexturePlatformWrapper {
|
| return new SurfaceTexture(textureId);
|
| }
|
|
|
| + @TargetApi(Build.VERSION_CODES.KITKAT)
|
| @CalledByNative
|
| private static SurfaceTexture createSingleBuffered(int textureId) {
|
| assert Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT;
|
| @@ -53,6 +55,7 @@ class SurfaceTexturePlatformWrapper {
|
| }
|
| }
|
|
|
| + @TargetApi(Build.VERSION_CODES.KITKAT)
|
| @CalledByNative
|
| private static void releaseTexImage(SurfaceTexture surfaceTexture) {
|
| assert Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT;
|
| @@ -60,22 +63,18 @@ class SurfaceTexturePlatformWrapper {
|
| }
|
|
|
| @CalledByNative
|
| - private static void setDefaultBufferSize(SurfaceTexture surfaceTexture, int width,
|
| - int height) {
|
| - surfaceTexture.setDefaultBufferSize(width, height);
|
| - }
|
| -
|
| - @CalledByNative
|
| private static void getTransformMatrix(SurfaceTexture surfaceTexture, float[] matrix) {
|
| surfaceTexture.getTransformMatrix(matrix);
|
| }
|
|
|
| + @TargetApi(Build.VERSION_CODES.JELLY_BEAN)
|
| @CalledByNative
|
| private static void attachToGLContext(SurfaceTexture surfaceTexture, int texName) {
|
| assert Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN;
|
| surfaceTexture.attachToGLContext(texName);
|
| }
|
|
|
| + @TargetApi(Build.VERSION_CODES.JELLY_BEAN)
|
| @CalledByNative
|
| private static void detachFromGLContext(SurfaceTexture surfaceTexture) {
|
| assert Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN;
|
|
|