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

Unified Diff: content/public/android/java/src/org/chromium/content/app/ChildProcessServiceImpl.java

Issue 2525483005: Remove SurfaceTextureManager (Closed)
Patch Set: Fix link error Created 4 years 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: content/public/android/java/src/org/chromium/content/app/ChildProcessServiceImpl.java
diff --git a/content/public/android/java/src/org/chromium/content/app/ChildProcessServiceImpl.java b/content/public/android/java/src/org/chromium/content/app/ChildProcessServiceImpl.java
index b08ca5ee2899d481871953046b8bd64267bfcf04..a3748f887a180d33217a4ef3340bec312b5e4edd 100644
--- a/content/public/android/java/src/org/chromium/content/app/ChildProcessServiceImpl.java
+++ b/content/public/android/java/src/org/chromium/content/app/ChildProcessServiceImpl.java
@@ -407,55 +407,6 @@ public class ChildProcessServiceImpl {
}
}
- @SuppressWarnings("unused")
- @CalledByNative
- private void createSurfaceTextureSurface(
- int surfaceTextureId, int clientId, SurfaceTexture surfaceTexture) {
- if (mCallback == null) {
- Log.e(TAG, "No callback interface has been provided.");
- return;
- }
-
- Surface surface = new Surface(surfaceTexture);
- try {
- mCallback.registerSurfaceTextureSurface(surfaceTextureId, clientId, surface);
- } catch (RemoteException e) {
- Log.e(TAG, "Unable to call registerSurfaceTextureSurface: %s", e);
- }
- surface.release();
- }
-
- @SuppressWarnings("unused")
- @CalledByNative
- private void destroySurfaceTextureSurface(int surfaceTextureId, int clientId) {
- if (mCallback == null) {
- Log.e(TAG, "No callback interface has been provided.");
- return;
- }
-
- try {
- mCallback.unregisterSurfaceTextureSurface(surfaceTextureId, clientId);
- } catch (RemoteException e) {
- Log.e(TAG, "Unable to call unregisterSurfaceTextureSurface: %s", e);
- }
- }
-
- @SuppressWarnings("unused")
- @CalledByNative
- private Surface getSurfaceTextureSurface(int surfaceTextureId) {
- if (mCallback == null) {
- Log.e(TAG, "No callback interface has been provided.");
- return null;
- }
-
- try {
- return mCallback.getSurfaceTextureSurface(surfaceTextureId).getSurface();
- } catch (RemoteException e) {
- Log.e(TAG, "Unable to call getSurfaceTextureSurface: %s", e);
- return null;
- }
- }
-
/**
* Helper for registering FileDescriptorInfo objects with GlobalFileDescriptors.
* This includes the IPC channel, the crash dump signals and resource related

Powered by Google App Engine
This is Rietveld 408576698