summaryrefslogtreecommitdiffstats
path: root/libs/hwui
Commit message (Collapse)AuthorAgeFilesLines
* Make sure we correctly copy caches keys.Romain Guy2011-08-125-71/+27
| | | | | | Bug #5136067 Change-Id: I366e840bef44415436dc7b13d89cfb610feed663
* Remove unnecessary private APIRomain Guy2011-08-112-8/+0
| | | | Change-Id: I2ecb367528ec0691c07153a3d163b82a6ca33fdf
* Prevent crash when purging the gradients cache.Romain Guy2011-08-081-2/+2
| | | | | | Bug #5133876 Change-Id: I3d1fa4e29498044796d725337ac93e6a1e8f0bcb
* Paint style and stroke width affect text rendering.Romain Guy2011-08-022-8/+20
| | | | | | Bug #5112207 Change-Id: Ic34037ace21a5058ba23dd15e51aae58c998454d
* Reduce the amount of data cached by the gradients cache.Romain Guy2011-08-015-64/+87
| | | | Change-Id: I8546f5a5ecf38031c9a40bdcc434d4c7f22da63d
* Use high precision iterators on specific GPUsRomain Guy2011-08-013-18/+41
| | | | | | Bug #5098359 Change-Id: I52ee8c7b4c9e8d4c7bedb684eaf7bef6c44c74b9
* Correctly apply linear filter to drawBitmap(Rect, Rect)Romain Guy2011-07-282-3/+12
| | | | Change-Id: I1049282e1996b1020c92cb7bec46e9f28e94e967
* Reclaim more memory, more often.Romain Guy2011-07-275-8/+23
| | | | | | Yay. Change-Id: I04557ad575c307a55088549f48f0e9ad994b7275
* Destroy layers and flush layers cache when a window is destroyed.Romain Guy2011-07-273-3/+6
| | | | Change-Id: I3fa1bc3ff50fb99e3d2e490925bd6b0a0f809fff
* Improve layers debuggingRomain Guy2011-07-263-7/+22
| | | | Change-Id: Ia4950dd5f0e0a224ecb69c581d33aa4f32260a7c
* Make sure we have a current EGL context when invoking EGLRomain Guy2011-07-263-1/+6
| | | | | | Bug #5081795 Change-Id: Iee3382d362a71c1e6c5c498b319bf7f7bcf5a2f0
* Improve rendering performance on some GPUsRomain Guy2011-07-2510-86/+71
| | | | | | | | This change sets textures filtering to GL_NEAREST by default. GL_LINEAR filtering is only used when textures are transformed with a scale or a rotation. This helps save a couple of fps on some GPUs. Change-Id: I1efaa452c2c79905f00238e54d886a37203a2ac1
* Decouple GLES20RecordingCanvas lifetime from GLES20DisplayList.Jeff Brown2011-07-212-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 5062011 Previously, each GLES20DisplayList would hold onto an instance of GLES20RecordingCanvas. In turn, each GLES20RecordingCanvas held onto an SkWriter with a 16Kb buffer along with several other objects. With one display list per view and hundreds of views, the overhead could add up to a few megabytes. Ensured that the GLES20RecordingCanvas is reset as soon as the display list has been constructed, thereby promptly freeing the 16Kb buffer. Changed GLES20DisplayList so that it acquires a GLES20RecordingCanvas from a pool as needed and recycles it when done. Removed some dead code and cruft related to the construction of GLES20Canvas objects in general. Some code was written with the assumption that the underlying renderer object could change behind the scenes or might be lazily constructed, but that isn't actually the case so we can simplify things. Removed an unnecessary weak reference from GLES20DisplayList to the View. It isn't actually used anywhere. Fixed a bug in GLES20DisplayList where isValid() would return true while the display list was being recorded. This is incorrect because the native display list might not actually exist. Worse, even if the native display list does exist, it is stale and potentially refers to old Bitmaps that have been GC'd (because the mBitmaps list was cleared when recording started). Change-Id: Ib12d5483688cb253478edeb0156d34c476c2566b
* Reduce the fade area to save bandwidth.Romain Guy2011-07-191-1/+1
| | | | Change-Id: I8ccea17fc1fb3c132329baa0acc1b3d5a140a5c6
* Trim OpenGLRenderer's memory usage whenever possibleRomain Guy2011-07-183-0/+49
| | | | Change-Id: I9225077184f374b1a43300add15cc1d5b6869d1c
* Fix debugging for hwui cachesKenny Root2011-07-132-2/+1
| | | | | | | | | Debugging code attempted to delete a stack item. Also, the flag fields weren't exactly clear, so rewrite it so it's clear that kDebugMoreCaches is a combined flag. Change-Id: If42b7f0f754919343301da5656aee5943cc9bd4a
* Align paths on pixel boundaries when rasterizing in bitmaps.Romain Guy2011-07-081-1/+1
| | | | | | Bug #5003739 Change-Id: I3dfbf4eb92e2c870f33c96947a7d6439e3730965
* Correctly position layers.Romain Guy2011-07-081-4/+4
| | | | Change-Id: I1678b1c5bdab140b44e56556c50ab8329255f18a
* Use NEAREST filtering mode for TextureView.getBitmap().Romain Guy2011-07-072-4/+8
| | | | Change-Id: I4649062bbdf18ebba7924bdf578f39ad8f6576ac
* Use NEAREST filtering for layers whenever possible.Romain Guy2011-07-076-202/+381
| | | | Change-Id: Id5bee1bd4a322cf93e8000b08e18f1e1b058648e
* Fix parameter order evaluation issue.Romain Guy2011-06-281-4/+13
| | | | | | This problem was affecting Android builds with gcc/x86. Change-Id: Ibb7978413c89bd1ac09f0d1ea78f5cb4fe61f6ed
* Don't set texture parameters on every frame.Romain Guy2011-06-241-33/+39
| | | | Change-Id: Iec368405ad6a4ccfd569a0b3b4d681871a770396
* Properly tear down TextureViewRomain Guy2011-06-241-0/+1
| | | | Change-Id: Ic23cd9257889d0abe8cc3fc1d04a66d0505e383e
* Code cleanupRomain Guy2011-06-241-1/+1
| | | | Change-Id: I64c346004e0adf9a776d0315534d4fe445f0c0ca
* Add the ability to specify the opacity of a TextureViewRomain Guy2011-06-223-6/+7
| | | | | | TextureView assumes its content is opaque by default. Change-Id: Iba873423566a5b67c388081838bd910dceba32ba
* Fix another memory leak in OpenGLRendererRomain Guy2011-06-224-34/+40
| | | | Change-Id: I23ed56891452a05cf3ca13f6919c4fef90d5ff4e
* Fix memory leak in OpenGLRenderer.Romain Guy2011-06-221-1/+3
| | | | | | | | When creating a display list, matrices are duplicated locally. They were however never deleted, thus causing apps to slowly leak memory (a matrix is about 40 bytes.) Change-Id: Iac465b720d4c4c9b5ca3fce870c0c912c14a74ab
* Add error checking to LayerRenderer::copyLayerRomain Guy2011-06-173-19/+40
| | | | | | | This method is invoked by TextureView.getBitmap() and failures must be caught to avoid leaving the GL context in a potentially bad state. Change-Id: I620de395ba1bc20154de58c81963223dc55cac78
* Fix rendering issue with paths when the stroke width is 0Romain Guy2011-06-171-5/+6
| | | | Change-Id: I5d8ac23dc69e9e17df4ef6b5195186b5207e2524
* Add TextureView.getBitmap()Romain Guy2011-06-143-8/+101
| | | | | | | This API can be used to get a Bitmap copy of the content of a TextureView. Change-Id: I07522216c353720fba5cab333174f58f484eb911
* Batch glCopyTexImage() calls to get about 15 fps back on SGX.Romain Guy2011-06-132-10/+124
| | | | Change-Id: I04079e070739c1e46df3e90fc388c335e2a7d2b9
* Don't apply AA to rects with no rotation/perspective.Romain Guy2011-06-093-3/+7
| | | | Change-Id: I21138d4d0589cc28f1dcffb8b675cd81a9900e24
* Measure text with the appropriate text encoding.Romain Guy2011-06-031-6/+11
| | | | | | Bug #4546327 Change-Id: I8eb593b03a81145e08be92579706ddd775feb0a2
* Add support to OpenGLRendere to draw BiDi text.Romain Guy2011-06-017-49/+84
| | | | | | Bug #4350336 Change-Id: I1cf31693f7ca9653fa3a41b5b91c27ef288d680f
* Fix issue with drawColor(color, Mode.Clear)Romain Guy2011-05-272-0/+15
| | | | Change-Id: I486b24a5b609c6f8adb0276037ddb24af2b888b2
* Prettify memory dump.Romain Guy2011-05-271-1/+1
| | | | Change-Id: I071c6a04a144a96955d85f56dffc6162288ee33e
* Fix texture coordinates for sub-bitmap rendering.Romain Guy2011-05-261-4/+4
| | | | Change-Id: I05a31775e03f5b223a55a5144d420351abac89be
* Correctly implement the CLEAR xfermode.Romain Guy2011-05-264-6/+38
| | | | | | | | | The previous implementation was using glBlendFunc with the parameters GL_ZERO/GL_ZERO which doesn't work for text, paths and other alpha sources (anti-aliasing.) The correct implementation is GL_ZERO/ GL_ONE_MINUS_SRC_ALPHA. Change-Id: I4cca65e57b6a37bbf5a41d382cb0648ee8e11e79
* Enable large font rendering with GPU accelerationChet Haase2011-05-192-6/+35
| | | | Change-Id: I7b022100fb0762613f9cf7753dbb0217e1e75f8d
* Updates resulting from the Skia merge (revision 1327)Derek Sollenberger2011-05-161-5/+4
| | | | Change-Id: I2a8f5869dbe95bb594f2ba5d7278f9b330e6f17a
* Merge "Prepare OpenGLRenderer to use glyphs from TextLayoutCache"Fabrice Di Meglio2011-05-132-0/+7
|\
| * Prepare OpenGLRenderer to use glyphs from TextLayoutCacheFabrice Di Meglio2011-05-132-0/+7
| | | | | | | | | | | | | | - add OpenGLRenderer.drawGlyph() - refactor glypth logging code Change-Id: I797e6f1304d3f3f8f6ed31e7f9965d336233d2a4
* | Antialiasing for rectanglesChet Haase2011-05-122-1/+81
|/ | | | Change-Id: I7ca6931606541ddd504bd5db7f8dc04b9cde8cd9
* Minor javadoc enhancementsChet Haase2011-05-061-1/+1
| | | | Change-Id: Ic24bb0e1e669989f0cae3a9b8fa064b38c8e7948
* Merge "Fix for scaled AA lines"Chet Haase2011-05-061-42/+102
|\
| * Fix for scaled AA linesChet Haase2011-05-061-42/+102
| | | | | | | | | | | | | | | | | | | | Previously, the translucent boundary of AA lines would be scaled by the line's transform. It should always be exactly one pixel wide in screen space. This fix accounts for scaling for the boundary region, and fixes some AA calculations that make wide/AA lines more correct. Change-Id: I30df2d5d96315bf3e7ff30be9735282fd5439a39
* | Add ability for hierarchyviewer to output displaylist infoChet Haase2011-05-054-0/+334
|/ | | | | | | | | Clicking on a node in hierarchyviewer1 and hierarchyviewer2 and then clicking the new "Dump DisplayList" button will cause the display list for the selected node (including its children) to be output into logcat. Change-Id: Iad05f5f6cca0f8b465dccd962b501dc18fe6e053
* Revert "Add ability for hierarchyviewer to output displaylist info"Chet Haase2011-05-044-334/+0
| | | | This reverts commit b2a4b52e8d5e499d33e2765e8c47851bf0266299.
* Add ability for hierarchyviewer to output displaylist infoChet Haase2011-05-044-0/+334
| | | | | | | | | Clicking on a node in hierarchyviewer1 and hierarchyviewer2 and then clicking the new "Dump DisplayList" button will cause the display list for the selected node (including its children) to be output into logcat. Change-Id: Id32f62569ad1ab4d533bc62987f3a7390c1bb4e6
* Merge "Allows to render with an OpenGL context inside a TextureView."Romain Guy2011-05-027-24/+45
|\