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

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

Issue 191933002: This is initial API support required for enabling SurfaceTexture backed zero-copy for Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits + comments Created 6 years, 9 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
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..f44e151baf45e24d2b2f19836192ac3c741d1bfe 100644
--- a/ui/android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
+++ b/ui/android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
@@ -21,8 +21,8 @@ class SurfaceTexturePlatformWrapper {
private static final String TAG = "SurfaceTexturePlatformWrapper";
@CalledByNative
- private static SurfaceTexture create(int textureId) {
- return new SurfaceTexture(textureId);
+ private static SurfaceTexture create(int textureId, boolean singleBufferMode) {
+ return new SurfaceTexture(textureId, singleBufferMode);
bulach 2014/03/10 12:32:31 I think this will break quite a few bots not on Ki
reveman 2014/03/10 13:33:05 Right. Forgot that this is only available since ki
bulach 2014/03/10 13:47:49 thanks reveman! of all alternatives, I think your
}
@CalledByNative
@@ -48,6 +48,11 @@ class SurfaceTexturePlatformWrapper {
}
@CalledByNative
+ private static void releaseTexImage(SurfaceTexture surfaceTexture) {
+ surfaceTexture.releaseTexImage();
bulach 2014/03/10 12:32:31 assert Build.VERSION.SDK_INT >= Build.VERSION_CODE
+ }
+
+ @CalledByNative
private static void setDefaultBufferSize(SurfaceTexture surfaceTexture, int width,
int height) {
surfaceTexture.setDefaultBufferSize(width, height);

Powered by Google App Engine
This is Rietveld 408576698