From 3fafd39d0776a15c3613795183043a2c28277691 Mon Sep 17 00:00:00 2001 From: Teng-Hui Zhu Date: Tue, 31 May 2011 15:15:31 -0700 Subject: The screen shot support for inline video on Java side Basically, the GL texture bound with Surface Texture is not a singleton any more. And the Surface Texture will be recreated every time a new video starts. This can help to recycle the decoder's memory while using the GL texture to show the screen shot. The corresponding webkit change is: 112500 Change-Id: I3c35f6a0abc70b9039c316ca82b236c797d81c7e --- core/java/android/webkit/HTML5VideoView.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'core/java/android/webkit/HTML5VideoView.java') diff --git a/core/java/android/webkit/HTML5VideoView.java b/core/java/android/webkit/HTML5VideoView.java index c05498a0fb49..8b92bb051d55 100644 --- a/core/java/android/webkit/HTML5VideoView.java +++ b/core/java/android/webkit/HTML5VideoView.java @@ -287,7 +287,7 @@ public class HTML5VideoView implements MediaPlayer.OnPreparedListener { return false; } - public SurfaceTexture getSurfaceTexture() { + public SurfaceTexture getSurfaceTexture(int videoLayerId) { return null; } @@ -315,4 +315,9 @@ public class HTML5VideoView implements MediaPlayer.OnPreparedListener { // Only used in HTML5VideoFullScreen } + public boolean surfaceTextureDeleted() { + // Only meaningful for HTML5VideoInline + return false; + } + } -- cgit v1.2.3