summaryrefslogtreecommitdiffstats
path: root/core/jni/android
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Adapt TextLayoutCache for new Harfbuzz scripts"Fabrice Di Meglio2011-08-081-7/+1
| | | | | | | This reverts commit 7f4ae758ba4724f7c3031d33ad8e749c11d1e059 This CL created a regression: #5134317 Arabic Keyboard does not appear
* Adapt TextLayoutCache for new Harfbuzz scriptsRussell Brenner2011-08-031-1/+7
| | | | | | | | | The Harfbuzz script setting was wired to HB_Script_Common for left- to-right text and HB_Script_Arabic for right-to-left. This change selects from additional scripts using some utility APIs from Harfbuzz. Change-Id: I34a6f1e0407c8d122bc968443948e7863d1f91ed
* Fix bug #5037425 Canvas.drawText can't handle Right-to-Left text and text ↵Fabrice Di Meglio2011-07-182-23/+26
| | | | | | | | | | | composing - optimization for single run case was broken - pass isRTL boolean along the call stack instead of the dirFlags integer (which was only used as a "isRTL" in the shaper) - update unit tests Change-Id: I33110b76a433633a0b92fbd1db03785204e0c3e6
* Clean test APIs for Harfbuzz supportFabrice Di Meglio2011-07-151-34/+0
| | | | | | - also update unit tests Change-Id: I557f61e84c4c4b6165163b783d9c679a6b3b4106
* Force bitmaps to load in ARGB8888 by default.Romain Guy2011-07-141-1/+1
| | | | | | Bug #5024993 Change-Id: Id0c63f675ae188e5a786b7fdd63916e114b9ed4a
* Merge changes I9fb59763,I8b2c6e00Jamie Gennis2011-06-281-7/+0
|\ | | | | | | | | | | * changes: SurfaceTexture: consume buffers after err checks SurfaceTexture: change onFrameAvailable behavior
| * SurfaceTexture: change onFrameAvailable behaviorJamie Gennis2011-06-271-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change alters the conditions under which the onFrameAvailable callback gets called by the C++ SurfaceTexture class. The new behavior is to call the callback whenever a frame gets queued that will be visible to the buffer consumer. This means that buffers queued in synchronous mode always trigger the callback, as those buffers will remain pending until they are consumed. Buffers queued in asynchronous mode will only trigger the callback if there was not previously an unconsumed buffer pending. The new behavior means that a consumer should perform a draw operation exactly once for every onFrameAvailable call that it recieves. This change also modifies SurfaceFlinger and the SurfaceTexture JNI to support of the new behavior. Change-Id: I8b2c6e00961d3d58b11c6af50b555b6e4c5f5b40
* | am ec5039b3: am 99c070d8: am 4fea5373: Merge "Add WEBP to the list of Image ↵Jean-Baptiste Queru2011-06-271-1/+5
|\ \ | |/ |/| | | | | | | | | formats that support Compression." * commit 'ec5039b3720ee9b92fb2a2c6dd9f468d2dcd7172': Add WEBP to the list of Image formats that support Compression.
| * am 99c070d8: am 4fea5373: Merge "Add WEBP to the list of Image formats that ↵Jean-Baptiste Queru2011-06-241-1/+5
| |\ | | | | | | | | | | | | | | | | | | support Compression." * commit '99c070d8eb9f1ff9ea5c38991f15f091040226c2': Add WEBP to the list of Image formats that support Compression.
| | * Add WEBP to the list of Image formats that support Compression.Vikas Arora2011-06-231-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note: The integrator of this change to Android internal code-repo will have to run one extra step 'make update-api' to update 'api/current.txt' file corresponding to approved API. The AOSP branch didn't have this file, hence I could not add the same to this change. The updated file 'api/current.txt' has to be submitted along with this change. Change-Id: I29909e907a2e82d801e16654322190a808c5bda9
| | * Tweak setViewport stuff for fwd-compatJean-Baptiste Queru2011-06-082-18/+3
| | | | | | | | | | | | Change-Id: I532336eced54544115dfd47d5557cc77bafdfc87
| | * Adapt to latest skiaDerek Sollenberger2011-05-122-3/+2
| | | | | | | | | | | | Change-Id: I39247db04ca8b7993b0f5a16fb0324828d04cc3a
| * | Updates resulting from the Skia merge (revision 1327)Derek Sollenberger2011-06-132-17/+3
| | | | | | | | | | | | Change-Id: I1d2cecbad6c30e6ebc9579093404742f17e14e84
| * | am a84d29cb: am 6714e677: Merge "Ninepatch tweaks for better interop"Jean-Baptiste Queru2011-05-122-0/+105
| |\ \ | | |/ | | | | | | | | | * commit 'a84d29cb0494310e9472884c7a459603eb305e38': Ninepatch tweaks for better interop
| | * Ninepatch tweaks for better interopJean-Baptiste Queru2011-05-122-0/+105
| | | | | | | | | | | | Change-Id: I96781e2b27fcd6dd05d9726829e8e79ff365cbdc
| | * Switch to SkSafeUnref for better portabilityJean-Baptiste Queru2011-05-129-10/+10
| | | | | | | | | | | | Change-Id: Ia146a4728b5eb92626462effe42521ca73454a7d
* | | Merge "SurfaceTexture: detach from Dalvik when necessary."Jamie Gennis2011-06-261-10/+31
|\ \ \
| * | | SurfaceTexture: detach from Dalvik when necessary.Jamie Gennis2011-06-231-10/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds a call to detach from the Davlik VM in SurfaceTexture JNI calls that caused an attach. Change-Id: I8e0d7d596680bd25ac42f8db4ca8343a62827255
* | | | Merge "Fix potential advances overrun in TextLayoutCache."Fabrice Di Meglio2011-06-241-4/+21
|\ \ \ \
| * | | | Fix potential advances overrun in TextLayoutCache.Doug Felt2011-06-241-4/+21
| | | | | | | | | | | | | | | | | | | | Change-Id: Ibec544f249833a28fe8ef9a15fc8ab48fddfc51c
* | | | | Add allowSynchronousMode to SurfaceTexture constructor.Grace Kloba2011-06-231-3/+3
| | | | | | | | | | | | | | | | | | | | Change-Id: I54f30a3c16bbe6b813f3bcd1d389da5627531304
* | | | | Merge "Add method to create a ParcelSurfaceTexture from android.view.Surface."tedbo2011-06-231-3/+16
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | Add method to create a ParcelSurfaceTexture from android.view.Surface.tedbo2011-06-221-3/+16
| |/ / / | | | | | | | | | | | | Change-Id: I05e343ab7e327478f60322af9373574b70c148f5
* | | | Fix the issue where onFrameAvailable is not triggered if SurfaceTexture is ↵Grace Kloba2011-06-221-1/+8
|/ / / | | | | | | | | | | | | | | | | | | | | | in sync mode. If there is more frame after updateTexImage, trigger the listener again. Change-Id: I1415ae9a914cc8bb139cb369464b1f6a2aa24058
* | | SurfaceTexture: attach to Dalvik when needed.Jamie Gennis2011-06-171-5/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change fixes a bug in the SurfaceTexture JNI where a thread that the Dalvik VM was not aware of calls the onFrameAvailable callback. When this happens the callback needs to first attach the thread to the VM before attempting to post the onFrameAvailable event for Java code to handle. Change-Id: I6a5470c32611ea6f38e9167779450f50635cabd3
* | | Support for setting a ParcelSurfaceTexture as the MediaPlayer sink.tedbo2011-06-132-33/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for setting a SurfaceTexture as the MediaPlayer video sink by using a ParcelSurfaceTexture object. The goal is to enable a SurfaceTexture to pass through Binder (via ParcelSurfaceTexture) and then be set on the MediaPlayer. Change-Id: Ife5689ce673eb4bee1c377019db761685217b71d
* | | Add ParcelSurfaceTexture Java class to enable ISurfaceTexture sharing via ↵tedbo2011-06-093-3/+198
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Binder. This adds a new ParcelSurfaceTexture.java class that can be instantiated with a SurfaceTexture and used to send the corresponding ISurfaceTexture interface to another process via Binder. The ParcelSurfaceTexture java object can then be used to create an ANativeWindow based on the SurfaceTextureClient interface. Change-Id: Ie38ea948b866e52f36a6d0f6cde19b54a8546817
* | | Fix USE_TEXT_LAYOUT_CACHE defineFabrice Di Meglio2011-06-062-15/+29
| | | | | | | | | | | | | | | | | | - fix compilation issues Change-Id: I3358457d94d2278804e81e4ca96c9633ed76a147
* | | Fix crash when nesting Picture recording.Marco Nelissen2011-05-311-1/+1
| | | | | | | | | | | | | | | | | | b/4490619, http://code.google.com/p/android/issues/detail?id=16644 Change-Id: Ia227c87cba61e0d0b6f86b01a064a3eefe447fe1
* | | 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