summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2016-04-25 13:03:44 -0700
committerJohn Reck <jreck@google.com>2016-04-26 15:41:43 -0700
commite94cbc76d560a157c0a0d47181b4ed2a0aadbeb1 (patch)
treef0f09618a3bcf57851147fb9c4082f99ae023f9f /core/java
parenta5bbbe55b74d3a835b64fa18959f487da2df967e (diff)
API tweaks to PixelCopy and make it public
Bug: 27708453 Change-Id: I81667ce42f9ca1c1a13e1e61299927900845fc84
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/view/ThreadedRenderer.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/view/ThreadedRenderer.java b/core/java/android/view/ThreadedRenderer.java
index 34110df5767a..9c6e6b7ee77c 100644
--- a/core/java/android/view/ThreadedRenderer.java
+++ b/core/java/android/view/ThreadedRenderer.java
@@ -909,7 +909,7 @@ public final class ThreadedRenderer {
nSerializeDisplayListTree(mNativeProxy);
}
- public static boolean copySurfaceInto(Surface surface, Bitmap bitmap) {
+ public static int copySurfaceInto(Surface surface, Bitmap bitmap) {
return nCopySurfaceInto(surface, bitmap);
}
@@ -1051,5 +1051,5 @@ public final class ThreadedRenderer {
private static native long nAddFrameMetricsObserver(long nativeProxy, FrameMetricsObserver observer);
private static native void nRemoveFrameMetricsObserver(long nativeProxy, long nativeObserver);
- private static native boolean nCopySurfaceInto(Surface surface, Bitmap bitmap);
+ private static native int nCopySurfaceInto(Surface surface, Bitmap bitmap);
}