summaryrefslogtreecommitdiffstats
path: root/libs/hwui
Commit message (Collapse)AuthorAgeFilesLines
* framework/base: hwui: Clear layer FBO after FBO cache is updatedOmprakash Dhyade2012-07-021-0/+2
| | | | | | | | | | | | | | | Due to bug in GLRenderer stale FBO remains and can cause corruption, clear layer fbo when fbo returned to cache. CRs-fixed: 340481 (cherry picked from commit b01c082e12c4c4091016af1c95d851f29f5b7514) Conflicts: libs/hwui/LayerRenderer.cpp Change-Id: I8624879b4adbf9438a8c065b78932d1a4a2a15d4
* Revert "libhwui: Correct transform used for drawing text-shadow."Giulio Cervera2012-06-011-4/+0
| | | | This reverts commit 5e30781aba176787e3abc50c79c35fbba6a1deeb.
* Merge remote-tracking branch 'github/kali' into icsRicardo Cerqueira2012-05-141-0/+4
|\ | | | | | | | | | | | | | | | | Conflicts: libs/gui/SurfaceTextureClient.cpp services/surfaceflinger/Layer.cpp services/surfaceflinger/SurfaceTextureLayer.cpp Change-Id: Ib353e7d86411c0a3ceb5ecdb75c40a7b7842da15
| * Merge remote-tracking branch 'github/ics' into ics_chocolate_M8260AAABQNLZA30150Giulio Cervera2012-05-024-4/+32
| |\
| * | libhwui: Correct transform used for drawing text-shadow.Sushil Chauhan2012-04-241-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The model-view transform used for text-shadow in drawText() should be in sync with the transform used for main text draw. CRs-Fixed: 342161 Change-Id: I6bb36691c84809aaede65ad5fc1c4a1e90f1ecfc (cherry picked from commit d4c8be8416c6c3064e43ed80ebacb2a177be3019)
* | | FontRenderer: do not leak mIndexBufferIDJeremy Gebben2012-05-061-0/+4
| |/ |/| | | | | | | | | | | | | | | This glBuffer needs to be deleted to avoid leaking graphics memory. CRs-Fixed: 346272 Change-Id: Ib56553fffbf88848905893b02a986765823050ad (cherry picked from commit 8ee3ffb1c0096767311b55c509e1288901f3747f)
* | libhwui: Delete display list objects and resources on the UI threadRomain Guy2012-04-264-4/+32
|/ | | | | | | | | | | | | | | | | Bug #6073717 Bug #6065504 Bug #6026515 Bug #5971725 Prior to this change, the destructor of DisplayList would always run on the finalizer thread. This could cause a race condition if the UI thread was busy rendering display lists at the same time leading to various random native crashes. CRs-Fixed: 353211, 343109 (cherry picked from commit 14baed35c789e53df7fd5150c90aa1c0c960ac6f) Change-Id: Ib454326a8df9fc28ee140467a10d370ff21b9766
* f/b: qcom flags cleanupGiulio Cervera2012-04-021-3/+0
| | | | Change-Id: Id4da5e2038cf5c9ba540a812281daa4a1b9af03a
* Merge branch 'ics_chocolate_M8260AAABQNLZA30136' into HEADGiulio Cervera2012-03-231-0/+5
|\
| * Remove opaque check in GLRenderer when preparing dirty region.Wei Zou2012-03-051-0/+5
| | | | | | | | | | | | Since preserved swap is enabled, we need to clear the color buffer when the scissor rect is prepared for a new process. This prevents garbage to be present from the previous process in the color buffer
* | Add missing includes for threads.hDerek Sollenberger2012-03-142-0/+2
|/ | | | | | | The missing header was being transitively included through a Skia header which is being removed. Change-Id: I5a65bae076027951fe07d1e7eecd4732124fb0e4
* QCOM: tile renderer: ifdef with QCOM_HARDWAREtoastcfh2011-12-223-1/+8
| | | | Change-Id: I6235dfb6c28d99782b1b827e15af2e61173e2144
* frameworks: base: clean up after merge of qcom stuffs and mass ifdeforamatoastcfh2011-12-201-1/+1
| | | | Change-Id: I339eed86d842621013be1d3672552bdec5a1b167
* frameworks/base: support for QCOM tiled renderingRajulu Ponnada2011-12-202-0/+6
| | | | | | | Support for tiled rendering, disabled by default, can be enabled with debug.enabletr property. Change-Id: I2bd94aa3480f62c6f4089d722e318481013495fd
* Merge "Fix crash in existing applications Bug #5659476" into ics-mr1Romain Guy2011-11-281-2/+10
|\
| * Fix crash in existing applicationsRomain Guy2011-11-281-2/+10
| | | | | | | | | | | | | | | | | | Bug #5659476 The FontRenderer was not cleaning up its temporary state, leading to crashes when invoking renderDropShadow. Change-Id: I43b24820dd5625af8c080bbe11b64de2f74164b2
* | Fix flashing wifi dialog after rotating back from landscape.Chet Haase2011-11-281-2/+4
|/ | | | | | | | | | | | | | There was an error in some of the OpenGL layer logic such that we would occasionally set up a layer for rendering and then not clean up when it was done. This caused future OpenGL rendering to go into that layer instead of to the buffers being displayed on the screen, resulting in artifacts including flashes and displaying of stale content. This happened specifically when using the wifi settings dialog with the InputMethod keyboard displayed, but it was probably visible in other situations as well. Issue #5628248: Flickering/flashing after entering password for WiFi Change-Id: I38139f620b310f4309570fa7224552d2ee633999
* Draw in the correct FBO after invoking a GL functorRomain Guy2011-11-212-2/+3
| | | | | | | | | | | Bug #5650514 After invoking a GL functor, libhwui restores a few OpenGL states including the current FBO. The renderer was however making the wrong assumption that the FBO to restore to was the base layer instead of the FBO associated with the current canvas state. Change-Id: Ie565500832ebffd673f6a43b83422d6cc05470a0
* Revert "Discard framebuffer rendering queues when discarding layers"Dave Burke2011-11-145-34/+3
| | | | This reverts commit da96f8ac2c1c35a54f3f36e6d776cb386a251d03.
* Discard framebuffer rendering queues when discarding layersRomain Guy2011-11-105-3/+34
| | | | | | Bug #5581817 Change-Id: If612846ec5f7793710fc4df152791fb32c506551
* Terminate EGL when an app goes in the backgroundRomain Guy2011-11-102-10/+47
| | | | | | | | This does not happen on high end gfx devices. This happens only if only one EGL context is initialized in the current process. Change-Id: Ibd1737efdf84eef8a84108b05795440d1ae9964e
* Memory optimizations for libhwuiRomain Guy2011-11-046-27/+127
| | | | | | | | | | | Bug #5566149 Lazily initialize font renderers Keep 60% of the texture cache when an app goes to the background Delete least used font renderer when going to the background Delete all font renderers on full memory trim Change-Id: I3c2454d46dc1107ec0f0f72a9ce69cbbcc8825e7
* Make sure 9patches are not filtered when not necessaryRomain Guy2011-10-201-14/+19
| | | | | | Bug #5383406 Change-Id: I061c8069a4d9f4eaf45671283710b564639eeb32
* Correctly dump DrawPatch operations in display listsRomain Guy2011-10-191-6/+7
| | | | Change-Id: I8cd1c764ddc184ce45727913fa2a23a3d81b337e
* Return early when we cannot allocate a hardware layerRomain Guy2011-10-171-1/+2
| | | | | | Bug #5462308 Change-Id: I52dab809662f6f42a49ca03edc50f6b98fc35a06
* Add missing public native APIRomain Guy2011-10-121-1/+3
| | | | Change-Id: Ie3bc706b2ac91d686a5b888e8ae841820e9d37c7
* Reduce the size of libhwui by 50%Romain Guy2011-10-1210-87/+109
| | | | | | | | This change removes unnessary symbols. All symbols are hidden by default, public APIs with exported symbols are explicitly marked with ANDROID_API. Change-Id: I692fde432a86c12108de1cfd1f6504919a7d5f3f
* Correctly apply transforms when getting a TextureView's bitmapRomain Guy2011-10-111-1/+14
| | | | | | Bug #5439406 Change-Id: I271a9a2e38f5b3600dc158f8f442a6b0893f472b
* Stupid fixed point math.Romain Guy2011-10-071-7/+7
| | | | | | Bug #5423215 Change-Id: I39379e1f8fb4d59de4ede6e4fe7cf7a2c7cc625a
* Canvas.getClipBounds() was broken and unreliable with OpenGL ES 2.0Romain Guy2011-10-041-23/+9
| | | | | | | | This bug was affecting several third party applications. The bug was introduced by an optimization that prevented the local clip to be recomputed when needed. Change-Id: I7b5c464db21b5ff1a7274af75a3a64d0e9d84772
* TextureView works best when it draws stuff.Romain Guy2011-09-291-1/+1
| | | | | | Bug #5391188 Change-Id: I5e754881ccb08ff288ebd60de77282c9cbcf3f86
* fix the float Rect in OpenGLRenderer to handle NANsMathias Agopian2011-09-191-36/+26
| | | | | | | | | | | | | | | - we want functions like isEmpty() to return true if NANs are involved in the Rect - also clean-up the intersect familly of calls - minor cleanup in the int32_t Rect as well These played a role in http://b/5331198. Bug: 5331198 Change-Id: I5369725ab482e4b83da9f1bd4cee5256e5de75b2
* Make LTE_FLOAT a strict weak order.Jeff Brown2011-09-161-1/+1
| | | | | | | | | | | | | | | | | Bug: 5327776 Currently LTE_FLOAT isn't even a valid partial order, let alone a strict weak order as needed by binary search. Consequently, KeyedVectors with keys whose types have operator< using LTE_FLOAT sometimes find the wrong values! This problem affects several graphics caches including the TextLayoutCache. (This is still not a total order because NaNs are not comparable but hopefully we don't ever search for NaNs this way!) Change-Id: Ic447a34c7d87f681ee81538f22a0937a039072dd
* Add support for 3 new blend modes when blending with framebuffer:Romain Guy2011-09-081-34/+32
| | | | | | | | Add Multiply Screen Change-Id: I92a3c2612c86613087568bf0c03cc6f92b5ded44
* Add reminder in the code to fix T-junctionsRomain Guy2011-09-072-0/+9
| | | | Change-Id: I52b112694f930e641f01fb78dc55412986023411
* Text would disappear when the font size is 75px.Romain Guy2011-08-301-2/+2
| | | | | | | | Bug #5230196 Yes, 75px. Any other font size would work. Don't ask. Change-Id: I96c7db9926a97f65128d60c8238c3640ee2444ba
* Optimize display listsRomain Guy2011-08-253-3/+25
| | | | | | Remove redundant or useless operations Change-Id: If989b4eaa9143eef4254c38b39959aeed1f2b9ab
* Enable linear filter when scaling bitmapsRomain Guy2011-08-241-1/+2
| | | | | | Bug #5205673 Change-Id: I8b0f90877df6b6c6757d35dcf6cd14e79e840b96
* Don't use bilinear filtering on unscaled bitmapsRomain Guy2011-08-221-4/+4
| | | | | | Bug #5198590 Change-Id: I4333d850501ac849eeeeb247e4178dd469b9de3d
* Move constants to the correct headerRomain Guy2011-08-223-6/+8
| | | | Change-Id: Id4bd14f72487bd7156cd2e1930eaf97b47896273
* Add an API to set the transform on a TextureView's surface texture.Romain Guy2011-08-164-0/+44
| | | | | | Bug #5156689 Change-Id: I635a625885c9b832a60d44ece0de7613ceb84109
* 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