diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2012-06-11 20:06:39 +0300 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-06-12 13:50:50 +0300 |
commit | 3ea3c6afa274ea169212101111628d883b7b3f65 (patch) | |
tree | 0ac43dd3a0dcf120652ad84308852239deb30c25 /android/Bootstrap | |
parent | 96c4aeedb04bfb1438b69875951fc132142cb0d3 (diff) |
Use XToolkit2::createScreenCompatibleDeviceUsingBuffer
Render directly to a direct ByteBuffer allocated on the Java side.
Change-Id: I2d66e4146df77e92260918a78ef22cd9b8c95384
Diffstat (limited to 'android/Bootstrap')
-rw-r--r-- | android/Bootstrap/src/org/libreoffice/android/Bootstrap.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java b/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java index 1f0c14ef5f98..15b0f35f3416 100644 --- a/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java +++ b/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java @@ -116,7 +116,13 @@ public class Bootstrap extends NativeActivity // documentation sucks. public static native void twiddle_BGR_to_RGBA(byte[] source, int offset, int width, int height, ByteBuffer destination); - public static native void force_full_alpha(byte[] source, int offset, int size); + public static native void force_full_alpha_array(byte[] array, int offset, int length); + + public static native void force_full_alpha_bb(ByteBuffer buffer, int offset, int length); + + public static native long new_byte_buffer_wrapper(ByteBuffer bbuffer); + + public static native void delete_byte_buffer_wrapper(long bbw); // This setup() method is called 1) in apps that use *this* class as their activity from onCreate(), // and 2) should be called from other kinds of LO code using apps. @@ -282,6 +288,8 @@ public class Bootstrap extends NativeActivity // time by the package manager. static { System.loadLibrary("lo-bootstrap"); + System.loadLibrary("gnustl_shared"); + System.loadLibrary("libotouchlo"); } } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |