summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2015-04-20 22:07:42 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-04-20 22:07:45 +0000
commit8222a7ec81552276de1814541201c424b392d90b (patch)
treee6d3ab0569338f3ade22f973019e6d7c7d45a13b /graphics
parent2eec3d14249640988ad6f89c49e6ea155f3ec744 (diff)
parentedc22fba5921f5c2d3502727e707f959b8c3a460 (diff)
downloadframeworks_base-8222a7ec81552276de1814541201c424b392d90b.zip
frameworks_base-8222a7ec81552276de1814541201c424b392d90b.tar.gz
frameworks_base-8222a7ec81552276de1814541201c424b392d90b.tar.bz2
Merge "Revert "Change how Java Bitmaps are accessed in a few places""
Diffstat (limited to 'graphics')
-rw-r--r--graphics/java/android/graphics/pdf/PdfRenderer.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/java/android/graphics/pdf/PdfRenderer.java b/graphics/java/android/graphics/pdf/PdfRenderer.java
index feb8052..b32dcc6 100644
--- a/graphics/java/android/graphics/pdf/PdfRenderer.java
+++ b/graphics/java/android/graphics/pdf/PdfRenderer.java
@@ -380,7 +380,7 @@ public final class PdfRenderer implements AutoCloseable {
final long transformPtr = (transform != null) ? transform.native_instance : 0;
- nativeRenderPage(mNativeDocument, mNativePage, destination, contentLeft,
+ nativeRenderPage(mNativeDocument, mNativePage, destination.getSkBitmap(), contentLeft,
contentTop, contentRight, contentBottom, transformPtr, renderMode);
}
@@ -425,7 +425,7 @@ public final class PdfRenderer implements AutoCloseable {
private static native void nativeClose(long documentPtr);
private static native int nativeGetPageCount(long documentPtr);
private static native boolean nativeScaleForPrinting(long documentPtr);
- private static native void nativeRenderPage(long documentPtr, long pagePtr, Bitmap dest,
+ private static native void nativeRenderPage(long documentPtr, long pagePtr, long destPtr,
int destLeft, int destTop, int destRight, int destBottom, long matrixPtr, int renderMode);
private static native long nativeOpenPageAndGetSize(long documentPtr, int pageIndex,
Point outSize);