summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * Recompute visible regions more vigorouslyAndy McFadden2012-09-261-3/+3
| | | | | | | | | | | | | | | | | | | | | | Some of the code in latchBuffer was calling invalidateHwcGeometry, but that didn't cause the SurfaceFlinger visible region code to re-evaluate the layer's visibility. Set the recomputeVisibleRegions "out" parameter instead. Bug 7235797 Change-Id: If6ba33fbd1a594cd64cc5253aebf752d6ceda1c9
* | Stop using transparent region for computing visible regionsJesse Hall2012-09-263-10/+35
|/ | | | | | | | | | | | | | | | | | | | | | The transparent region hint is computed only from view layout locations, ignoring post-layout translation. If a SurfaceView is layed out with no other views above it, but a view is moved above it post-layout, that view's layout bounds would be subtracted from the window's transparent region instead of its drawing bounds. Prior to this change, the view would not be visible (except where its layout bounds and drawing bounds overlap). With this change, composition uses visible regions computed without regard to the transparent regions. However, if all of a layer's visible region is transparent, it will be removed from the list of layers to composite. This doesn't fix the root problem of incorrect transparent regions, and doesn't prevent bad composition in all cases. But it does avoid it for some existing apps, whiel still allowing the transparent region hint to save power in the important fullscreen-video-in-a-SurfaceView case. Bug: 7179570 Change-Id: I47cf939e12129b167afa344b8b036e8827103ac8
* Merge "add support for EGL_FRAMEBUFFER_TARGET_ANDROID" into jb-mr1-devMathias Agopian2012-09-252-24/+95
|\
| * add support for EGL_FRAMEBUFFER_TARGET_ANDROIDMathias Agopian2012-09-252-24/+95
| | | | | | | | | | | | | | | | | | | | we now try first with EGL_FRAMEBUFFER_TARGET_ANDROID, and pick the first config we find. Otherwise, we revert to the old algorithm. Bug: 7232584 Change-Id: I8d5c5a4ce48420832c2e2828718a8f53325effb0
* | only abort when errors happen on the main displayMathias Agopian2012-09-251-5/+8
|/ | | | | Bug: 7232690 Change-Id: I2c4b35a82f131da26deea738ef294e100e536d15
* fix a crasher when running out of memoryMathias Agopian2012-09-252-2/+5
| | | | | | | | | | MemoryHeapBase::getBase() returns MAP_FAILED in case or OOM, not null which is what SF was checking against. This addresses one of the issues of bug 7230543. Bug: 7230543 Change-Id: I763a88f64a2f9ff75eb139cfbaf9a1a9746c5577
* When "show visible regions" is enabled we were missing a call to HWCMathias Agopian2012-09-251-0/+6
| | | | | Bug: 7204034 Change-Id: I64dd78362fa75149513a7d9ff92dde175e9b4958
* Merge "Show build config in dumpsys SurfaceFlinger" into jb-mr1-devAndy McFadden2012-09-258-2/+168
|\
| * Show build config in dumpsys SurfaceFlingerAndy McFadden2012-09-258-2/+168
| | | | | | | | | | | | | | | | | | | | | | | | | | This adds a line to the "dumpsys SurfaceFlinger" output that shows build-time configuration values. Example: Build configuration: [sf HAS_CONTEXT_PRIORITY] [libui] \ [libgui USE_FENCE_SYNC] Bug 7206633 Change-Id: Ibe1856b459d34a4be6ee83a4ebfd2807e6cc68a0
* | Merge "Configure GC free to be 8MB for devices with >512MB RAM." into jb-mr1-devIan Rogers2012-09-256-7/+24
|\ \ | |/ |/|
| * Configure GC free to be 8MB for devices with >512MB RAM.Ian Rogers2012-09-236-7/+24
| | | | | | | | | | | | b/6606849 Change-Id: Idad46032b4b5d309db0319caeb7a1dfc0550f9f7
* | fix Layer croping in SurfaceFlingerMathias Agopian2012-09-241-12/+11
| | | | | | | | | | Bug: 7224628 Change-Id: I9421f0a06b9a27fe00eefaa1dfab8c4309c380c9
* | fix a crasher in SurfaceTexture's setFilteringEnabledMathias Agopian2012-09-242-7/+22
| | | | | | | | | | bug: 7211067 Change-Id: Id8658a8df429d76c20ab9112858b38e52343dc9c
* | Merge changes I47cd25c9,I7638ffe8 into jb-mr1-devMathias Agopian2012-09-242-7/+17
|\ \ | | | | | | | | | | | | | | | * changes: don't call eglMakeCurrent() before calling HWC commit() on HWC 1.1 handle EGL errors
| * | don't call eglMakeCurrent() before calling HWC commit() on HWC 1.1Mathias Agopian2012-09-241-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | this call is not needed and misleading on HWC 1.1; it can also have a negative performance impact when multiple displays are used. Bug: 7124069 Change-Id: I47cd25c9d6e69abcc9333b9ecd5044e8fb1919ec
| * | handle EGL errorsMathias Agopian2012-09-241-3/+10
| | | | | | | | | | | | | | | | | | | | | for now we just restart the runtime. bug: 7225248 Change-Id: I7638ffe82075a4db9e7e6f9e35cf48afcb5a387a
* | | Merge "EGL: add the EGL_ANDROID_framebuffer_target enum" into jb-mr1-devJamie Gennis2012-09-242-0/+8
|\ \ \
| * | | EGL: add the EGL_ANDROID_framebuffer_target enumJamie Gennis2012-09-242-0/+8
| | | | | | | | | | | | | | | | Change-Id: Id8b1b114e2a7a88956b857c63a0429e9b33fdb5c
* | | | Merge "EGL: expose the EXT_create_context_robustness ext" into jb-mr1-devJamie Gennis2012-09-242-0/+11
|\ \ \ \ | |/ / / | | / / | |/ / |/| |
| * | EGL: expose the EXT_create_context_robustness extJamie Gennis2012-09-242-0/+11
| | | | | | | | | | | | Change-Id: I1db43e96aa5e9e91a6176a4a3e5aa9d1f3ee4a7e
* | | log an error when eglCreateContext() fails in an inconsistant wayMathias Agopian2012-09-241-0/+6
|/ / | | | | | | | | | | this will help debugging bug: 7216919 Change-Id: I54ac65f20c5ed55cc93a5cbc5350fadfb0fcb804
* | Merge "ConsumerBase: make fence names meaningful" into jb-mr1-devJamie Gennis2012-09-241-1/+1
|\ \
| * | ConsumerBase: make fence names meaningfulJamie Gennis2012-09-241-1/+1
| | | | | | | | | | | | Change-Id: I3580120cb63c027c327e80ec70e68650b75395de
* | | Merge "Add android.hardware.camera.any feature to camera permissions." into ↵Eino-Ville Talvala2012-09-234-0/+4
|\ \ \ | | | | | | | | | | | | jb-mr1-dev
| * | | Add android.hardware.camera.any feature to camera permissions.Eino-Ville Talvala2012-09-234-0/+4
| |/ / | | | | | | | | | | | | Bug: 6847310 Change-Id: I9283932a7c211cd08b3b9fe6a93d8f219e6c9767
* | | add/remove displays properly on hotplug eventsMathias Agopian2012-09-214-6/+26
|/ / | | | | | | | | Bug: 7191563 Change-Id: I8f0fbf3b29658c9479443141798e6f288a1f2d52
* | Display events now always carry the display id they happened onMathias Agopian2012-09-213-28/+57
| | | | | | | | Change-Id: I12de1d883c23927722bc3a71b782f0079de4e831
* | fix an issue where hotplug events were not dispatchedMathias Agopian2012-09-212-15/+31
| | | | | | | | Change-Id: I527eec77f338cd6f1a9021aa4c9d384dbddd6d2a
* | Merge "SurfaceTexture: fix an out of bounds array write" into jb-mr1-devJamie Gennis2012-09-211-1/+1
|\ \
| * | SurfaceTexture: fix an out of bounds array writeJamie Gennis2012-09-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change fixes an issue causing the mEglContext member of a SurfaceTexture to get incorrectly zeroed out. This would happen when a call to ConsumerBase::releaseBufferLocked resulted in the current buffer being freed. Freeing the current buffer would set SurfaceTexture::mCurrentTexture to -1, which would then be used by SurfaceTexture::releaseBufferLocked to reset the current slot's EGLSyncKHR to EGL_NO_SYNC_KHR (= 0). This would overwrite the mEglContext field, resulting in context mismatch errors in SurfaceTexture::doGLFenceWaitLocked. The fix is to simply use the buffer slot that's passed in to SurfaceTexture::releaseBufferLocked rather than mCurrentTexture. Change-Id: I0e5e2bd88fcbb354c35a3744f317716fff3e0e41
* | | Merge "Add a spec for EGL_ANDROID_framebuffer_target." into jb-mr1-devJamie Gennis2012-09-212-5/+108
|\ \ \ | |/ /
| * | Add a spec for EGL_ANDROID_framebuffer_target.Jamie Gennis2012-09-212-5/+108
| | | | | | | | | | | | | | | | | | | | | This change adds a new extension for EGL implementations to indicate the EGLConfigs that support use as a HWComposer framebuffer target layer. Change-Id: Ia7c8fbe8da09d57b4ec8bf1d9ddb67ca21aa2885
* | | return an error, as expected, when querying a disconnected displayMathias Agopian2012-09-201-0/+4
|/ / | | | | | | Change-Id: I405a3a7bb42b9bbd2ec7bfe09e60e1b7acf7389d
* | fix a typo preventing pre hwc-1.1 devices from bootingMathias Agopian2012-09-201-0/+1
| | | | | | | | Change-Id: Icf01254689633d04967872749ac947a671e47ed8
* | we now correctly set-up connected screens during bootMathias Agopian2012-09-205-42/+54
| | | | | | | | Change-Id: Ie8b1a3b97ad1821cc970e43abe96c8cec7135b66
* | We now report hotplug events to the frameworkMathias Agopian2012-09-207-20/+65
| | | | | | | | Change-Id: I2d6b7787d39e5929485a551e4982498c5053c211
* | one more step toward HDMI supportMathias Agopian2012-09-203-35/+54
| | | | | | | | | | | | | | | | | | | | | | | | getDisplayInfo() now returns proper information for HWC managed displays. hotplug is sitll not supported; so this is not fully correct as the information returned will be bogus if the HDMI screen is not plugged in. Bug: 7191563 Change-Id: If55d8e829fae0443571548155007f486cdf9bc9f
* | calculate wether we filter on a per-display basisMathias Agopian2012-09-205-2/+12
| | | | | | | | Change-Id: I79d80b432b20b3d02428da19add464ac1e2b9378
* | GraphicBufferAlloc class was declared twiceMathias Agopian2012-09-206-46/+101
| | | | | | | | | | | | | | this was confusing because the one in FramebufferSurface wasn't in fact being used Change-Id: Ied45aec20d804cfbe52440f9b2f2852a85c757cf
* | Merge "Disable the use of clock_gettime for now." into jb-mr1-devBen Cheng2012-09-201-1/+9
|\ \ | |/ |/|
| * Disable the use of clock_gettime for now.Ben Cheng2012-09-191-1/+9
| | | | | | | | | | Bug: 7100774 Change-Id: I6ede2a37a5d485134fe419b5dc766f70ae4af9d4
* | Merge "frameworks/native: Amend HDCP API" into jb-mr1-devAndreas Huber2012-09-201-4/+13
|\ \
| * | frameworks/native: Amend HDCP APIDeva Ramasubramanian2012-09-191-4/+13
| |/ | | | | | | | | | | | | | | - Allow caller to set the observer and cookie. - Add more notifications that the HDCPModule can send to its Observer. Change-Id: I8bf9cc02a029cd38bbd25d9f0a634452173f4d26 Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
* | Merge "Allow 16-bit color EGLConfigs" into jb-mr1-devJesse Hall2012-09-191-11/+27
|\ \
| * | Allow 16-bit color EGLConfigsJesse Hall2012-09-191-11/+27
| |/ | | | | | | | | | | | | | | The emulator without GPU acceleration only supports 16-bit framebuffers. Bug: 7185810 Change-Id: I883180367bf5b291d5e70427ab586d2e17868a96
* | am 516efc1b: am 8a2b5423: Merge "libagl: Transform the vertex if using eye ↵Mathias Agopian2012-09-191-0/+7
|\ \ | | | | | | | | | | | | | | | | | | space lighting with point lights" * commit '516efc1bea1c05492c5d4636a589cfc686661842': libagl: Transform the vertex if using eye space lighting with point lights
| * \ am 8a2b5423: Merge "libagl: Transform the vertex if using eye space lighting ↵Mathias Agopian2012-09-191-0/+7
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | with point lights" * commit '8a2b54235a45f92827b13723380065d1ce308236': libagl: Transform the vertex if using eye space lighting with point lights
| | * \ Merge "libagl: Transform the vertex if using eye space lighting with point ↵Mathias Agopian2012-09-191-0/+7
| | |\ \ | | | | | | | | | | | | | | | lights"
| | | * | libagl: Transform the vertex if using eye space lighting with point lightsMartin Storsjo2012-07-121-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes lighting when using point lights, when eye space lighting is used (which is the default). Change-Id: I0cd0d2329893d6b5f8af3b1e595274c2076fc322
* | | | | Merge changes I561c198c,Id4865f3c into jb-mr1-devMathias Agopian2012-09-196-77/+215
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: improve sensor battery usage tracking track UID with connections