summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add new resources trace.Dianne Hackborn2013-04-121-0/+1
| | | | Change-Id: Iab8c1ef51f491e818fb4bab0ba7a042f0d9bec9a
* Merge "DO NOT MERGE Make sure surfaces always have latest orientation info" ↵Chet Haase2013-04-121-5/+10
|\ | | | | | | into jb-mr2-dev
| * DO NOT MERGE Make sure surfaces always have latest orientation infoChet Haase2013-04-111-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the screen is turned off, the current stack is set to -1. This causes logic in iSurfaceFlinger's handleTransactionLocked() function to fail to match the current stack, and the latest orientation is not set into the layer. This causes BufferQueue, later, to potentially set an obsolete transformHint on a created surface (such as in the case with ImageWallpaper's Egl surface, in the bug below). The fix is to note this situation and use a default value for the DisplayDevice, which should have the current orientation information. Issue #8508397 ImageWallpaper sometimes rendered in wrong orientation causing a ~30-40% drop in graphics performance Change-Id: Ibae15d73b289a8343c67f4f6bb77fdf11dd95ee7
* | Merge "Improve screenshot performance on some devices (DO NOT MERGE)" into ↵Mathias Agopian2013-04-122-120/+131
|\ \ | | | | | | | | | jb-mr2-dev
| * | Improve screenshot performance on some devices (DO NOT MERGE)Mathias Agopian2013-04-112-120/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this affects devices that need a glReadPixels(). We use a FBO instead of a GlConsumer as an intermediate render target, this saves 2 calls to eglMakeCurrent(). On Galaxy Nexus this allows us to go from ~135ms to ~35ms for recent's screenshots. Bug: 8582615 Change-Id: I6b25291ecc235f1927579bbb2db3c731e985c6e8
* | | Merge "Updated comments" into jb-mr2-devAndy McFadden2013-04-112-115/+212
|\ \ \ | |/ / |/| |
| * | Updated commentsAndy McFadden2013-04-052-115/+212
| | | | | | | | | | | | | | | | | | Updated many comments. Added one minor error check. Change-Id: Ib935dd99d417bada91d2e198008a50dd94269316
* | | Merge "fix another bug where screenshots could end-up all black" into jb-mr2-devMathias Agopian2013-04-113-4/+37
|\ \ \
| * | | fix another bug where screenshots could end-up all blackMathias Agopian2013-04-103-4/+37
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SF transactions were always handled on VSYNC which allowed the screenshot to sneak-in between closing the transaction and vsync (before it's latched), resulting in a screenshot with the previous state. we now always force transactions to happen immediately before screenhots. Bug: 7552304 Change-Id: I0afc86b7e8366173daff5b9988bbb4d2a0f43860
* | | Merge "Add liblog" into jb-mr2-devYing Wang2013-04-1018-10/+26
|\ \ \
| * | | Add liblogYing Wang2013-04-0918-10/+26
| |/ / | | | | | | | | | | | | Bug: 8580410 Change-Id: I2ca4fa00dde0b574df3619134836bcb9315bd506
* | | Merge changes I82e361a6,I83694682 into jb-mr2-devJamie Gennis2013-04-094-17/+40
|\ \ \ | |/ / |/| | | | | | | | | | | * changes: libgui_test: increase the tolerance for a YUV test libgui: fix an EGLImage leak
| * | libgui_test: increase the tolerance for a YUV testJamie Gennis2013-04-081-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | This change increases the pixel difference tolerance of the SurfaceTextureGLTest.TexturingFromCpuFilledYV12BufferNpot test from 2 to 3. Bug: 8349135 Change-Id: I82e361a689335f49065cacd8a3fc145d67b125f1
| * | libgui: fix an EGLImage leakJamie Gennis2013-04-083-5/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This moves the call to ConsumerBase::abandon from the ConsumerBase dtor to ConsumerBase::onLastStrongRef. The abandon call relies on virtual methods to perform the clean-up, so calling it from the ConsumerBase dtor after the derived classes dtors ran was skipping some of the clean-up. The onLastStrongRef method should get called just before the most derived class's dtor gets called. Bug: 8349135 Change-Id: I836946826927cc1ed69c049049f525f92b17a269
* | | Merge "Tell HWComposer the dimensions of virtual displays" into jb-mr2-devJesse Hall2013-04-063-14/+34
|\ \ \
| * | | Tell HWComposer the dimensions of virtual displaysJesse Hall2013-04-053-14/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | HWComposer queries the HWC for dimensions of physical displays, but can't do that for virtual displays. The dimensions are used to set the display frame of the framebuffer target layer passed to HWC, and implicitly the dimensions of the virtual display. Bug: 8316155 Change-Id: I9cbd2530d2fa878f86128a1472def520b5d694a5
* | | | Merge "Actually set the virtual display output buffer." into jb-mr2-devJesse Hall2013-04-061-1/+5
|\ \ \ \ | |/ / / |/| | |
| * | | Actually set the virtual display output buffer.Jesse Hall2013-04-041-1/+5
| | | | | | | | | | | | | | | | | | | | Bug: 8316155 Change-Id: Ida1ac47e5a932fdaad3ec862e121cfe55d255699
* | | | fix local include pathsMathias Agopian2013-04-0411-22/+20
| | | | | | | | | | | | | | | | Change-Id: Icb921fa796ec08612dbb2feb7e7161bcb0cf4a99
* | | | Merge "Implement async event callout from drm plugin to Java app" into ↵Jeff Tinker2013-04-051-3/+39
|\ \ \ \ | | | | | | | | | | | | | | | jb-mr2-dev
| * | | | Implement async event callout from drm plugin to Java appJeff Tinker2013-04-031-3/+39
| | | | | | | | | | | | | | | | | | | | Change-Id: I83a7757a7b83676ce1a9ffa6ff0a8e495e31b859
* | | | | Merge "Clean up HWC state when releasing a DisplayDevice" into jb-mr2-devJesse Hall2013-04-045-17/+38
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | Clean up HWC state when releasing a DisplayDeviceJesse Hall2013-03-275-17/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DisplayDevices can be released when DisplayManager removes them from the display list, or (for virtual displays) when the surface is set to NULL. We were only cleaning up HWC resources associated with the display in the first case. Bug: 8384764 Change-Id: Id3d226dd7178fbe6d0a2ac4e2660b864ee073de3
* | | | | latch transparent region hint only when we get a new frameMathias Agopian2013-04-025-7/+28
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | since the transparent region hint really depends on the content of the window containing the SurfaceView (it's calculated by the view hierarchy based on overlapping views), it makes sense to latch it only when the content of the window (the app) changes. This should help fixing drawing artifacts when changing the layout of a window containing a SurfaceView. Bug: 8511430 Change-Id: Ic3aa668495293cb4d82a2cd7dcf3b6a337287678
* | | | Merge "Fix include paths" into jb-mr2-devMathias Agopian2013-04-022-5/+6
|\ \ \ \
| * | | | Fix include pathsMathias Agopian2013-04-012-5/+6
| | | | | | | | | | | | | | | | | | | | Change-Id: If5350a3de995cc0cb1afea067e7ce168bc00d3f5
* | | | | Merge "MediaDrm API update" into jb-mr2-devJeff Tinker2013-04-021-33/+100
|\ \ \ \ \ | | |_|/ / | |/| | / | |_|_|/ |/| | |
| * | | MediaDrm API updateJeff Tinker2013-04-011-33/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clarify offline usage of sessions and keys and implement implement CryptoSession to support additional crypto use cases. Change-Id: I418ffbb37e3036a2b5eea5a86ac88a5af1a9da07
* | | | Merge "EGL_ANDROID_presentation_time: initial spec draft" into jb-mr2-devJamie Gennis2013-04-011-0/+121
|\ \ \ \
| * | | | EGL_ANDROID_presentation_time: initial spec draftJamie Gennis2013-04-011-0/+121
| | | | | | | | | | | | | | | | | | | | Change-Id: I1cd174a08c499e5bde19e7ecd449da8266e7e66e
* | | | | Fix MIPS assembly variable names to not conflict with GL API parameter namesJesse Hall2013-03-303-22/+22
| | | | | | | | | | | | | | | | | | | | Change-Id: I8e93fb55018de53a596cb176d48dbfdf1fd396e4
* | | | | Merge "don't use compile-time configuration of libgui as much as possible" ↵Mathias Agopian2013-03-2911-89/+190
|\ \ \ \ \ | | |_|/ / | |/| | | | | | | | into jb-mr2-dev
| * | | | don't use compile-time configuration of libgui as much as possibleMathias Agopian2013-03-2911-89/+190
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We now detect at runtime which sync features to use, which allows us to remove a lot of the compile-time configuration options. There is still one option though, to disable KHR_fence_sync on some devices (which are more efficient without it). - added a backdoor to get the vendor's EGL strings the new logic is: - use always ANDROID_native_fence_sync if available - fallback to KHR_fence_sync if available and not disabled by the compile-time option - use KHR_wait_sync if available and either of the above is enabled Change-Id: I9c4b49d9ff1151faf902cc93bd53ea5f205aaabf
* | | | | am e3a396b2: am 906bd042: Merge "[MIPS] Add MIPS architecture support to libagl"Keun-young Park2013-03-294-1/+113
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * commit 'e3a396b25d53cc9ae61e3a2f0daeaa68ac1ba5a1': [MIPS] Add MIPS architecture support to libagl
| * \ \ \ \ am 906bd042: Merge "[MIPS] Add MIPS architecture support to libagl"Keun-young Park2013-03-294-1/+113
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '906bd0422a99b37663a1cb130bf061fdbb3ea189': [MIPS] Add MIPS architecture support to libagl
| | * \ \ \ \ Merge "[MIPS] Add MIPS architecture support to libagl"Keun-young Park2013-03-294-1/+113
| | |\ \ \ \ \
| | | * | | | | [MIPS] Add MIPS architecture support to libaglDuane Sand2013-03-274-1/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I30eb92857a2a6ea867fe0ee45109f17609043aae
* | | | | | | | am 111d920b: am d3b2c029: Merge "[MIPS] Add MIPS architecture support to ↵Keun-young Park2013-03-284-1/+116
|\ \ \ \ \ \ \ \ | |/ / / / / / / | | | | / / / / | |_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | opengl framework" * commit '111d920bb588669006bdd8699e786d6305f14c36': [MIPS] Add MIPS architecture support to opengl framework
| * | | | | | am d3b2c029: Merge "[MIPS] Add MIPS architecture support to opengl framework"Keun-young Park2013-03-284-1/+116
| |\ \ \ \ \ \ | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | * commit 'd3b2c029eba356e7bed3754d60ade556c216348e': [MIPS] Add MIPS architecture support to opengl framework
| | * | | | | Merge "[MIPS] Add MIPS architecture support to opengl framework"Keun-young Park2013-03-294-1/+116
| | |\ \ \ \ \
| | | * | | | | [MIPS] Add MIPS architecture support to opengl frameworkDuane Sand2013-03-284-1/+116
| | | |/ / / / | | | | | | | | | | | | | | | | | | | | | Change-Id: Id7704d35bed14d96a85dc1f29db0566cd03872b5
* | | | | | | fix uninitialized attribute in SurfaceFlingerMathias Agopian2013-03-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I8277f67e297a8b6a99195387060d03154a2cd929
* | | | | | | Merge changes I22f1b358,I5496d0de,Ifd98966b into jb-mr2-devMathias Agopian2013-03-287-150/+507
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: replace eglWaitSyncANDROID by eglWaitSyncKHR update EGL headers to most recent cleanup EGL extensions strings and entry-points
| * | | | | | | replace eglWaitSyncANDROID by eglWaitSyncKHRMathias Agopian2013-03-284-29/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I22f1b3588011c88389e249f738f1e6915cc97e72
| * | | | | | | update EGL headers to most recentMathias Agopian2013-03-283-86/+372
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - add ANDROID extensions missing from official headers: EGL_ANDROID_wait_sync EGL_ANDROID_presentation_time Change-Id: I5496d0de123a6279234098c19f9a12220adec876
| * | | | | | | cleanup EGL extensions strings and entry-pointsMathias Agopian2013-03-283-40/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - move all the code related to EGL extensions in one place - add missing extension strings: EGL_KHR_lock_surface EGL_KHR_reusable_sync - add public extensions strings and entry-points EGL_ANDROID_wait_sync EGL_ANDROID_presentation_time - add missing entry-points for EGL_KHR_reusable_sync Change-Id: Ifd98966b549e8efd8ef5385eba0efde8c4cbc77b
* | | | | | | | Merge "Remove unused clz.cpp" into jb-mr2-devJesse Hall2013-03-281-37/+0
|\ \ \ \ \ \ \ \
| * | | | | | | | Remove unused clz.cppJesse Hall2013-03-281-37/+0
| | |_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | Change-Id: Ieed91a45ba0e865a0d47d84effe9439aaab4371f
* | | | | | | | atrace: add support for app tracingJamie Gennis2013-03-281-3/+26
| |_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds support for the -a command line argument to atrace. This argument sets the comma separated list of application names (i.e. /proc/self/cmdline values) for which to enable application-level tracing. Change-Id: I812d57c4cdc581943247229413f09b7e1adc10d0
* | | | | | | am 4194b389: am 0b6c4157: Merge "frameworks/native/opengl: Fix build with ↵Jesse Hall2013-03-284-4/+4
|\ \ \ \ \ \ \ | | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gcc 4.8" * commit '4194b3898df867a5c4377de49ddc72ad3e51122b': frameworks/native/opengl: Fix build with gcc 4.8