25bce3a673afef6a7858270afae4395b4ab53de3 |
|
24-Dec-2010 |
Wei-Ta Chen <weita@google.com> |
Do not merge. Backport changes related to BitmapRegionDecoder from HoneyComb to Gingerbread. Bug: 3309014 //////////////////////////////////////////////////// This is a combination of 7 commits. Revert "Do not merge." This reverts commit f7681f84918c27f6a626681ce37ed2a236c44e82. Change-Id: I46fd710600b1649773eaea2d9abc2b21a592f9a6 Fix a initialization bug in BitmapRegionDecoder. Change-Id: I6c1151fd34970a84d4de52d664d9a5dc464892c5 Fix segfault when tring to throw IOException. Change-Id: I530cc4409ba4ca17cec933afad077c5f60ba554f Fix 3122139, where previewing an attachment for the second time will fail. Use AutoFDSeek to mark and restore the position before we read data from the descriptor. Change-Id: I3d4f012dce486e19b113bc90a98b94031cfa8195 Add inPreferQualityOverSpeed into BitmapFactory.Options. The new field allows a developer to use a more accurate by slightly slower IDCT method in JPEG decode. This in turns improves the quality of the reconstructed image. The field by default is not set and thus does not affect existing applications. Bug: 3238925 Change-Id: I93d55b7226e47a43e639325cd1a677694d6f2ee4 Unhide inPreferQualityOverSpeed in BitmapFactory.Options. The new field allows a developer to use a more accurate by slightly slower IDCT method in JPEG decode. This in turns improves the quality of the reconstructed image. The field by default is not set and thus does not affect existing applications. Bug: 3238925 Related changes: https://android-git.corp.google.com/g/#change,83291 and https://android-git.corp.google.com/g/#change,83294 Change-Id: I969f5c413f9b2179454aeb90e18ae8222ee583b4 Correct the API comments. BitmapRegionDecoder supports PNG as well.
/frameworks/base/core/jni/android/graphics/Graphics.cpp
|
f7681f84918c27f6a626681ce37ed2a236c44e82 |
|
01-Oct-2010 |
Wei-Ta Chen <weita@google.com> |
Do not merge. Fix 3052285 by not publishing the BitmapRegionDecoder API until the honeycomb release. Bug: 3052285 Change-Id: Ie339e414c1a5581e1d38684621e0e97162616977
/frameworks/base/core/jni/android/graphics/Graphics.cpp
|
6b849e2123be98eb2a1a25b8abf0b13a279ce952 |
|
07-Sep-2010 |
Wei-Ta Chen <weita@google.com> |
Unhide BitmapRegionDecoder. 1. Rename LargeBitmap to BitmapRegionDecoder 2. Move the instantiations of BitmapRegionDecoder out of BitmapFactory. 3. Remove the use of MemoryFile in BitmapRegionDecoder, since MemoryFile's API had been modified in master. Otherwise, the change will break the master build. 4. Move AssetStreamAdaptor, AutoFDSeek and nullObjectReturn to Utils.h because BitmapFactory.cpp and BitmapRegionDecoder.cpp both need to use these utility functions. Most of the modifications, except for (2) and (3), were reviewed in https://android-git.corp.google.com/g/#change,64716 . However, that change broke the master build due to (3) and was reverted eventually. So, instead of withdrawing this change and waiting for that change to be checked in again, I merge the two changes into one. Change-Id: I2202c0fbbbd6d6676bbd9637e690023ea4099c40
/frameworks/base/core/jni/android/graphics/Graphics.cpp
|
edf7223bc2972b99306e31c5b424c365d9248817 |
|
08-Sep-2010 |
Elliott Hughes <enh@google.com> |
Remove dead code: NIOBuffer. Working on speeding up our NIO implementation, I came across this suboptimal code. Happily, it turns out to be unused. Bug: 2935622 Change-Id: I07ae6e573d63e439f496d55af215b34598d8258a
/frameworks/base/core/jni/android/graphics/Graphics.cpp
|
291303ba3dbb3a0173bcc82ded595ca75df7b50e |
|
18-Aug-2010 |
Wei-Ta Chen <weita@google.com> |
Fix a bug, where one thread is using JNIEnv associated with another thread. We see abort messages like this when using JavaPixelAllocator and JavaMemoryUsageReporter. W/dalvikvm( 680): JNI WARNING: threadid=2 using env from threadid=10 W/dalvikvm( 680): in Landroid/graphics/LargeBitmap;.nativeClean (I)V (CallVoidMethodV) To fix it, we keep JavaVM, rather than JNIEnv, in JavaPixelAllocator and JavaMemoryUsageReporter, because JavaVM allows us to get the JNIEnv corresponds to the current thread. Change-Id: Ibd4b394a53dd3fdccc5a442eeb0dedf836479575
/frameworks/base/core/jni/android/graphics/Graphics.cpp
|
f1f48bc7f200f54c76b22d845d8ba8419879b375 |
|
19-Jul-2010 |
Joseph Wen <josephwen@google.com> |
Do JPEG tile-based decoding. Change-Id: I5c1b4ac3c02eb4350ef0ba9a7877b22cfd730cfb
/frameworks/base/core/jni/android/graphics/Graphics.cpp
|
1a9c27c312ba20b2ceafcde18ce451724782d2a5 |
|
06-Mar-2010 |
Ficus Kirkpatrick <ficus@android.com> |
Add a LOG_TAG for android.graphics.Graphics JNI. It occasionally logs when it fails an allocation but wasn't defining one before. Change-Id: Ifc41addc870eb126616ad44465638423d51568d9
/frameworks/base/core/jni/android/graphics/Graphics.cpp
|
c04851fd0af87f44a7d7351e0c17442fa1d3fc28 |
|
28-Oct-2009 |
Mike Reed <reed@google.com> |
add boundary patch
/frameworks/base/core/jni/android/graphics/Graphics.cpp
|
de0dfb7b65a02d4dd74c271b558adee0973fc267 |
|
23-Sep-2009 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #2125720 Weather Forecast Widget - graphics do not scale I forgot to add the new density field to the Bitmaps' parcelable data. Change-Id: I77cf3e93e356297e0caed6fc71b62b5cd8f79124
/frameworks/base/core/jni/android/graphics/Graphics.cpp
|
11ea33471e1a14a8594f0b2cd012d86340dd3bd8 |
|
23-Jul-2009 |
Dianne Hackborn <hackbod@google.com> |
Allow for screen density drawables in compatibility mode. This change allows us to use drawables that match the current screen density even when being loaded in compatibility mode. In this case, the bitmap is loaded in the screen density, and the bitmap and nine-patch drawables take care of accounting for the density difference. This should be safe for existing applications, for the most part, since they shouldn't really be pulling the bitmap out of the drawable. For the small rare chance of them breaking, it worth getting the correct graphics. Also this will only happen when there is actually a resource of the matching density, and no existing apps should have resources for anything besides the default density (though of course all of the framework resources will be available in the native density). As part of this, the bitmap density API has been changed to a single integer provider the DPI unit density.
/frameworks/base/core/jni/android/graphics/Graphics.cpp
|
1b22b979256cf163ab9bbfd4fcfa16a8ce862ed1 |
|
17-Jul-2009 |
Mike Reed <reed@google.com> |
add hidden Options field for native allocations
/frameworks/base/core/jni/android/graphics/Graphics.cpp
|
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/frameworks/base/core/jni/android/graphics/Graphics.cpp
|
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/frameworks/base/core/jni/android/graphics/Graphics.cpp
|
d24b8183b93e781080b2c16c487e60d51c12da31 |
|
11-Feb-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@130745
/frameworks/base/core/jni/android/graphics/Graphics.cpp
|
f013e1afd1e68af5e3b868c26a653bbfb39538f8 |
|
18-Dec-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Code drop from //branches/cupcake/...@124589
/frameworks/base/core/jni/android/graphics/Graphics.cpp
|
54b6cfa9a9e5b861a9930af873580d6dc20f773c |
|
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
/frameworks/base/core/jni/android/graphics/Graphics.cpp
|