summaryrefslogtreecommitdiffstats
path: root/core/jni/android/graphics/Canvas.cpp
Commit message (Collapse)AuthorAgeFilesLines
* TextLayoutCache - add glyphs cachingFabrice Di Meglio2011-04-081-5/+64
| | | | | | | | | - 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 Harfbuzz instead of ICU4C for computing advancesFabrice Di Meglio2011-03-221-0/+23
| | | | | | | | - 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
* Skia Merge (revision 808)Derek Sollenberger2011-02-221-1/+1
| | | | | | This is a companion CL to the one found in /external/skia Change-Id: If81748545435cab20a5d8479329ab333cb973e16
* Delete unused WebView drag tracking codeBjorn Bringert2010-10-141-38/+0
| | | | | | | | This also removes android.graphics.utils.BoundaryPatch which was only used by the Browser for the unused drag tracking (and by a demo app that I'm also removing). Change-Id: I48253ae005ab11cb4c70d132bc1ea4f2692e2bd2
* Make libhwui entirely optional.Romain Guy2010-08-081-13/+0
| | | | | | | | | | | | The makefile variable USE_OPENGL_RENDERER must be set to true to compile libhwui and the related code in the JNI layer. This change also removes obsolete APIs from Canvas that must not be used and would be confusing if left in. These APIs were remnants of our first attempt at an OpenGL renderer for the view hierarchy and had not been taken out before Android 1.0 was released. Change-Id: I2475ff1307212bab26c926724f3c508681c7dae1
* Support bidi/shaping for getTextPathDoug Felt2010-07-121-248/+12
| | | | | | | Move layout-related code into separate class since it's needed by both canvas and paint. Change-Id: Iba89a1d94d7cca650255ffa3cbc952b988a51b54
* Support bidi layout for drawTextOnPath.Doug Felt2010-07-071-137/+188
| | | | Change-Id: Ie5867fdb66fe15336774e20d65fa63e0d05bf6fe
* Move shaping to native.Doug Felt2010-06-101-62/+77
| | | | | | | | | | | | | | | | | Add internal API (getTextRunAdvances) to Paint, use when measuring. Add internal API (getTextRunCursor) to Paint, use when determining valid cursor positions. Remove java-level shaping code. Remove 'prep' code in TextLine (except for replacement text) since shaping now is done on the fly as needed in native. Provide explicit shaping context bounds to internal text measuring, cursor movement, and rendering APIs. Update for to changes in external API in ushape.h. Change-Id: I146958b624802ce8553125e5c3c6c03031bc9608
* Modify Canvas drawText to run bidi and shape.Doug Felt2010-05-121-36/+219
| | | | | | | | | | | | | Adds drawTextRun as internal API on Canvas and GraphicsOperations. Adds implementation to implementors of GraphicsOperations. Adds state and API on Paint to control the bidi algorithm when used by Canvas. This API is currently hidden. The drawText changes are incomplete since shaping is not yet available in the native code. Change-Id: I4368048aef9545df0953a349381771603e04b619
* add boundary patchMike Reed2009-10-281-2/+40
|
* am 25dff70f: Merge change 9039 into donutAndroid (Google) Code Review2009-07-301-11/+35
|\ | | | | | | | | | | | | Merge commit '25dff70f153529b87f5ad4a92f4de21e8950b1de' * commit '25dff70f153529b87f5ad4a92f4de21e8950b1de': Fix #2018814: System cannot correctly render assets with "wrap_content" attribute in QVGA
| * Fix #2018814: System cannot correctly render assets with "wrap_content" ↵Dianne Hackborn2009-07-291-11/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | attribute in QVGA It turns out we were not returning the density for anything retrieved from a TypedArray... which basically means any bitmap references from a layout or style...!!! This is now fixed. Also fiddle with the density compatibility mode to turn on smoothing in certain situations, helping the look of things when they need to scale and we couldn't do the scaling at load time.
* | am 11ea3347: Allow for screen density drawables in compatibility mode.Dianne Hackborn2009-07-241-7/+8
|\ \ | |/ | | | | | | | | | | Merge commit '11ea33471e1a14a8594f0b2cd012d86340dd3bd8' * commit '11ea33471e1a14a8594f0b2cd012d86340dd3bd8': Allow for screen density drawables in compatibility mode.
| * Allow for screen density drawables in compatibility mode.Dianne Hackborn2009-07-241-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | remove deprecated use of porterduffMike Reed2009-06-221-1/+2
|/
* pass original ptrs to JNI release functions (instead of += index to them)Mike Reed2009-05-011-4/+2
|
* Add call to (new) Canvas.freeCaches() in response to low-memoryMike Reed2009-04-271-2/+7
| | | | | This is in conjunction with removing a similar call made by the browser. Now it will be centralized, and the browser's call site will be removed.
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+954
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-954/+0
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-101-8/+28
|
* auto import from //branches/cupcake/...@125939The Android Open Source Project2009-01-091-1/+1
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+934