Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Unified Diff: ui/android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java

Issue 1060233002: Remove ICS support from SurfaceTexture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove CreateSingleBuffered Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/gl/android/surface_texture.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b3ebd5a274e8d6242e958c12fc2dd6c13a43f5b7..ac9c6bdee2cad553ba6f2b9fb66f9d39a74e63a8 100644
--- a/ui/android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
+++ b/ui/android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
@@ -4,9 +4,7 @@
package org.chromium.ui.gl;
-import android.annotation.TargetApi;
import android.graphics.SurfaceTexture;
-import android.os.Build;
import android.util.Log;
import org.chromium.base.CalledByNative;
@@ -26,13 +24,6 @@ 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;
- return new SurfaceTexture(textureId, true);
- }
-
@CalledByNative
private static void destroy(SurfaceTexture surfaceTexture) {
surfaceTexture.setOnFrameAvailableListener(null);
@@ -55,29 +46,18 @@ class SurfaceTexturePlatformWrapper {
}
}
- @TargetApi(Build.VERSION_CODES.KITKAT)
- @CalledByNative
- private static void releaseTexImage(SurfaceTexture surfaceTexture) {
- assert Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT;
- surfaceTexture.releaseTexImage();
- }
-
@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;
surfaceTexture.detachFromGLContext();
}
}
« no previous file with comments | « no previous file | ui/gl/android/surface_texture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698