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); |