summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authormkosiba@chromium.org <mkosiba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-02 19:39:41 +0000
committermkosiba@chromium.org <mkosiba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-02 19:39:41 +0000
commite83e9bfc42fecc832055249865da4d5fc04ad4ea (patch)
treed48d3a03ef6cf23bb560f66651ec93920ef48554 /content
parent5cb8d938d959e2300b5d65e403f7cf2b50f7b93d (diff)
downloadchromium_src-e83e9bfc42fecc832055249865da4d5fc04ad4ea.zip
chromium_src-e83e9bfc42fecc832055249865da4d5fc04ad4ea.tar.gz
chromium_src-e83e9bfc42fecc832055249865da4d5fc04ad4ea.tar.bz2
Remove the unused SurfaceTextureUpdatedListener interface.
BUG=None TEST=compile Review URL: https://chromiumcodereview.appspot.com/11746002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174831 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/public/android/java/src/org/chromium/content/browser/ContentView.java38
1 files changed, 0 insertions, 38 deletions
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentView.java b/content/public/android/java/src/org/chromium/content/browser/ContentView.java
index 9427470..27b937a 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContentView.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentView.java
@@ -54,22 +54,6 @@ public class ContentView extends FrameLayout implements ContentViewCore.Internal
public static final int MAX_RENDERERS_LIMIT = AndroidBrowserProcess.MAX_RENDERERS_LIMIT;
/**
- * Allow a callback to be notified when the SurfaceTexture of the TextureView has been
- * updated.
- *
- * TODO(nileshagrawal): Remove this interface.
- */
- public static interface SurfaceTextureUpdatedListener {
- /**
- * Called when the {@link android.graphics.SurfaceTexture} of the
- * {@link android.view.TextureView} held in this ContentView has been updated.
- *
- * @param view The ContentView that was updated.
- */
- public void onSurfaceTextureUpdated(ContentView view);
- }
-
- /**
* Enable multi-process ContentView. This should be called by the application before
* constructing any ContentView instances. If enabled, ContentView will run renderers in
* separate processes up to the number of processes specified by maxRenderProcesses. If this is
@@ -101,10 +85,6 @@ public class ContentView extends FrameLayout implements ContentViewCore.Internal
return ContentViewCore.initChromiumBrowserProcess(context, maxRendererProcesses);
}
- // Used for showing a temporary bitmap while the actual texture is being drawn.
- private final ArrayList<SurfaceTextureUpdatedListener> mSurfaceTextureUpdatedListeners =
- new ArrayList<SurfaceTextureUpdatedListener>();
-
private ContentViewCore mContentViewCore;
/**
@@ -183,24 +163,6 @@ public class ContentView extends FrameLayout implements ContentViewCore.Internal
}
/**
- * Allows an external source to listen to SurfaceTexture updates.
- *
- * @param listener
- */
- public void registerSurfaceTextureListener(SurfaceTextureUpdatedListener listener) {
- if (!mSurfaceTextureUpdatedListeners.contains(listener)) {
- mSurfaceTextureUpdatedListeners.add(listener);
- }
- }
-
- /**
- * Unregisters the current external listener that waits for SurfaceTexture updates.
- */
- public void unregisterSurfaceTextureListener(SurfaceTextureUpdatedListener listener) {
- mSurfaceTextureUpdatedListeners.remove(listener);
- }
-
- /**
* Returns true if the given Activity has hardware acceleration enabled
* in its manifest, or in its foreground window.
*