summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
* Clear root level reorder lists to prevent accessing stale DisplayListsChris Craik2014-01-244-11/+59
| | | | | | | | | bug:12581401 Adds temporary logging which should log/crash earlier on incorrectly reordering hierarchies. Change-Id: Iee00940718c3cc868161e754aff93cd3b2747094
* Property support for light positioning.ztenghui2014-01-175-7/+40
| | | | | | Tune up the light size to make it look better. Change-Id: I139a05f3dd53dacbe55759b91188f0e1cc2c7f80
* am ee846d3e: am 38cf0704: am e9a7d229: am 66b5a2b2: am 5150eb8f: Merge ↵Chris Craik2014-01-171-1/+1
|\ | | | | | | | | | | | | "Initialize pointer members to NULL to avoid illegal reference" * commit 'ee846d3e74eda006f4bbf17cb4844b4d8f9c5cb0': Initialize pointer members to NULL to avoid illegal reference
| * am 38cf0704: am e9a7d229: am 66b5a2b2: am 5150eb8f: Merge "Initialize ↵Chris Craik2014-01-171-1/+1
| |\ | | | | | | | | | | | | | | | | | | pointer members to NULL to avoid illegal reference" * commit '38cf0704f6fbfa6d41d5d10488ce25e645adb835': Initialize pointer members to NULL to avoid illegal reference
| | * Initialize pointer members to NULL to avoid illegal referencelina.x.pi2014-01-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | mBitmap and mTexture is not initialized to NULL which causes illegal address access when it fails to be created from oversized bitmap. Change-Id: Iea54bec8788bc5f3a10040fdb43f416c0d41a14c
* | | Merge "Map shadow light position globally"Chris Craik2014-01-173-4/+11
|\ \ \
| * | | Map shadow light position globallyChris Craik2014-01-163-4/+11
| | | | | | | | | | | | | | | | Change-Id: Ic3201cecdf5d2a1dd628e7e40aee912ef516d3b2
* | | | Merge "Fix view z translation with 3d projection disabled"Chris Craik2014-01-171-4/+9
|\ \ \ \
| * | | | Fix view z translation with 3d projection disabledChris Craik2014-01-161-4/+9
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | The ortho projection can't handle 3d translation, so skip that step if perspective projection isn't enabled. Change-Id: I231e6bcecc82e876b697e098e034f0fd3b06efde
* | | | Transform shadow casters correctly in 3dChris Craik2014-01-161-14/+9
|/ / / | | | | | | | | | Change-Id: I11067c5aa8c749089b6ee163ddafa91865cc0d9f
* | | Support projection of DisplayLists onto ancestors.Chris Craik2014-01-157-31/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For now, ancestor views signal the acceptance of projections with a save(0x20)/restore pair. During the order traversal, each view with the save(0x20) code will collect descendent views with mProjectToContainedVolume (which still needs to be renamed) so that they can be drawn out of order later. - *Temporary* sample code added to HwAccelerationTest. - Note that a projected displaylist must not be clipped. Change-Id: I45c493e845961535b958d59c53e8aff3f8891d9f
* | | Merge "Remove dead code"John Reck2014-01-151-22/+0
|\ \ \
| * | | Remove dead codeJohn Reck2014-01-151-22/+0
| | | | | | | | | | | | | | | | Change-Id: I9c96d3d21bd3faed91a5146f5a2b8916c634fdff
* | | | Remove calls to deprecated SkBitmap::setIsOpaque()Leon Scroggins III2014-01-151-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | setIsOpaque() has been removed from ToT Skia. Update setters for mIsPremultiplied and hasAlpha to take the other into consideration. Change-Id: I1b36b0b0ce7126031eb7b769b563c17dcd4b306a
* | | | Merge "Simplify Z reordering logic"Chris Craik2014-01-142-37/+37
|\ \ \ \ | |/ / / |/| | |
| * | | Simplify Z reordering logicChris Craik2014-01-142-37/+37
| | | | | | | | | | | | | | | | Change-Id: I9e36f68d7be5cfd4d69a84a51824cb9a642fe18d
* | | | Merge "Calculate and show the shadow from a spot light."ztenghui2014-01-137-13/+994
|\ \ \ \ | |/ / / |/| | |
| * | | Calculate and show the shadow from a spot light.ztenghui2014-01-107-13/+994
| | | | | | | | | | | | | | | | Change-Id: Ia558852e8cde5d33866b22875eb501e4c6858819
* | | | Add DisplayList bit for projecting onto a contained volumeAlan Viverette2014-01-082-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | Does not handle reordering/translating the projected DisplayList. Change-Id: I6f1ebb2b20b7436c86fe849b35d582fd9c8a8967
* | | | Merge "b/12068020 Make kb layouts only unique to vendor/product"RoboErik2014-01-083-3/+4
|\ \ \ \
| * | | | b/12068020 Make kb layouts only unique to vendor/productRoboErik2014-01-073-3/+4
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of storing a kb layout per device descriptor (which is expected to be unique), store it for each vendor/product. This way we can keep a consistent layout between identical but physically different keyboards. There are some corner cases this is expected to fail on, namely devices that incorrectly have the same vendor/product id. Devices that don't define a vendor/product id will continue to use the descriptor to store layout files. Change-Id: Id0890d13e1c859eaf993d4831b7b1acbaf5df80f
* | | | EGL migration to nativeJohn Reck2014-01-075-2/+381
|/ / / | | | | | | | | | | | | | | | Move EGL state management to native side for RemoteGLRenderer Change-Id: I12b0fed70246564d4caebf87374e8bbca655c572
* | | Use const where possible for drawing parametersChris Craik2014-01-0326-399/+430
| | | | | | | | | | | | | | | | | | They should never be modified by a Renderer, only read and copied. Change-Id: I9d8d55dca19115ee9dfeb2bb3f092ba2fb327cd4
* | | Merge "Fix Clang warnings/errors"Chris Craik2014-01-0315-36/+50
|\ \ \
| * | | Fix Clang warnings/errorsChris Craik2014-01-0215-36/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix several build warnings (struct != class, int != size_t) and errors (variable leng non-POD arrays). Change-Id: I70b4e784365514303d8954bfcb1f39d7c22c1321
* | | | Fix isRecording overrideChris Craik2014-01-021-1/+1
|/ / / | | | | | | | | | Change-Id: Ie73db838b749c29c6a8480ab67897492b83d337a
* | | Use const access to snapshot from OpenGLRendererChris Craik2014-01-029-236/+231
| | | | | | | | | | | | | | | | | | Additionally, move clipping methods to StatefulBaseRenderer Change-Id: Iff232bf16fc1ad3b7d89493da6d8915db7bc5e4f
* | | Move Snapshot management to intermediate StatefulBaseRenderer classChris Craik2014-01-0111-340/+492
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The eventual goal is for the StatefulBaseRenderer to serve as the common base class between the DisplayListRenderer and OpenGLRenderer. This will separate DisplayList recording, Snapshot stack management, and the GL in OpenGLRenderer. Additionally, avoid sp<> parameters, and use const parameters in several places, with the intent of greatly reducing the surface area where renderer subclasses can modify snapshot stack. Next steps: -move bulk of clipping logic into StatefulBaseRenderer -disable direct snapshot access Change-Id: Ibc3c6747134ec7daf8ea535866239fa73b874390
* | | Create abstract base class for OpenGLRendererChris Craik2013-12-276-130/+293
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will eventually serve as a base class to allow DisplayListRenderer to split off from OpenGLRenderer, and could eventually support other rendering approaches, such as an SkCanvas/SkPicture. This will also be the main source of (implementation-independent) documentation of the canvas/renderer methods. Change-Id: I52047f338f5cf86a3b0b3002af7154bff5c3c227
* | | Add initial APIs for 3d view manipulation.Chris Craik2013-12-202-4/+7
| | | | | | | | | | | | Change-Id: I6de00bc577d5b3a1fbc9ca3a3b3668fcfa32b867
* | | am 9158825f: Move some system services to separate directoriesAmith Yamasani2013-12-1941-0/+28824
|\ \ \ | |/ / | | | | | | | | | * commit '9158825f9c41869689d6b1786d7c7aa8bdd524ce': Move some system services to separate directories
| * | Move some system services to separate directoriesAmith Yamasani2013-12-1941-0/+28732
| |/ | | | | | | | | | | | | | | Refactored the directory structure so that services can be optionally excluded. This is step 1. Will be followed by another change that makes it possible to remove services from the build. Change-Id: Ideacedfd34b5e213217ad3ff4ebb21c4a8e73f85
| * Handle user-defined cache path for RS.Tim Murray2013-12-181-1/+3
| | | | | | | | Change-Id: I92e3346dca331ae6a9dfbe4f95292bc604dfd196
| * Add libutils dependency for libandroidfw host build.Narayan Kamath2013-12-111-2/+1
| | | | | | | | Change-Id: I7fe0bb466f0b1cdbfef8934da2231ad20f05b648
| * Reimplement ZipFileRO in terms of libziparchive.Narayan Kamath2013-12-097-1004/+249
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This lets us share zip archive processing code with both the runtime (Art, dalvik) and critical java code (StrictJarFile). This change also moves several utility methods to ZipUtils and dedups code across several zip inflation methods. One of the side effects of this change is that several processing loops are now O(n) instead of O(n^2). bug: 10193060 Change-Id: I3c7188496837a47246c4f342e45485a70fef3169
| * Merge commit 'b873a17ce7be0a9771c24999adca6964431728f6' into HEADThe Android Open Source Project2013-11-2291-7635/+5698
| |\ | | | | | | | | | Change-Id: I938755073e70602cc8f51ce9bd420fdcf870cecd
* | | Track Looper decoupling from ALooperBrian Carlstrom2013-12-191-1/+1
| | | | | | | | | | | | Change-Id: I83d1f5f6600019268c53706b7bf6d94b84931e18
* | | Merge "pass SkGlyphCache into updateGlyphCache()"Victoria Lease2013-12-182-8/+8
|\ \ \
| * | | pass SkGlyphCache into updateGlyphCache()Victoria Lease2013-12-172-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Doing so prevents us from double-locking the glyph cache, thereby effectively locking ourselves out of reusing work that we'd just done. Bug: 11968757 Change-Id: I5c552f2d0bbe30af2ce9054ba684e7da756a0d89
* | | | Check mDisplayListData before derefChris Craik2013-12-171-2/+4
| | | | | | | | | | | | | | | | | | | | bug:12191897 Change-Id: I72ed3801e72c657b9d7736b0efb33c5e7cfd5b57
* | | | Merge "Use vertex assignment instead of manual copy"Chris Craik2013-12-171-36/+28
|\ \ \ \
| * | | | Use vertex assignment instead of manual copyChris Craik2013-12-161-36/+28
| |/ / / | | | | | | | | | | | | Change-Id: I36c806e3370abca61e5bf5064f0f1a776a9ce487
* | | | Create private properties on GLCanvas for experimentation with 3dChris Craik2013-12-165-22/+64
|/ / / | | | | | | | | | Change-Id: I17772f61efce727cb4c1111f4d97f58c741786b8
* | | Calculate and show Ambient shadow.ztenghui2013-12-1311-95/+595
| | | | | | | | | | | | | | | | | | | | | | | | | | | Basically we compute the shadow as a strip of triangles, whose alpha value is the strength of the shadow. We use the normal to extend the geometry. And we use static function and try to avoid new/malloc in the computation. Change-Id: I382286f1cad351bd5ff983f76f446c075819dcaf
* | | Merge "Handle user-defined cache path for RS."Tim Murray2013-12-131-1/+3
|\ \ \
| * | | Handle user-defined cache path for RS.Tim Murray2013-12-131-1/+3
| | | | | | | | | | | | | | | | Change-Id: I92e3346dca331ae6a9dfbe4f95292bc604dfd196
* | | | Merge "3d view system!"Chris Craik2013-12-1313-132/+559
|\ \ \ \ | |/ / / |/| | |
| * | | 3d view system!Chris Craik2013-12-1213-132/+559
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | True 3d transformations are now supported by DisplayLists and the renderer, initially with the translationZ property on view. Renderer operations used directly by DisplayList (formerly, clip/save/restore/saveLayer) are now more simply managed by allocating them temporarily on the handler's allocator, which exists for a single frame. This is much simpler than continuing to expand the pool of pre-allocated DisplayListOps now that more operations are called directly by DisplayList, especially with z ordered drawing. Still TODO: -APIs for camera positioning, shadows -Make Z apis public, and expose through XML -Make invalidation / input 3d aware Change-Id: I95fe6fa03f9b6ddd34a7e0c6ec8dd9fe47c6c6eb
* | | | Unbreak display list debug dumpingJohn Reck2013-12-103-8/+1
| | | | | | | | | | | | | | | | Change-Id: I1c6a79f047b29fa60907f6e128cb843a45b88bff
* | | | RenderThread workJohn Reck2013-12-095-0/+223
| | | | | | | | | | | | | | | | | | | | | | | | Hacky prototype needs a private API to enable Change-Id: I21e0ddf3cdbd38a4036354b5d6012449e1a34849