summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
* am 0b804542: Merge "Constrain drawBitmap matrix-to-rect optimization" into ↵Chris Craik2015-08-191-1/+3
|\ | | | | | | | | | | | | mnc-dev * commit '0b8045425ff58f992046ff2be35bc91001dabf7b': Constrain drawBitmap matrix-to-rect optimization
| * Constrain drawBitmap matrix-to-rect optimizationChris Craik2015-08-181-1/+3
| | | | | | | | | | | | | | | | bug:22962165 Optimization is not valid if matrix would flip image. Change-Id: Ieee42390517bd3466b7d94596f0fbbe192ab757e
* | am 70e5db94: Merge "Fix crash in kModeProcessNoContext" into mnc-devJohn Reck2015-08-041-3/+9
|\ \ | |/ | | | | | | * commit '70e5db9413f82bf1f000bd99b3d2dbecf6e4ab04': Fix crash in kModeProcessNoContext
| * Fix crash in kModeProcessNoContextJohn Reck2015-08-041-3/+9
| | | | | | | | | | Bug: 22931143 Change-Id: I9897a28b1edd006aee67ae2343874ad92bbd15a0
* | am c03ab87a: Merge "Disable skipping frames on empty damage" into mnc-devJohn Reck2015-08-041-4/+5
|\ \ | |/ | | | | | | * commit 'c03ab87ac9f721ff22bfe5e9c0cd0e5be64f261e': Disable skipping frames on empty damage
| * Disable skipping frames on empty damageJohn Reck2015-08-031-4/+5
| | | | | | | | | | | | | | | | | | | | Bug: 22592975 Optimization added in MNC is not quite correct, occasionally it will fail to repaint when it was supposed to leading to buffer corruption. Disable the optimization for now. Change-Id: I34dfdfb357eda298198043ded7335d4588a003fd
* | am 730c0f65: Merge "Fix stencil mask usage in HWUI" into mnc-devChris Craik2015-07-301-8/+14
|\ \ | |/ | | | | | | * commit '730c0f6591b1c99699e9d0ecf36d696f7d87629f': Fix stencil mask usage in HWUI
| * Merge "Fix stencil mask usage in HWUI" into mnc-devChris Craik2015-07-301-8/+14
| |\
| | * Fix stencil mask usage in HWUIChris Craik2015-07-301-8/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug:21588246 Ensure we always set the mask before clearing, and removes some unneeded optimizations around mask usage in debug (overdraw) mode. Change-Id: I71ed06c16f8d9f158953d5aa160098514f0f7f00
* | | am fd44b56d: Merge "AAPT: Fix printing of resource configurations" into mnc-devAdam Lesinski2015-07-281-1/+7
|\ \ \ | |/ / | | | | | | | | | * commit 'fd44b56d599bc6c6e7397dcdfaa6d613805a88cb': AAPT: Fix printing of resource configurations
| * | AAPT: Fix printing of resource configurationsAdam Lesinski2015-07-271-1/+7
| |/ | | | | | | | | | | | | | | | | Print out proper, copied configuration. We add fields to ResTable_config and if we don't copy and fill in defaults when reading old configurations, we end up with garbage values. This can potentially cause a crash as well. Bug:22773426 Change-Id: I64f5ebe73ee72453bcdad3a19e48f8e7ad58e9c2
* | am 8b1154c4: Merge "Move updateMatrix() call to animateCommon" into mnc-devJohn Reck2015-07-241-1/+1
|\ \ | |/ | | | | | | * commit '8b1154c487c25388107dc024376435f3b0ae2385': Move updateMatrix() call to animateCommon
| * Move updateMatrix() call to animateCommonJohn Reck2015-07-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 22667315 HWUI internally always assumes that RenderNode->properties() has a fully-baked matrix. However, RenderThread animations violate this and will perform an update of that matrix after they run. This was missing in the fallback scenario where an animation was running on a View that is detached from the tree. If a RenderThread animation is started on an attached view, it becomes detached, and is then re-attached it will crash in the staging properties push. The fix for this is to move the call to updateMatrix from animate() to animateCommon() so that the animateNoDamage() path will similarly perform the necessary matrix update. Change-Id: I4c899a6f68659342a6515f1d7f20d3c4af65caf0
* | am 2abf0f24: Fix a race condition that could cause lockupJohn Reck2015-07-231-5/+0
|\ \ | |/ | | | | | | * commit '2abf0f24af60b8644d5b61eed9666793083546ee': Fix a race condition that could cause lockup
| * Fix a race condition that could cause lockupJohn Reck2015-07-231-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 22676664 If a task is queued on a worker thread that is busy processing a task AND a trim memory signal comes along prior to the initial task being completed then the tasks that were queued prior to the exit request will never be processed. This is bad, as when those futures are used later on, such as in trying to delete them from the cache, they will block waiting for the orphaned task to be finished. Simple fix is to just never stop the worker threads. Increase RAM usage slightly as we won't reclaim that stack space, but this cost is fairly small Change-Id: I818b011f9bc6ba06942fdad81c27656bd97b42d4
* | am 1fddd3ef: Merge "Mark isInUse per-window" into mnc-devJohn Reck2015-07-217-21/+25
|\ \ | |/ | | | | | | * commit '1fddd3efa9ac10e794d7bdf457b7b52c7e4614f7': Mark isInUse per-window
| * Mark isInUse per-windowJohn Reck2015-07-217-21/+25
| | | | | | | | | | Bug: 22509159 Change-Id: I0ae0f1fa582ee38dcb9f24ca20f0b4d0c57ccb32
* | am 0bb5c26b: Merge "Fix AssetAtlas usage in BitmapShaders" into mnc-devChris Craik2015-07-183-10/+31
|\ \ | |/ | | | | | | * commit '0bb5c26bcea4b171583e57134b9717c77fbdcb14': Fix AssetAtlas usage in BitmapShaders
| * Merge "Fix AssetAtlas usage in BitmapShaders" into mnc-devChris Craik2015-07-173-10/+31
| |\
| | * Fix AssetAtlas usage in BitmapShadersChris Craik2015-07-173-10/+31
| | | | | | | | | | | | | | | | | | bug:22521999 Change-Id: I60859748ceee19ebc89ec98845e550ea26e36ecd
* | | am 0f724601: Merge "Fix clip area behavior for REPLACE op" into mnc-devChris Craik2015-07-163-4/+18
|\ \ \ | |/ / | | | | | | | | | * commit '0f724601d78d8f36a297333227d9c460e10b3203': Fix clip area behavior for REPLACE op
| * | Fix clip area behavior for REPLACE opChris Craik2015-07-163-4/+18
| |/ | | | | | | | | | | | | | | | | | | bug:22291400 Work around clippath-clipped-to-view-bounds behavior by implementing REPLACE op fast path, avoiding the transition to SkRegion/SkPath. Change-Id: I63c1cf961db2d6e3759d83914de1036c9ac7497a
* | am ba4f0757: Merge "Don\'t crash on makeCurrent fail" into mnc-devJohn Reck2015-07-163-5/+15
|\ \ | |/ | | | | | | * commit 'ba4f0757779d6e91e52ebee0fd4c847b673a69e2': Don't crash on makeCurrent fail
| * Don't crash on makeCurrent failJohn Reck2015-07-163-5/+15
| | | | | | | | | | | | | | | | | | Bug: 22444755 WindowManager may decide to yank the surface at any point, so attempt to kinda handle this Change-Id: Id2f665d2f0f93bccd4ec977fbf52dca4dc1ec891
* | am 941bcedb: Merge "Fix unsafety in SkiaShader storage, and texture unit ↵Chris Craik2015-07-143-3/+11
|\ \ | |/ | | | | | | | | | | accounting" into mnc-dev * commit '941bcedb4c03832cd54225217697c7b8cba6e07c': Fix unsafety in SkiaShader storage, and texture unit accounting
| * Fix unsafety in SkiaShader storage, and texture unit accountingChris Craik2015-07-133-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug:22390304 Fixes two issues: 1) The max texture unit wasn't large enough to handle the most complex ComposeShader case (1 for draw primitive, 2 for gradient shader, 1 for bitmap shader). 2) If a shader isn't supported by SkiaShader::store, the shader data needs to be explicitly disabled, so we won't read uninitilized data from it when trying to read shader information out. Change-Id: I29ee7b7c1e07f67db88c1707bdc857daa305e713
* | am 9613e9b7: Merge "New setLocalMatrix() operation for HWUI" into mnc-devTom Hudson2015-07-109-2/+54
|\ \ | |/ | | | | | | * commit '9613e9b76410b15b7f2700080a17476bf9f3461c': New setLocalMatrix() operation for HWUI
| * Merge "New setLocalMatrix() operation for HWUI" into mnc-devTom Hudson2015-07-109-2/+54
| |\
| | * New setLocalMatrix() operation for HWUITom Hudson2015-07-099-2/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | Concats any matrix passed through from DisplayListCanvas with the initialTransform of the containing RenderNode. BUG:22189925 Change-Id: I5ea54a6e2a29520c79a8860bde7682694e8595d2
* | | Merge "Restrict number of hwuiTask threads" into mnc-dr-devJohn Reck2015-07-081-1/+3
|\ \ \ | |/ / |/| |
| * | Restrict number of hwuiTask threadsJohn Reck2015-07-071-1/+3
| | | | | | | | | | | | | | | Bug: 22324907 Change-Id: I0013557ede15949a5bd6f3f75bc5dd023a9f945b
* | | Merge "Remove all usage of fmin and fmax" into mnc-devChris Craik2015-07-087-26/+26
|\ \ \ | |/ / |/| |
| * | Remove all usage of fmin and fmaxChris Craik2015-07-077-26/+26
| | | | | | | | | | | | | | | | | | | | | | | | bug:22208220 Removes needless call, and upconversion to doubles in multiple places. Change-Id: I1b949fa5f206446ac34de800154c0147d6bd8034
* | | Merge "Simplify matrix copy constructor/load" into mnc-devChris Craik2015-07-072-6/+1
|\ \ \ | |_|/ |/| |
| * | Simplify matrix copy constructor/loadChris Craik2015-07-072-6/+1
| |/ | | | | | | | | | | bug:22208220 Change-Id: Id096eb8de8da0dd1687d6af9456b16ce2a1a589b
* | Adjust for pipeline stallsJohn Reck2015-07-0610-22/+38
| | | | | | | | | | | | | | | | | | | | | | Bug: 20853441 Calculating duration that crosses the UI-RT sync point will now subtract out the time spent waiting in queue under the assumption that this time will be accounted for in the previous frame's metrics Change-Id: Ia8213f4410638840613f5ae439e98dfb77532a6a
* | Merge "Set go-faster arguments" into mnc-devJohn Reck2015-07-011-0/+1
|\ \ | |/ |/|
| * Set go-faster argumentsJohn Reck2015-07-011-0/+1
| | | | | | | | | | | | | | | | | | Bug: 22208220 Increases performance of shadows by yet another 15% by using more aggressive math optimizations Change-Id: Ie3fabeae3647632a19ff573bf6b2d7f7a7cef555
* | Merge "Use std::sort instead of quickSortX" into mnc-devJohn Reck2015-07-011-30/+5
|\ \
| * | Use std::sort instead of quickSortXJohn Reck2015-07-011-30/+5
| |/ | | | | | | | | | | | | | | | | | | | | Bug: 22208220 Libcxx has a really good sort algorithm, use that instead. This speeds up shadow tesellation by about 10%. Also less code Change-Id: Iaad424187121d7644076f94ba8a3cf4c110da2f2
* | Merge "Switch from fminf/fmaxf to std::min/max" into mnc-devChris Craik2015-07-015-36/+39
|\ \
| * | Switch from fminf/fmaxf to std::min/maxChris Craik2015-06-305-36/+39
| |/ | | | | | | | | | | | | | | | | bug:22208220 Shows considerable improvement in performance, especially in tight loops. Change-Id: I4bcf6584a3c145bfc55e73c9c73dcf6199290b3c
* | Saturate alpha values when overlaying glyphsChris Craik2015-06-301-7/+7
|/ | | | | | | | | | bug:19062769 Glyphs were stored to the output buffer with the assumption of non-overlap, which is incorrect for certain fonts/strings. Instead, blend src into dst, so new glyphs don't clobber existing content. Change-Id: I6e22037500e67d5348ee2a43d939416c23c4d1ea
* Merge "Don't promote functors onto layers due to outline rect clipping" into ↵Chris Craik2015-06-262-1/+7
|\ | | | | | | mnc-dev
| * Don't promote functors onto layers due to outline rect clippingChris Craik2015-06-252-1/+7
| | | | | | | | | | | | bug:21320333 Change-Id: Ie70982c88498395148dab6eaca861de66e6207ed
* | Merge "Limit dotProduct value to 1.0f, so acosf would not return NaN." into ↵Tenghui Zhu2015-06-251-0/+3
|\ \ | | | | | | | | | mnc-dev
| * | Limit dotProduct value to 1.0f, so acosf would not return NaN.Lazar Trsic2015-06-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cherry pick of b561f39d01c211425bfefaaa7b31ebe097e7ba79 from AOSP master. Due to precision loss of float math, we sometimes get 1.000001f for dotProduct. This causes NaN result from acosf() and floor() funcs. At the moment, this does not cause any problems on ARM, as casting NaN to int results in 0. On mips however (possibly on x86), such cast gives INT_MAX, so crash occurs when trying to use the resulting value. Change-Id: I8e0285a0306a65b8469d9f4885c19665066fc4c8
* | | Merge "Let findSupportedAbi and hasRenderscriptBitcode scan only relevant ↵Yusuke Sato2015-06-251-2/+10
|\ \ \ | |/ / |/| | | | | files" into mnc-dev
| * | Let findSupportedAbi and hasRenderscriptBitcode scan only relevant filesYusuke Sato2015-06-221-2/+10
| |/ | | | | | | | | | | | | | | | | for better performance. Without the optimization, these two functions may check more than 100k file names in the pre-installed APK files, which can take a few seconds to finish even on a recent device. Bug: 21957428 Change-Id: I315fd3c6d5aa1076b993752525de449a9933de12
* | Merge "Avoid over-damaging layer area for multidraws" into mnc-devChris Craik2015-06-242-8/+19
|\ \