summaryrefslogtreecommitdiffstats
path: root/core/jni/android
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Fix bug #4441002 Crash in SkPathEffectGlue::OneD_constructor"Fabrice Di Meglio2011-05-181-0/+19
|\
| * Fix bug #4441002 Crash in SkPathEffectGlue::OneD_constructorFabrice Di Meglio2011-05-171-0/+19
| | | | | | | | | | | | - take care of empty strings in TextLayoutCache when computing advances/glyphs with Harfbuzz Change-Id: I8eb5f632feb7a86e5c4a6db03d073c4b7d859dbc
* | Merge "Updates resulting from the Skia merge (revision 1327)"Derek Sollenberger2011-05-172-17/+3
|\ \ | |/ |/|
| * Updates resulting from the Skia merge (revision 1327)Derek Sollenberger2011-05-162-17/+3
| | | | | | | | Change-Id: I2a8f5869dbe95bb594f2ba5d7278f9b330e6f17a
* | Merge "Fix bug #4415576 Gmail text looks broken"Fabrice Di Meglio2011-05-162-9/+9
|\ \ | |/ |/|
| * Fix bug #4415576 Gmail text looks brokenFabrice Di Meglio2011-05-132-9/+9
| | | | | | | | | | | | - pass correct "contextCount" when needed Change-Id: I56ebd9486e99e6ca5a3973ec403cf1ced874b4c3
* | Prepare OpenGLRenderer to use glyphs from TextLayoutCacheFabrice Di Meglio2011-05-132-9/+10
|/ | | | | | | - add OpenGLRenderer.drawGlyph() - refactor glypth logging code Change-Id: I797e6f1304d3f3f8f6ed31e7f9965d336233d2a4
* am 1eb31b43: am 718516f3: am 9fd8e057: Merge "Fix memory leak of SkMovie class"Conley Owens2011-05-021-0/+5
|\ | | | | | | | | * commit '1eb31b434fdc325c55b65ecf1783c63b2fdfa669': Fix memory leak of SkMovie class
| * am 718516f3: am 9fd8e057: Merge "Fix memory leak of SkMovie class"Conley Owens2011-04-291-0/+5
| |\ | | | | | | | | | | | | * commit '718516f3b73468c480ef8d2283a1c80a6223658d': Fix memory leak of SkMovie class
| | * Fix memory leak of SkMovie classKimiyoshi Kusaka2011-03-281-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | Movie class doesn't have finalize method. So memory leak of SkMovie class of native Skia occurs when Movie class is released. I add finalize method to Movie class (Movie.java) and jni destructor method to SkMovie class (Movie.cpp). Change-Id: I4dae9dd95f128cbfade50bef978b219ba99321dd
| | * Do not merge.Wei-Ta Chen2011-01-115-1/+362
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * Do not merge.Wei-Ta Chen2010-10-013-332/+0
| | | | | | | | | | | | | | | | | | | | | Fix 3052285 by not publishing the BitmapRegionDecoder API until the honeycomb release. Bug: 3052285 Change-Id: Ie339e414c1a5581e1d38684621e0e97162616977
* | | Take the index parameter into account in drawTextOnPath.Romain Guy2011-04-261-1/+1
| | | | | | | | | | | | Change-Id: I92ff9b2c0fe16a467996ae1973bbfd4fad5ef750
* | | Fix bug #4338103 (Android Arabic and Hebrew input is broken)Fabrice Di Meglio2011-04-251-46/+68
| | | | | | | | | | | | | | | | | | | | | - fix glyph order when there is only a single run - update tests Change-Id: I113f28a8c76cab622fb75ce84bc50d1d38fa254e
* | | Clean getTextRunAdvances() APIsFabrice Di Meglio2011-04-211-38/+20
| | | | | | | | | | | | | | | | | | | | | - remove ICU reference in API names - use a "reserved" int parameter to pass either "0" for Harfbuzz or "1" for "ICU" Change-Id: I88b4f76feafd203a6999cd7349402fa36a9a4b2a
* | | TextLayout cache - update size and improve loggingFabrice Di Meglio2011-04-212-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | - set size to 256K - add pid logging - fix percent gain computation Change-Id: Id6da4d606147294e05597022414531c346860f45
* | | Use Harfbuzz for Paint drawText / measureText / breakText APIsFabrice Di Meglio2011-04-192-11/+44
| | | | | | | | | | | | Change-Id: I35aa02bfd45629bf5c560f98a28399ff3d0fc900
* | | Use Harfbuzz for Canvas drawText APIsFabrice Di Meglio2011-04-181-2/+37
| | | | | | | | | | | | Change-Id: I661d5e9e0bbe9a859e7a000cb161994d29add099
* | | Return chars advances instead of glyphs advancesFabrice Di Meglio2011-04-182-9/+19
| | | | | | | | | | | | | | | | | | | | | - take care of log_clusters for char/glyph mapping - remove verbose logs Change-Id: Id19af2b4a46cc4ada0b99263a3208de14a979ba5
* | | Merge "Add Unicode BiDi Algo before drawing text in Canvas"Fabrice Di Meglio2011-04-185-53/+166
|\ \ \
| * | | Add Unicode BiDi Algo before drawing text in CanvasFabrice Di Meglio2011-04-155-53/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - only for temporary API - update BiDiTest Change-Id: Ifd445799dc0fda4da896246e41978cd8d71aa035
* | | | Merge "Don't allocate a raw object then call its constructor manually..."Elliott Hughes2011-04-132-31/+13
|\ \ \ \
| * | | | Don't allocate a raw object then call its constructor manually...Elliott Hughes2011-04-122-31/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can do this in one step. Change-Id: Id6b70c83002038caf62fe89cc769eca54ae0c055
* | | | | Remove useless forward declarations.Elliott Hughes2011-04-1211-69/+53
|/ / / / | | | | | | | | | | | | Change-Id: I8f191367acb18ea9a3f807e791099e0485b1b249
* | | | More native code cleanup.Elliott Hughes2011-04-121-34/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't keep unused global references to classes, don't throw exceptions when an exception is already pending, and fix a (harmless) misunderstanding about how GetStringChars works. Change-Id: Ie445036f057daa8a1c76aceb7bad2a84fb81d820
* | | | You don't need to poke around inside FileDescriptor manually.Elliott Hughes2011-04-112-66/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can help you with that. Note also that getParcelFileDescriptorFD did no such thing. All its callers were passing in a regular java.io.FileDescriptor and expecting the int. No ParcelFileDescriptors involved. Change-Id: Idc233626f20c092e719f152562601f406cc1b64a
* | | | Merge "More JNI exception-throwing cleanup."Elliott Hughes2011-04-082-16/+15
|\ \ \ \ | |/ / / |/| | |
| * | | More JNI exception-throwing cleanup.Elliott Hughes2011-04-082-16/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are a few (unimportant) bug fixes here. There were several attempts to throw exceptions in situations where there's already a pending exception. There were also cases where the code was wrong; it was checking for a NULL return from Get*ArrayElements and throwing NPE, but passing NULL is an error that causes a crash and a NULL return means an exception has already been thrown. I didn't want to get into the Scoped* classes just yet, but that was by far the easiest way to fix this. Change-Id: I0b31160ee51b96e82539f6514b8412b149dba7c3
* | | | Merge "TextLayoutCache - add glyphs caching"Fabrice Di Meglio2011-04-086-98/+190
|\ \ \ \ | |/ / / |/| | |
| * | | TextLayoutCache - add glyphs cachingFabrice Di Meglio2011-04-086-98/+190
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - cache glyphs after Harfbuzz shaping - use "m" prefix for member variables - add temporary API for drawing text with glyphs - update BiDiTest app Change-Id: I619b3f313b15f010018daad21b3e5e486619b4e4
* | | | Use jniThrowException for exception throwing from native code.Elliott Hughes2011-04-075-177/+154
|/ / / | | | | | | | | | | | | | | | | | | | | | I'll do media and the generated gl stuff separately. Otherwise, this cleans up all direct calls of ThrowNew/Throw except the one in the binder that needs to remain. Change-Id: I8f95a5f020f53b25926ad31ac0c9477ddf85d04b
* | | Don't use local ref for cached jclass reference in JNI codeBrian Carlstrom2011-04-061-1/+0
| | | | | | | | | | | | | | | Change-Id: Id45b2acb358a819f2fd332e99f3a095f6fc7299b related-to-bug: 4241138
* | | TextLayoutCache - more code refactoringFabrice Di Meglio2011-04-052-275/+330
| | | | | | | | | | | | | | | | | | - move code from .h file to .cpp file Change-Id: Ib8201a20e2767ef5d92707a6f4d8d79a3673e04d
* | | Code refactoring for TextLayoutCacheFabrice Di Meglio2011-04-054-36/+36
| | | | | | | | | | | | | | | | | | | | | | | | - rename TextLayoutCache entry name - update references to old name - better variable names in TextLayoutCache::getRunAdvances() Change-Id: I5173fbc8af79437ce4786084580426f130120ce8
* | | Merge "Code cleaning - suppress non useful code"Fabrice Di Meglio2011-03-301-15/+0
|\ \ \
| * | | Code cleaning - suppress non useful codeFabrice Di Meglio2011-03-301-15/+0
| | | | | | | | | | | | | | | | Change-Id: I3f3bffdd1f5d64a6b601d56bee3b5fc8147086bd
* | | | Update TextLayoutCache key for supporting more SkPaint propertiesFabrice Di Meglio2011-03-301-12/+21
|/ / / | | | | | | | | | Change-Id: I35bb991e536e662c1a0724ab7e311fba3d52487a
* | | Fix text redering issue where the text was sometimes truncatedFabrice Di Meglio2011-03-297-61/+157
| | | | | | | | | | | | | | | | | | | | | | | | - mostly was visible in Settings apps / Wi-Fi networks summary info for each network - correctly setup the local SkPaint for advances computation - improve test app for adding live resizing Change-Id: Ia031fe1b115b521ba55c7e68f2a26300f02e48ca
* | | Fix text redering issue where the text was sometimes truncatedFabrice Di Meglio2011-03-241-2/+2
| | | | | | | | | | | | | | | | | | | | | - mostly was visible in Settings apps / Wi-Fi networks summary info for each network - use ceilf() instead of roundf() Change-Id: I80310a9f00e8f7eb066d8ff03f52ea8f9cd85880
* | | Merge "Use Harfbuzz instead of ICU4C for computing advances"Fabrice Di Meglio2011-03-237-5/+510
|\ \ \
| * | | Use Harfbuzz instead of ICU4C for computing advancesFabrice Di Meglio2011-03-227-5/+510
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - use Harfbuzz shaper for shaping and getting glyphs - add test app for showing result of drawText() and drawGlyphs() - add private API in Canvas and Paint for test app Change-Id: Ia15be216f8636d2d864066e9b7de2f53008c30f6
* | | | Update GL textures when changing a Bitmap's pixelsRomain Guy2011-03-211-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Bug #4146495 Change-Id: I4fe3f8501373b86b164af11ae51642b140035bb8
* | | | Add support for timestamps into SurfaceTexture.Eino-Ville Talvala2011-03-171-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | API addition: The timestamps are represented as nanoseconds from some arbitrary time point. Like the SurfaceTexture transform matrix, the timestamp retrieved by getTimestamp is for the last frame sent to the GL texture using updateTexImage(). Camera HAL change: Expect vendors to set these timestamps using native_window_set_buffers_timestamp(). For now, they are autogenerated by SurfaceTextureClient if set_buffers_timestamp() is never called, but such timing is likely not accurate enough to pass a CTS test. bug:3300707 Change-Id: Ife131a0c2a826ac27342e11b8a6c42ff49e1bea7
* | | | am b245e31f: am ee7ace06: Merge "Fix rendering artifact in edge fades. Bug ↵Romain Guy2011-03-141-4/+16
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | #4092053" into honeycomb-mr1 * commit 'b245e31fa8dd1ad6a59ccf858154f3c7b92e0eb8': Fix rendering artifact in edge fades. Bug #4092053
| * | | Merge "Fix rendering artifact in edge fades. Bug #4092053" into honeycomb-mr1Romain Guy2011-03-141-4/+16
| |\ \ \
| | * | | Fix rendering artifact in edge fades.Romain Guy2011-03-141-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug #4092053 The problem always existed but was made visible by partial invalidation. When saving a layer, the renderer would try to postpone glClear() operations until the next drawing command. This however does not work since the clip might have changed. The fix is rather simple and simply gets rid of this "optimization" (that turned out to be usless anyway given how View issues saveLayer() calls.) This change also fixes an issue with gradients (color stops where not properly computed when using a null stops array) and optimizes display lists rendering (quickly rejects larger portions of the tree to avoid executing unnecessary code.) Change-Id: I0f5b5f6e1220d41a09cc2fa84c212b0b4afd9c46
* | | | | am dd264f21: am 76470914: Merge "Bug 3515073 Add ↵Glenn Kasten2011-03-111-0/+10
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | ANativeWindow_fromSurfaceTexture" into honeycomb-mr1 * commit 'dd264f21e6e9952b3d2ef53ea8a8a9e918e5ce96': Bug 3515073 Add ANativeWindow_fromSurfaceTexture
| * | | | Merge "Bug 3515073 Add ANativeWindow_fromSurfaceTexture" into honeycomb-mr1Glenn Kasten2011-03-111-0/+10
| |\ \ \ \ | | |/ / / | |/| | |
| | * | | Bug 3515073 Add ANativeWindow_fromSurfaceTextureGlenn Kasten2011-03-041-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is similar to ANativeWindow_fromSurface. Change-Id: Iaadc06a5d0d50685c34876aa89488c16e7cfaa65
* | | | | am a2048056: am 2498b4b8: Merge "Fix 3510563: memory leak in ↵Wei-Ta Chen2011-03-091-1/+1
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | BitmapRegionDecoder." into honeycomb-mr1 * commit 'a204805627eddeac0a1777c69ce62d31d339d4cd': Fix 3510563: memory leak in BitmapRegionDecoder.