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

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

Issue 12388038: Android: Remove Surface cruft (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/common/SurfaceCallback.java
diff --git a/content/public/android/java/src/org/chromium/content/common/SurfaceCallback.java b/content/public/android/java/src/org/chromium/content/common/SurfaceCallback.java
deleted file mode 100644
index e101933d512562f1a68b1f9d67b5ffd3a60d3436..0000000000000000000000000000000000000000
--- a/content/public/android/java/src/org/chromium/content/common/SurfaceCallback.java
+++ /dev/null
@@ -1,32 +0,0 @@
-// 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;
-
-import org.chromium.base.JNINamespace;
-
-/* This implements the entry point for passing a Surface handle received through Binder
- * back to the native code.
- */
-@JNINamespace("content")
-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