summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-11-22Merge "surfaceflinger: Handle screen timeout on hw without vsync" into ↵linaro_android_4.2Bernhard Rosenkraenzer
linaro_android_4.2
2012-11-22surfaceflinger: Handle screen timeout on hw without vsyncVishal Bhoj
timeout currently at 1 second waiting for vsync. With this change timeout happens at 16ms. Change-Id: I785a2ff2bd15710c1b36466a298379adcf0ae936 Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
2012-11-22surfaceflinger: Don't crash on missing functions in hwcomposersBernhard Rosenkraenzer
Some hwcomposers -- most notably hwcomposer.default.so -- don't implement blank() or eventControl(). Don't crash when trying to use them. Change-Id: I2b2c3e17f254e3c5e3706bd43de8a244d22a9bb6 Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
2012-11-15surfaceflinger: Work around aliasing violationsBernhard Rosenkraenzer
Change-Id: I22e758390c1312e60bb4adac2365be201ba6f161 Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
2012-11-15frameworks/native: Fix build with ISO C++11 compilersBernhard Rosenkraenzer
Fix macro definitions so they can't be confused with C++11 string literals Change-Id: I2856933291d08eed789188ea9be036324384e67f Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
2012-11-14surfaceflinger: HDMI Samsung Soc Origen HDMI Enabling CodeFahad Kunnathadi
This code enables HDMI in origen board. Change-Id: I9c95b9a0aa6ed9dae077cff59104e2f95efe9327 Signed-off-by: Fahad Kunnathadi <fahad.k@linaro.org>
2012-11-14binder: Fix ABI incompatibility between older and newer compilersBernhard Rosenkraenzer
Parcel::writeString16's first parameter was a char16_t - defined to uint16_t somewhere else. With ISO C++11 compatible compilers, however, char16_t is a compiler-defined-type that is not necessarily unsigned. This causes the symbol to be different, breaking support for talking to binary blobs built with pre-ISO C++11-compilers, such as the Galaxy Nexus RIL. Change-Id: Ibaa57fbd7d9fc4a95649d3b45d28d29963a9548b Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
2012-11-14Graphics: Add support for YUV bitmap formatsST-Ericsson
Support for the proprietary YCBCR42XMB and other YUV/YVU bitmap formats has been added to PixelFormat and CameraParameters. Change-Id: I88ed8153c2f1c4f772ef3496e1d4a637154ef420 Signed-off-by: Patrik Ryd <patrik.ryd@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/70893
2012-11-14Remove unused NVidia egl extensionsST-Ericsson
Change-Id: I5cb718426c4c3d261f7ef723e8d5be9b2e61b6e3 Signed-off-by: Patrik Ryd <patrik.ryd@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/70892
2012-11-14frameworks/native: Fix build in ISO C++11 modeBernhard Rosenkraenzer
Change-Id: Icc19cde1bf9c72397ed8bda545e9056483d83e8d Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
2012-11-14frameworks/native: Fix build in ISO C++ 11 modeBernhard Rosenkraenzer
Fix constructs that are considered new string literals in C++ 11 mode Change-Id: Iadcad5f83c79e6726ca66ced5fc1e038b7587069 Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
2012-11-14frameworks/base: Make sure Singleton instantiations are exportedBernhard Rosenkraenzer
This fixes using Singletons across shared library borders with gcc 4.7+ Change-Id: I84b9cc99add4ace64c16e4fa8414a4fc7e4693c7 Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
2012-11-05merge in jb-mr1-release history after reset to jb-mr1-devandroid-cts-4.2_r1android-4.2_r1android-4.2.1_r1.2android-4.2.1_r1.1android-4.2.1_r1jb-mr1-releaseThe Android Automerger
2012-11-05fix transitions from hwc to GLES compositionandroid-sdk-support_r11Mathias Agopian
If we switched from HWC to GLES but the dirty region was empty (could happen if the dirty region is outside of the screen for instance), we need to force a full screen composition. In this change we ignore the dirty region for the purpose of rejecting the whole update and we rely on the fact that it will later be expanded to the whole screen. This was the least risky fix. Bug: 7467760, 7452931 Change-Id: I2132f2f963b00a3ce7150adadb107b0367b3862e
2012-10-30merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger
2012-10-28dumpstate: add kernel memory fragmentation unusable indexColin Cross
Dump /d/extfrag/unusable_index in bugreports. It shows the percentage of memory in each zone that is not available for allocations for each order. Change-Id: I2af6680cb609887ea7b3d6107d1aa88bd0206b52
2012-10-25partially implement external display clippingMathias Agopian
we perform external display clipping only on the GL side (ie: not done on the h/w composer side, which is harder and would be too risky). in practice this means that WFD will be clipped properly, while HDMI *may* or may not depending on how hwc is used. Bug: 7149437 Change-Id: I92d4d04220db72b6ffb134c7fa7a93af569723a5
2012-10-25merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger
2012-10-25partially implement external display clippingMathias Agopian
we perform external display clipping only on the GL side (ie: not done on the h/w composer side, which is harder and would be too risky). in practice this means that WFD will be clipped properly, while HDMI *may* or may not depending on how hwc is used. Bug: 7149437 Change-Id: I92d4d04220db72b6ffb134c7fa7a93af569723a5
2012-10-25Revert "Revert "put back the unused virtuals in Vector<>""Dave Burke
This reverts commit 225c66a48cdc3acef21ee380dc134449749d3cb3 Change-Id: If31a04b81052cbc7dd7bf237c07107c33066d03d
2012-10-22merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger
2012-10-22prevent a client from crashing surfaceflingerMathias Agopian
a misbehaving or malicious client could cause SF to crash by providing a "fake" IInterface. we now check the IInterface we get is our own and local. Bug: 7278879 Change-Id: Ia19d05902d4b2385c5a16416148378d4998833fd
2012-10-22Merge "SurfaceFlinger: add support for secure displays" into jb-mr1-devJamie Gennis
2012-10-22SurfaceFlinger: add support for secure displaysJamie Gennis
This change adds support for displays that are not allowed to display surfaces with the eSecure flag set. All non-virtual displays are considered secure, while virtual displays have their secure-ness specified at creation time. Bug: 7368436 Change-Id: I81ad535d2d1e5a7ff78269017e85b111f0098500
2012-10-20merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger
2012-10-19Fix emulator vsyncAndy McFadden
The code that reserves display IDs was only run when a hardware composer was present. The eventControl() function, which handles enabling of vsync, was ignoring the request because the primary display didn't appear in its set of allocated IDs. This moves reservation of IDs for built-in displays outside the HWC-only block. Also, added a couple of warnings in eventControl(). Bug 7376568 Change-Id: I185ccdf817a25499b5c2668f8f6d594afb8c1568
2012-10-19merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger
2012-10-18Merge "Add runtime debugging capabilities to OpenGL" into jb-mr1-devRomain Guy
2012-10-18Add runtime debugging capabilities to OpenGLRomain Guy
The shell property debug.egl.trace can now be set to: 0 disables tracing 1 logs all GL calls error checks glGetError after every GL call, logs a stack trace on error systrace logs each GL call to systrace Change-Id: I34a2a2d4e19c373fd9eaa1b0cd93e67c87378996
2012-10-18merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger
2012-10-17merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger
2012-10-17SurfaceFlinger: change the animation timeoutJamie Gennis
This change changes the animation transaction timeout from 500us to 5s. Bug: 7362633 Change-Id: I9bed8e74f726dae2daa398afc29babcea00d5b04
2012-10-17Merge "BufferQueue: alloc without holding the lock" into jb-mr1-devJamie Gennis
2012-10-16merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger
2012-10-16Merge "Update comments to reflect what the code actually does" into jb-mr1-devRomain Guy
2012-10-16merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger
2012-10-15fix a corruption in blank/unblankMathias Agopian
we were holding a reference (ie: pointer) to a sp<DisplayDevice> while processing the message. Meanwhile the object itself could go away and we would end up accessing a dead object. the root cause of the problem is that we are accessing mDisplays[] in a few places outside of the main thread. Bug: 7352770 Change-Id: I89e35dd85fb30e9a6383eca9a0bbc7028363876c
2012-10-15Merge "SurfaceFlinger: add animation transactions" into jb-mr1-devJamie Gennis
2012-10-15Update comments to reflect what the code actually doesRomain Guy
Change-Id: I2613aa32c29eddc52a00090656c1bd11f9f5732b
2012-10-15SurfaceFlinger: add animation transactionsJamie Gennis
This change adds a transaction flag for WindowManager to indicate that a transaction is being used to animate windows around the screen. SurfaceFlinger will not allow more than one of these transactions to be outstanding at a time to prevent the animation "frames" from being dropped. Bug: 7353840 Change-Id: I6488a6e0e1ed13d27356d2203c9dc766dc6b1759
2012-10-15Merge "Add new debug option to force 4x MSAA in OpenGL ES 2.0 apps" into ↵Romain Guy
jb-mr1-dev
2012-10-15Add new debug option to force 4x MSAA in OpenGL ES 2.0 appsRomain Guy
Change-Id: I53ac91a9ce07b5dd5f2ee0e3cc5b65b6402f9229
2012-10-15Always set vertex alpha when drawing screenshot layersJesse Hall
The screenshot is a GL_RGB texture, and the GL_REPLACE texture env mode uses vertex alpha for GL_RGB textures instead of alpha=1.0. Bug: 7340077 Change-Id: I6fbb907023e48f9c422b15a33da79757d6726840
2012-10-13merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger
2012-10-12Merge "Add TEMP_FAILURE_RETRY around open and write calls" into jb-mr1-devKenny Root
2012-10-12merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger
2012-10-12Merge "SurfaceFlinger: make the num FBs a board config" into jb-mr1-devJamie Gennis
2012-10-12SurfaceFlinger: make the num FBs a board configJamie Gennis
Bug: 7283132 Change-Id: I38116f39fc18212f2daab94bbfc3daaf89439fc4
2012-10-12Add TEMP_FAILURE_RETRY around open and write callsKenny Root
Bug: 7330849 Change-Id: I9aef3c3d3a248c3eea7ca060124ad6decaa6b4da
2012-10-11BufferQueue: alloc without holding the lockJamie Gennis
This change makes BufferQueue::dequeueBuffer release its mutex before allocating new buffers. This should alleviate lock contention in SurfaceFlinger where SF's main thread can get blocked waiting for an allocation operation to complete. Bug: 7335075 Change-Id: I1b000539cc616a695afab2e9c68507db69e57b13