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

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

Issue 2420083004: Delete SurfaceTexturePeer (Closed)
Patch Set: Fix missed references Created 3 years, 10 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
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 7df71bb4b475e0d954316fe28455ab670b5a0893..e6a84437fbc0ea0786e6e44bf969f43803751509 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
@@ -362,48 +362,6 @@ public class ChildProcessServiceImpl {
}
}
- /**
- * Called from native code to share a surface texture with another child process.
- * Through using the callback object the browser is used as a proxy to route the
- * call to the correct process.
- *
- * @param pid Process handle of the child process to share the SurfaceTexture with.
- * @param surfaceObject The Surface or SurfaceTexture to share with the other child process.
- * @param primaryID Used to route the call to the correct client instance.
- * @param secondaryID Used to route the call to the correct client instance.
- */
- @SuppressWarnings("unused")
- @CalledByNative
- private void establishSurfaceTexturePeer(
- int pid, Object surfaceObject, int primaryID, int secondaryID) {
- if (mCallback == null) {
- Log.e(TAG, "No callback interface has been provided.");
- return;
- }
-
- Surface surface = null;
- boolean needRelease = false;
- if (surfaceObject instanceof Surface) {
- surface = (Surface) surfaceObject;
- } else if (surfaceObject instanceof SurfaceTexture) {
- surface = new Surface((SurfaceTexture) surfaceObject);
- needRelease = true;
- } else {
- Log.e(TAG, "Not a valid surfaceObject: %s", surfaceObject);
- return;
- }
- try {
- mCallback.establishSurfacePeer(pid, surface, primaryID, secondaryID);
- } catch (RemoteException e) {
- Log.e(TAG, "Unable to call establishSurfaceTexturePeer: %s", e);
- return;
- } finally {
- if (needRelease) {
- surface.release();
- }
- }
- }
-
@SuppressWarnings("unused")
@CalledByNative
private void forwardSurfaceTextureForSurfaceRequest(

Powered by Google App Engine
This is Rietveld 408576698