summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* fix a few problems with BitTubeMathias Agopian2013-09-105-66/+105
| | | | | | | | | | | | | | | | BitTube used to send objects one at a time and didn't handle errors properly. We now send all the objects in one call, which means they have to be read as a single batch as well. This changes the BitTube API. Update SensorService to the new API. Also added an API to set the size of the send buffer. Bug: 10641596 Change-Id: I77c70d35e351fdba0416fae4b7ca3b1d56272251
* fix a possible null dereference when eglMakeCurrent() failsMathias Agopian2013-09-061-1/+2
| | | | | Bug: 10648797 Change-Id: Iee0be47f2646feb25de4ea199bbb9b707452916e
* Merge "color blindness enhancement" into klp-devMathias Agopian2013-09-0621-71/+472
|\
| * color blindness enhancementMathias Agopian2013-09-0421-71/+472
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an attempt at improving the experience of users with color vision impairement. At this time this feature can only be enabled for debugging: adb shell service call SurfaceFlinger 1014 i32 PARAM with PARAM: 0 : disabled 1 : protanomaly/protanopia simulation 2 : deuteranomaly/deuteranopia simulation 3 : tritanopia/tritanomaly simulation 11, 12, 13: same as above w/ attempted correction/enhancement The enhancement algorithm tries to spread the "error" such that tones that would otherwise appear similar can be distinguished. Bug: 9465644 Change-Id: I860f7eed0cb81f54ef9cf24ad78155b6395ade48
* | Fix issue #10422349: Limit/change the battery history data in batterystatsDianne Hackborn2013-09-041-1/+1
| | | | | | | | | | | | Use new compact option to include history when dumping battery stats. Change-Id: I3833a88db76d8791bd5c2e8f6ff414af65472a42
* | Merge "HDCP: add enums for HDCP module capabilities" into klp-devChong Zhang2013-09-041-0/+13
|\ \
| * | HDCP: add enums for HDCP module capabilitiesChong Zhang2013-09-041-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds the enums for HDCP caps. An interface getCaps() will be added later for querying whether HDCP module supports encryption from a native buffer output from the encoder. Bug: 10609422 Change-Id: Ib7fa14e7f4de1da90b46eaa174a7a05ec9dacbdc
* | | Merge "Sensor batching. Changes to the native code." into klp-devAravind Akella2013-09-0415-116/+448
|\ \ \ | |_|/ |/| |
| * | Sensor batching. Changes to the native code.Aravind Akella2013-09-0315-116/+448
| |/ | | | | | | | | Bug: 10109508 Change-Id: I7333f3aac76125a8226a4c99c901fb904588df04
* | improve mat44 implementationMathias Agopian2013-09-036-155/+208
|/ | | | | | this will make it easier to create matrices of different sizes Change-Id: I2c1771ba0823c42d737762e2dfc2cd47eb302767
* Merge changes I8283a989,I64add89a into klp-devMathias Agopian2013-08-3116-37/+1715
|\ | | | | | | | | | | * changes: switch to use mat4 vector and matrix classes for graphics use
| * switch to use mat4Mathias Agopian2013-08-267-36/+15
| | | | | | | | Change-Id: I8283a989cfd2b74d53958150bc90298bc083fee7
| * vector and matrix classes for graphics useMathias Agopian2013-08-269-1/+1700
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - this implements vec2, vec3, vec4, which are float vectors of size 2, 3 and 4 respectively. the code allows easy instantiation of vectors of a different type via the tvec{2|3|4}<T> template classes. - this also implements mat4 which is a float 4x4 matrix. the tmat44<T> template class allows easy instantiation of a 4x4 matrix of a different value_type. The vector types have some minimal support for the glsl style swizzled access; for instance: vec4 u; vec3 v = u.xyz; only .x, .xy, .xyz and their .stpq / .rgba equivalent are supported. most operators are supported on both vector and matrices: arithmetic, unary, compound assignment and comparison (bit-wise operators NOT supported). - operations available on vectors include: dot, length, distance, normalize and cross - operations available on matrices include: transpose, inverse, trace - and a few utilities to create matrices: ortho, frustum, lookAt Change-Id: I64add89ae90fa78d3f2f59985b63495575378635
* | Merge "Force async behavior for the virtual display output BufferQueue" into ↵Jesse Hall2013-08-303-8/+17
|\ \ | | | | | | | | | klp-dev
| * | Force async behavior for the virtual display output BufferQueueJesse Hall2013-08-293-8/+17
| |/ | | | | | | | | Bug: 10551087 Change-Id: I40bbb2b87d64420939a0ea309254f281437dab56
* | minor clean-up of the GLESRendererMathias Agopian2013-08-287-25/+14
| | | | | | | | Change-Id: I978dea25b7687fbbbb283f09c24e115d9bad49a2
* | reset the gl viewport at each frame for each displayMathias Agopian2013-08-282-3/+2
| | | | | | | | | | Bug: 10097128, 9506003 Change-Id: Ie0403a631e339a9134216224f3366f46ece58b53
* | remove adreno 130 workaround supportMathias Agopian2013-08-282-19/+0
| | | | | | | | Change-Id: I8ea5ee65d405114b30cfaa44e1a0c971d1ef2a61
* | try to keep omap4 aliveMathias Agopian2013-08-283-35/+22
|/ | | | | Bug: 10527646 Change-Id: Iec572a910e932115cf4f2e1215142b10cd91bd6f
* Merge changes I34935d21,If423cd29 into klp-devMathias Agopian2013-08-243-23/+46
|\ | | | | | | | | | | * changes: handle several vsync signal correctly only use format compatible with CPU consumers
| * handle several vsync signal correctlyMathias Agopian2013-08-212-8/+18
| | | | | | | | Change-Id: I34935d2197ce8e914fef2f110896e47b44225ad2
| * only use format compatible with CPU consumersMathias Agopian2013-08-211-15/+28
| | | | | | | | | | | | | | | | | | EGL now picks the buffer format out of a small set of formats compatible with CPU consumers instead of using the EGL_NATIVE_VISUAL_ID. Bug: 10194508 Change-Id: If423cd29601b7a3ace8670f4c73004132cfc4b31
* | Merge "make sure SF initialization is ran at target priority and correct ↵Mathias Agopian2013-08-243-11/+15
|\ \ | | | | | | | | | thread group" into klp-dev
| * | make sure SF initialization is ran at target priority and correct thread groupMathias Agopian2013-08-233-11/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SF can spawn threads (indirectly) during initialization and we want those to be spawned at URGENT_DISPLAY_PRIORITY (in theory they should set their own, but some code lives in vendor libraries and doesn't). Bug: 10430209 Change-Id: I5b3a8f979297de287614c8eafd8267bef1176e4b
* | | fix DimLayer in GLES2.0 SFMathias Agopian2013-08-231-2/+5
|/ / | | | | | | | | | | | | DimLayer state wasn't initialized properly. Bug: 10442967 Change-Id: I384c1d85c58c96ae29d5daa1fabee9f4ce003501
* | Remove input flinger stubs. (DO NOT MERGE)Jeff Brown2013-08-227-333/+0
| | | | | | | | | | Bug: 10446930 Change-Id: I4dd46f539cd2a2e324dfc83b45ba2787f7404a4a
* | Merge "Add ability to test supported content types to MediaDrm" into klp-devJeff Tinker2013-08-221-0/+5
|\ \
| * | Add ability to test supported content types to MediaDrmJeff Tinker2013-08-211-0/+5
| | | | | | | | | | | | | | | bug: 10244066 Change-Id: I6666d0dbfdc6e791deb9a82c918255af4fa19816
* | | Merge "Surface: Fix controlledByApp parameter" into klp-devEino-Ville Talvala2013-08-221-1/+1
|\ \ \ | |_|/ |/| |
| * | Surface: Fix controlledByApp parameterEino-Ville Talvala2013-08-211-1/+1
| | | | | | | | | | | | | | | Bug: 10425641 Change-Id: I1a47e2ce4ecbdb8e67030a5d9ddf6604c5e2497d
* | | screenshot layers wouldn't work in some casesMathias Agopian2013-08-212-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | specifically when the display size and the screenshot window size didn't match, the buffer would be rejected. We simply fix this by setting the scalling mode to "SCALE_TO_WINDOW". Bug: 9992306 Change-Id: Ib821767899af330bb70d3cbbfa7d41b02794a075
* | | Merge "dumpstate: Fix wifi list of networks dump" into klp-devDmitry Shmidt2013-08-211-1/+1
|\ \ \
| * | | dumpstate: Fix wifi list of networks dumpDmitry Shmidt2013-08-211-1/+1
| |/ / | | | | | | | | | | | | | | | | | | Bug: 9056601 Change-Id: Ia0adb67afdf3d478033d0ee34bbb95e621e2fe51 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | | Merge "Fix a bug where non-cropped layer could be scaled incorrectly" into ↵Mathias Agopian2013-08-211-1/+7
|\ \ \ | |/ / |/| | | | | klp-dev
| * | Fix a bug where non-cropped layer could be scaled incorrectlyMathias Agopian2013-08-201-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a layer is not cropped but its bounds are outside of the viewport (i.e.: clipped), the crop rectangle passed to hw composer would be invalid because it started invalid in the first place (to indicate "no crop"). Bug: 10410944 Change-Id: I4ae4d49a1adef0be7fa4304ecf84b1a5b7d03fe0
* | | Merge "Provide HWC prepare with a valid output buffer" into klp-devJesse Hall2013-08-218-38/+100
|\ \ \
| * | | Provide HWC prepare with a valid output bufferJesse Hall2013-08-208-38/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We weren't dequeing and setting the output buffer until just before set(). This didn't allow HWC to make decisions in prepare() based on the output buffer format, dimensions, etc. Now we dequeue the output buffer at the beginning of the composition loop and provide it to HWC in prepare. In GLES-only rendering, we may have to cancel the buffer and acquire a new one if GLES requests a buffer with properties different than the one we already dequeued. Bug: 10365313 Change-Id: I96b4b0a851920e4334ef05080d58097d46467ab8
* | | | Merge "Fix HWComposer dumping of float source crops" into klp-devJesse Hall2013-08-211-10/+20
|\ \ \ \ | |/ / /
| * | | Fix HWComposer dumping of float source cropsJesse Hall2013-08-201-10/+20
| | | | | | | | | | | | | | | | Change-Id: I45a9344b5fab17ccb54bebd01382d738a03860e6
* | | | Merge "Fix virtual displays for HWC 1.0" into klp-devAndy McFadden2013-08-211-5/+7
|\ \ \ \ | |_|/ / |/| | |
| * | | Fix virtual displays for HWC 1.0Andy McFadden2013-08-201-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We weren't swapping the buffers. Bug 10366404 Change-Id: I43eb7648231bedf24899da6fc0d9acc09e0b047e
* | | | SurfaceFlinger now runs in the process's main threadMathias Agopian2013-08-206-28/+48
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | it used to spawn its own thread and return the main thread to the binder thread pool -- this was confusing the naming of things in the kernel. Bug: 10331839 Change-Id: I2d13a6d73409a38109300fcbe6a04b4c41cb5d00
* | | Fix buildAndy McFadden2013-08-191-1/+1
|/ / | | | | | | | | | | Neglected the "checkbuild"-built tests. Change-Id: I202692f1a6d1e306c88e820c959d07d16e7c6a00
* | Merge "Re-enable frame dropping for non-auto timestamps" into klp-devAndy McFadden2013-08-197-13/+39
|\ \
| * | Re-enable frame dropping for non-auto timestampsAndy McFadden2013-08-167-13/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds an entire field to note whether the timestamp was auto-generated by Surface or supplied by the application. The value is used when deciding whether or not to drop frames based on buffer presentation timestamps. If a desired presentation time was set explicitly, BufferQueue will use that value to decide if a frame should be dropped. If the timestamp was generated by Surface at the time the buffer was queued, the timestamp is ignored. Bug 10151804 Change-Id: Ibd571a7578351063b813cbdad2ddbeed70655ba5
* | | Merge "Use new HWC display type/count constants." into klp-devJesse Hall2013-08-187-50/+48
|\ \ \
| * | | Use new HWC display type/count constants.Jesse Hall2013-08-167-50/+48
| | | | | | | | | | | | | | | | Change-Id: I774d0c68906ac6dc69268f708c30a6b0868b8816
* | | | Merge "Encapsulate textures into their own Texture class" into klp-devMathias Agopian2013-08-1714-56/+193
|\ \ \ \ | |_|/ / |/| | |
| * | | Encapsulate textures into their own Texture classMathias Agopian2013-08-1614-56/+193
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the main reason for doing this is so that we can have access to informations about a texture (like its dimension) close to where we generate and use shaders in ES 2.0. Previously, there wasn't any way to get to a texture's size from a RenderEngine implementation. Bug: 8679321 Change-Id: I388b338a70d07e3e8177dde248710ea1e4c82dff
* | | Merge "Replace sRGB_888 with sRGB_X_8888" into klp-devJesse Hall2013-08-161-3/+3
|\ \ \