diff options
author | John Reck <jreck@google.com> | 2015-04-20 22:06:31 +0000 |
---|---|---|
committer | John Reck <jreck@google.com> | 2015-04-20 22:06:31 +0000 |
commit | edc22fba5921f5c2d3502727e707f959b8c3a460 (patch) | |
tree | 947113958a48609f55d003e2735739727b6cc70f /graphics | |
parent | a771b9861d11671c780092d35c0062eeefcf37c0 (diff) | |
download | frameworks_base-edc22fba5921f5c2d3502727e707f959b8c3a460.zip frameworks_base-edc22fba5921f5c2d3502727e707f959b8c3a460.tar.gz frameworks_base-edc22fba5921f5c2d3502727e707f959b8c3a460.tar.bz2 |
Revert "Change how Java Bitmaps are accessed in a few places"
Bug: 20207616
This reverts commit a771b9861d11671c780092d35c0062eeefcf37c0.
Change-Id: Ifd891cc075274a7986e987229e0fed5a04ed9ff0
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/graphics/pdf/PdfRenderer.java | 4 |
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); |