summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup GL setup code and remove legacy 1.1 paths.Jason Sams2010-09-1616-128/+31
| | | | | | Reset pointers to NULL when allocations are unbound. Change-Id: Ifaba634ecbb154970b7fb47faa8e6475d16d2f66
* Merge "Snap layer bounds to pixel boundaries."Romain Guy2010-09-162-0/+9
|\
| * Snap layer bounds to pixel boundaries.Romain Guy2010-09-162-0/+9
| | | | | | | | Change-Id: I272ceebf469a119f01ea9d73cdd68519afdffa99
* | Merge "Better error handling in the OpenGL renderer."Romain Guy2010-09-163-3/+25
|\ \ | |/
| * Better error handling in the OpenGL renderer.Romain Guy2010-09-163-3/+25
| | | | | | | | | | | | | | Add a glGetError() check on every frame Don't attempt to create textures larger than the maximum size allowed Change-Id: Iee4afae16089406dbe8bf10fc93b674f1271a0ca
* | Add YUV420P color format support for video output from camera halJames Dong2010-09-161-1/+1
| | | | | | | | Change-Id: I5c8266348d0840361c8095ce351ac85c44d4068f
* | am 61cf67a2: am 24326f72: Merge "Input API review." into gingerbreadJeff Brown2010-09-161-3/+0
|\ \ | | | | | | | | | | | | | | | | | | Merge commit '61cf67a220ba3205737c646c1c836a92074220de' * commit '61cf67a220ba3205737c646c1c836a92074220de': Input API review.
| * \ am 24326f72: Merge "Input API review." into gingerbreadJeff Brown2010-09-161-3/+0
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '24326f7223275ba9c85014b86d42040e3a7d2815' into gingerbread-plus-aosp * commit '24326f7223275ba9c85014b86d42040e3a7d2815': Input API review.
| | * \ Merge "Input API review." into gingerbreadJeff Brown2010-09-161-3/+0
| | |\ \
| | | * | Input API review.Jeff Brown2010-09-141-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Drop currently unsupported input features. Add documentation comments. Change-Id: I407d2e1dd90c5ee82983a3ccf177430d35ee7592
* | | | | am 9284b454: am b9eb949b: Merge "Fix input dispatcher regression on launcher ↵Jeff Brown2010-09-161-49/+30
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | drag&drop." into gingerbread Merge commit '9284b454e28a49f514f9caddaace15b91d41165c' * commit '9284b454e28a49f514f9caddaace15b91d41165c': Fix input dispatcher regression on launcher drag&drop.
| * | | | am b9eb949b: Merge "Fix input dispatcher regression on launcher drag&drop." ↵Jeff Brown2010-09-161-49/+30
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into gingerbread Merge commit 'b9eb949bcae977a3f86e8307f3854f157227c34c' into gingerbread-plus-aosp * commit 'b9eb949bcae977a3f86e8307f3854f157227c34c': Fix input dispatcher regression on launcher drag&drop.
| | * | | Fix input dispatcher regression on launcher drag&drop.Jeff Brown2010-09-161-49/+30
| | | | | | | | | | | | | | | | | | | | Change-Id: I40e937bd712cd2ed6cceac95dfd1b8c8e070724f
* | | | | am 03335af0: am 567c00a8: Merge "Fix NPE when handling certain kinds of ↵Jeff Brown2010-09-161-4/+6
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ANRs." into gingerbread Merge commit '03335af0dbf14d1eb4503be92a5b10199719898c' * commit '03335af0dbf14d1eb4503be92a5b10199719898c': Fix NPE when handling certain kinds of ANRs.
| * | | | am 567c00a8: Merge "Fix NPE when handling certain kinds of ANRs." into ↵Jeff Brown2010-09-161-4/+6
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gingerbread Merge commit '567c00a86f748ad4d798ae50a09505cc051fc095' into gingerbread-plus-aosp * commit '567c00a86f748ad4d798ae50a09505cc051fc095': Fix NPE when handling certain kinds of ANRs.
| | * | | Fix NPE when handling certain kinds of ANRs.Jeff Brown2010-09-161-4/+6
| | | | | | | | | | | | | | | | | | | | Change-Id: Iccef1852e52c84f6f49d30c491431460a10b33d3
* | | | | am 7642c82c: am f4d788c9: Merge "Make input dispatcher only ANR for ↵Jeff Brown2010-09-151-393/+269
|\ \ \ \ \ | |/ / / / | | | | / | |_|_|/ |/| | | | | | | | | | | | | | | | | | | foreground windows." into gingerbread Merge commit '7642c82c291051919aad87c797e2dc1d77ed55e1' * commit '7642c82c291051919aad87c797e2dc1d77ed55e1': Make input dispatcher only ANR for foreground windows.
| * | | am f4d788c9: Merge "Make input dispatcher only ANR for foreground windows." ↵Jeff Brown2010-09-151-393/+269
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | into gingerbread Merge commit 'f4d788c9309bc5480100d980608472e4cb04f309' into gingerbread-plus-aosp * commit 'f4d788c9309bc5480100d980608472e4cb04f309': Make input dispatcher only ANR for foreground windows.
| | * | Make input dispatcher only ANR for foreground windows.Jeff Brown2010-09-151-393/+269
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Redesigned the input dispatcher's ANR timeout mechanism so it is much closer to Froyo's policy. ANR is only ever signalled if the dispatcher is waiting on a window to finish processing its previous event(s) and there is new pending input. In the old code, we tracked the dispatch timeout separately for each input channel. This was somewhat complicated and also resulted in the situation where applications could ANR long after the user had pushed them into the background. Change-Id: I666ecada0952d4b95f1d67b9f733842b745c7f4b
* | | Merge "Fix 9patch rendering."Romain Guy2010-09-154-120/+85
|\ \ \
| * | | Fix 9patch rendering.Romain Guy2010-09-154-120/+85
| | | | | | | | | | | | | | | | Change-Id: Ic4c18ff483cca95fbabcb10843f7714efe488adb
* | | | am 14bc6b5d: am 09340a4b: Merge "Replace epoll() with poll() and rename ↵Jeff Brown2010-09-158-781/+835
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | PollLoop to Looper." into gingerbread Merge commit '14bc6b5d0677e5c454a67775c852f90389bb4567' * commit '14bc6b5d0677e5c454a67775c852f90389bb4567': Replace epoll() with poll() and rename PollLoop to Looper.
| * | | am 09340a4b: Merge "Replace epoll() with poll() and rename PollLoop to ↵Jeff Brown2010-09-148-781/+835
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | Looper." into gingerbread Merge commit '09340a4bb99507d9b6bfbfc68a450d4d4f354d73' into gingerbread-plus-aosp * commit '09340a4bb99507d9b6bfbfc68a450d4d4f354d73': Replace epoll() with poll() and rename PollLoop to Looper.
| | * | Merge "Replace epoll() with poll() and rename PollLoop to Looper." into ↵Jeff Brown2010-09-148-781/+835
| | |\ \ | | | | | | | | | | | | | | | gingerbread
| | | * | Replace epoll() with poll() and rename PollLoop to Looper.Jeff Brown2010-09-148-781/+835
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As part of this change, consolidated and cleaned up the Looper API so that there are fewer distinctions between the NDK and non-NDK declarations (no need for two callback types, etc.). Removed the dependence on specific constants from sys/poll.h such as POLLIN. Instead looper.h defines events like LOOPER_EVENT_INPUT for the events that it supports. That should help make any future under-the-hood implementation changes easier. Fixed a couple of compiler warnings along the way. Change-Id: I449a7ec780bf061bdd325452f823673e2b39b6ae
* | | | | resolved conflicts for merge of 48a86240 to masterMathias Agopian2010-09-154-4/+135
|\ \ \ \ \ | |/ / / / | | | | | | | | | | Change-Id: I2305fef9f4dd46183337217d822df3c675b6b6e5
| * | | | am b3ffc78f: Merge "Add logging of various important graphics events" into ↵Mathias Agopian2010-09-144-4/+135
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gingerbread Merge commit 'b3ffc78f3432344702e6f5232067ab624083cad2' into gingerbread-plus-aosp * commit 'b3ffc78f3432344702e6f5232067ab624083cad2': Add logging of various important graphics events
| | * | | Add logging of various important graphics eventsMathias Agopian2010-09-134-4/+135
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are 16 events logged in the event log: SF_APP_DEQUEUE_BEFORE SF_APP_DEQUEUE_AFTER SF_APP_LOCK_BEFORE SF_APP_LOCK_AFTER SF_APP_QUEUE SF_REPAINT SF_COMPOSITION_COMPLETE SF_UNLOCK_CLIENTS SF_SWAP_BUFFERS SF_REPAINT_DONE SF_FB_POST_BEFORE SF_FB_POST_AFTER SF_FB_DEQUEUE_BEFORE SF_FB_DEQUEUE_AFTER SF_FB_LOCK_BEFORE SF_FB_LOCK_AFTER all events log the buffer conserned and a timestamp in microseconds. by default the logging is not enabled, to turn it on: adb shell service call SurfaceFlinger 1006 i31 1 adb shell setprop debug.graphic_log 1 The effect is immediate in SurfaceFlinger, but applications need to be restarted. Change-Id: Ifc2e31f7aed072d9a7dede20ff2ce59231edbec1
* | | | Fix partial NP2 support and restrict mipmaps and clampJason Sams2010-09-142-19/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | modes on HW that does not support proper NP2 bug 2965170 Change-Id: If9a3ac45264861fc75b9616e98957e12a5464411
* | | | Merge "Shader changes to allow for more flexible constant binding."Alex Sakhartchouk2010-09-1415-218/+216
|\ \ \ \ | |_|_|/ |/| | |
| * | | Shader changes to allow for more flexible constant binding.Alex Sakhartchouk2010-09-1415-218/+216
| | | | | | | | | | | | | | | | Change-Id: Ic66e6e2a371c6e3d5dce1b00f63acab8c09bd110
* | | | Docs updates.Romain Guy2010-09-132-1/+14
| | | | | | | | | | | | | | | | Change-Id: Iff395e1c6d81a484a2c4ad6e88357c0134971b78
* | | | Document the implementation of saveLayer().Romain Guy2010-09-132-17/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The implementation is simple but tricky. Leave explanations to my future self so that I don't invent a time machine to come back to now and slap my self. This change also simplifies the way the GL blending function is chosen when compositing a layer. It reuses existing OpenGLRenderer APIs and is easier to understand. Change-Id: I1b9cf8c5d51e09836d85b8cf157a1c284aa65c59
* | | | Forgot the return value...Romain Guy2010-09-131-1/+2
| | | | | | | | | | | | | | | | Change-Id: Iccf369a613c1cf83f3e948460c567291b084fad2
* | | | Fix rendering issue with layers intersecting the clip rect.Romain Guy2010-09-131-1/+5
| | | | | | | | | | | | | | | | Change-Id: Icbe35194fa219ef13ce639d33631235f8d7df3d7
* | | | Forces windows to draw the first time they show.Romain Guy2010-09-131-1/+1
| | | | | | | | | | | | | | | | Change-Id: I239572ee49bc60f30d957f548104e75844859a93
* | | | Fix text rendering issue with text scaling.Romain Guy2010-09-123-19/+20
| | | | | | | | | | | | | | | | Change-Id: I1f3ae40025697e8f8ca0616ee6550fe215cadcc8
* | | | am 0f0541e4: am b88102f5: Input dispatcher ANR handling enhancements.Jeff Brown2010-09-124-502/+1881
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | Merge commit '0f0541e40cfef51eb5c3769e53c1aa853b53aaf6' * commit '0f0541e40cfef51eb5c3769e53c1aa853b53aaf6': Input dispatcher ANR handling enhancements.
| * | | am b88102f5: Input dispatcher ANR handling enhancements.Jeff Brown2010-09-124-502/+1881
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | Merge commit 'b88102f5b7e51552a3576cf197b4c8cf96f193d1' into gingerbread-plus-aosp * commit 'b88102f5b7e51552a3576cf197b4c8cf96f193d1': Input dispatcher ANR handling enhancements.
| | * | Input dispatcher ANR handling enhancements.Jeff Brown2010-09-124-502/+1881
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change is essentially a rewrite of the main input dispatcher loop with the target identification folded in. Since the input dispatcher now has all of the window state, it can make better decisions about when to ANR. Added a .5 second deadline for processing app switch keys. This behavior predates Gingerbread but had not previously been ported. Fixed some timing inaccuracies in the ANR accounting that could cause applications to ANR sooner than they should have. Added a mechanism for tracking key and motion events that have been dispatched to a window so that appropriate cancelation events can be synthesized when recovering from ANR. This change helps to keep applications in sync so they don't end up with stuck buttons upon recovery from ANRs. Added more comments to describe the tricky parts of PollLoop. Change-Id: I13dffca27acb436fc383980db536abc4d8b9e6f1
* | | | Merge "Optimize calls to glCopyTexImage2D()."Romain Guy2010-09-122-8/+41
|\ \ \ \
| * | | | Optimize calls to glCopyTexImage2D().Romain Guy2010-09-122-8/+41
| | | | | | | | | | | | | | | | | | | | Change-Id: I34ee87bd4472864f440916e03a2894fae24bbe4a
* | | | | Merge "Correct implementation of saveLayer()."Romain Guy2010-09-128-161/+131
|\ \ \ \ \ | |/ / / / | | | | / | |_|_|/ |/| | |
| * | | Correct implementation of saveLayer().Romain Guy2010-09-128-161/+131
| | | | | | | | | | | | | | | | Change-Id: I5375126636913e0a84f2d6bbd0ebe40d2e4f2763
* | | | am 510951e9: am a8512a71: Always set the scheduling group when starting a ↵Dianne Hackborn2010-09-091-16/+23
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | | | | | | | | | | new thread. Merge commit '510951e98bdb861130f38c087956cd05e0b41dcd' * commit '510951e98bdb861130f38c087956cd05e0b41dcd': Always set the scheduling group when starting a new thread.
| * | am a8512a71: Always set the scheduling group when starting a new thread.Dianne Hackborn2010-09-091-16/+23
| |\ \ | | |/ | | | | | | | | | | | | | | | Merge commit 'a8512a71d3c2e3e67bbccf11251ed594d66f1f25' into gingerbread-plus-aosp * commit 'a8512a71d3c2e3e67bbccf11251ed594d66f1f25': Always set the scheduling group when starting a new thread.
| | * Always set the scheduling group when starting a new thread.Dianne Hackborn2010-09-091-16/+23
| | | | | | | | | | | | Change-Id: Ia33acf13fc3752707f3819928c36315e223fa1bd
* | | Add support for advanced blend modes with the framebuffer.Romain Guy2010-09-095-38/+115
| | | | | | | | | | | | | | | | | | | | | This adds the ability to blend with the framebuffer using Darken, Lighten, Add, Multiply, Overlay and Screen. Change-Id: Iae01a53797d4ad39c373cba6ff2a42293129da1a
* | | Do not convert 8888 bitmaps to 565 when doing a copy.Romain Guy2010-09-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Bug #2988077 This change keeps the 8888 format for new bitmaps and also keeps, when possible, the opaque flag. Change-Id: Ia61f2e89936916b329212a4c59a7d815c329f84e
* | | A Path can exist in several cache entries.Romain Guy2010-09-091-1/+0
| | | | | | | | | | | | Change-Id: I742f7425d2b6bef753ed3e04fb39ebb103b2dc00