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

Unified Diff: content/public/android/java/org/chromium/content/common/SurfaceCallback.java

Issue 10546079: Added sandboxed process service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Init Created 8 years, 6 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/org/chromium/content/common/SurfaceCallback.java
diff --git a/content/public/android/java/org/chromium/content/common/SurfaceCallback.java b/content/public/android/java/org/chromium/content/common/SurfaceCallback.java
new file mode 100644
index 0000000000000000000000000000000000000000..13ea95b48bcdee5de448530246111350013fadaf
--- /dev/null
+++ b/content/public/android/java/org/chromium/content/common/SurfaceCallback.java
@@ -0,0 +1,29 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.content.common;
+
+import android.view.Surface;
+
+/* This implements the entry point for passing a Surface handle received through Binder
+ * back to the native code.
+ */
+public class SurfaceCallback {
+ // Calling setSurface passes ownership to the callee and calls release() on the passed in
+ // object.
+ public static void setSurface(int type, Surface surface, int primaryID, int secondaryID) {
+ nativeSetSurface(type, surface, primaryID, secondaryID);
+ }
+
+ /**
+ * Sets up the Surface iBinder for a producer identified by the IDs.
+ *
+ * @param type The install type for the Surface
+ * @param surface The parceled Surface to set.
+ * @param primaryID Used to identify the correct target instance.
+ * @param secondaryID Used to identify the correct target instance.
+ */
+ private static native void nativeSetSurface(int type, Surface surface,
+ int primaryID, int secondaryID);
+}

Powered by Google App Engine
This is Rietveld 408576698