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

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: 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
« no previous file with comments | « no previous file | ui/gl/android/surface_texture.h » ('j') | ui/gl/android/surface_texture.h » ('J')
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 53d33036edebd785726c59dd42110a40fa6b1610..89dcc71a03d10751b7e8ad2bb7cb3dcfa3d168de 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 single_buffered) {
reveman 2014/03/08 14:10:20 s/single_buffered/singleBufferMode/
sohanjg 2014/03/08 14:20:15 Done.
+ return new SurfaceTexture(textureId, single_buffered);
}
@CalledByNative
@@ -48,6 +48,11 @@ class SurfaceTexturePlatformWrapper {
}
@CalledByNative
+ private static void releaseTexImage (SurfaceTexture surfaceTexture) {
reveman 2014/03/08 14:10:20 nit: no need for a space between "TexImage" and "(
sohanjg 2014/03/08 14:20:15 Done.
+ surfaceTexture.releaseTexImage();
+ }
+
+ @CalledByNative
private static void setDefaultBufferSize(SurfaceTexture surfaceTexture, int width,
int height) {
surfaceTexture.setDefaultBufferSize(width, height);
« no previous file with comments | « no previous file | ui/gl/android/surface_texture.h » ('j') | ui/gl/android/surface_texture.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698