Commit Graph

26072 Commits

Author SHA1 Message Date
Jamie Gennis
c4d4aeab52 Implement SurfaceTexture frame-available callback.
This change implements the onFrameAvailable callback for the
SurfaceTexture java class.  It includes the C++ SurfaceTexture code as
well as the JNI and Java code to enable the callback.

Change-Id: Ifd8b8e7ad46ee70cba6da1c2e96dab8045d1ea30
2011-01-16 17:28:39 -08:00
Jamie Gennis
a214c64d7f Fix SurfaceTexture transform matrix.
Change-Id: I31520c547cafa5cc85cd0f73883ab3a9ff4648e2
2011-01-16 16:35:01 -08:00
Jamie Gennis
361dcc75b1 Merge "Compare GraphicBuffers using handles." into honeycomb 2011-01-15 17:01:51 -08:00
Jamie Gennis
73e8b9e524 Compare GraphicBuffers using handles.
This change fixes a bug in SurfaceTextureClient where GraphicBuffers
were being compared using pointer comparison rather than handles.

Change-Id: Ib8989af94be32d4efd86e020a732f5143088a863
2011-01-15 17:00:06 -08:00
Wink Saville
bcb3e57eef Merge "Set mIsMinInfoReady and mCurrentOtasp before notifcations." into honeycomb 2011-01-15 10:11:08 -08:00
Romain Guy
1c3b24baf1 Merge "Preapre region tracking in layers" into honeycomb 2011-01-14 20:04:42 -08:00
Mathias Agopian
0d3dcc4aab Merge "partially fix [3306150] HTML5 video with H/W acceleration blackout" into honeycomb 2011-01-14 19:27:38 -08:00
Mathias Agopian
b353fd9746 Merge "Fix error reporting in Surface::cancelBuffer()" into honeycomb 2011-01-14 19:27:32 -08:00
James Dong
e58a41aa4d Merge "Fixed thrashing in the cached buffer during 720p YT video streaming" into honeycomb 2011-01-14 19:19:41 -08:00
Jeff Brown
a2690eca91 Merge "Add support for detecting finger orientation." into honeycomb 2011-01-14 19:18:16 -08:00
Justin Ho
d74787181b Merge "New tray notification icons, new system bar icons" into honeycomb 2011-01-14 19:01:58 -08:00
Romain Guy
bcdc73f5a7 Merge "Don't crash Launcher on config change." into honeycomb 2011-01-14 18:49:55 -08:00
Adam Powell
f4f4f36969 Merge "Fix bug 3337711 - Volume panel layout adjustments" into honeycomb 2011-01-14 18:26:01 -08:00
Mathias Agopian
76cd4ddc6a partially fix [3306150] HTML5 video with H/W acceleration blackout
We used to guarantee that a layer in SurfaceFlinger would never be
destroyed before all references (to its ISurface) on the client
side would be released. At some point, this guarantee got
relaxed to allow to free gralloc resources sooner. This last
change was incorrect, because:
- in implementations with reference-counting the gralloc resources
wouldn't be released anyways, until all the mapping were gone
- in implementations without ref counting, the client side
would most likely crash or do something bad
- it also caused the SharedBufferStack slot to be reallocated
to another surface, which could be problematic if the client
continued to use the surface after the window manager destroyed it.

So, we essentially reinstate the guarantee that layers won't be
destroyed until after all references to their ISurface are
released.

NOTE: This doesn't entirely fix 3306150 because there is another
problem there where the Browser continues to use a surface after it
has been destroyed.

Change-Id: I305c830dd722b30a6d53cbf3a9c714fd3cf7eb06
2011-01-14 18:19:02 -08:00
Jeff Brown
d2690932bd Merge "Make getFallbackAction return false when there is none." into honeycomb 2011-01-14 17:59:56 -08:00
Jeff Brown
9346643577 Make getFallbackAction return false when there is none.
Change-Id: Id17c0f7269e4a228f4e5f11c54614fec508222a2
2011-01-14 17:54:38 -08:00
Jeff Brown
e45ee8cf48 Merge "Disable soft keyboard when keyboard attached." into honeycomb 2011-01-14 17:48:09 -08:00
Jeff Brown
f7bd7c5dc5 Merge "Fix bug with mice that send multiple BTN_MOUSE values." into honeycomb 2011-01-14 17:43:12 -08:00
Xavier Ducrohet
057bba1586 Merge "LayoutLib: update logs to use new data bundle" into honeycomb 2011-01-14 17:30:22 -08:00
Jeff Brown
6e3544e676 Merge "Add volume down as a safe mode key for Stingray." into honeycomb 2011-01-14 17:22:53 -08:00
Guang Zhu
73e6de2885 Merge "when test case times out, stop loading first" into honeycomb 2011-01-14 16:26:30 -08:00
Dianne Hackborn
1c0fcc5a07 Merge "DO NOT MERGE Make the Phone options dialog use current language" into honeycomb 2011-01-14 16:02:22 -08:00
Dianne Hackborn
2b89bd17e4 Merge "DO NOT MERGE Added check to make orientation calculations more robust" into honeycomb 2011-01-14 16:02:07 -08:00
Scott Main
609fffabc7 Merge "fix sdk build breakage; remove invalid @note tag" into honeycomb 2011-01-14 15:42:35 -08:00
Adam Powell
bc81dd8529 Merge "Fix bug 3339039 - Preserve proper behavior for action button text when updated." into honeycomb 2011-01-14 15:40:07 -08:00
Dianne Hackborn
e66414f7df Merge "Don't drop the drawable cache completely on configuration change" into honeycomb 2011-01-14 15:37:28 -08:00
satok
0b9a81ac66 Merge "switchToLastInputMethod returns a implicitly enabled subtype in the history" into honeycomb 2011-01-14 15:35:53 -08:00
Romain Guy
43b7c9aec8 Merge "Don't delete objects twice..." into honeycomb 2011-01-14 15:35:34 -08:00
Romain Guy
ffb17a716e Merge "Copy shaders when recording them in display lists." into honeycomb 2011-01-14 15:29:36 -08:00
Xavier Ducrohet
55c6d4c4c2 Merge "LayoutLib: Misc fixes." into honeycomb 2011-01-14 15:26:30 -08:00
Patrick Dubroy
6ab916c270 Merge "Allow old view hierarchy to be GC'ed more quickly during rotation." into honeycomb 2011-01-14 14:44:20 -08:00
Alex Sakhartchouk
1b093dd19c Merge "Removing things that shouldn't be public" into honeycomb 2011-01-14 14:19:45 -08:00
Eric Fischer
f6afa325e0 Merge "Update large screen translations." into honeycomb 2011-01-14 14:01:03 -08:00
Adam Powell
0735e419a0 Merge "Rework action bar menus." into honeycomb 2011-01-14 13:56:29 -08:00
Marco Nelissen
f269c23919 Merge "Fix issue with notification layouts." into honeycomb 2011-01-14 13:17:56 -08:00
Jeff Brown
bfcf601262 Merge "Use holo style mouse pointer." into honeycomb 2011-01-14 13:03:54 -08:00
Huahui Wu
0a9b75cd97 Merge "b/3348192 re-enable snap scrolling mode." into honeycomb 2011-01-14 13:03:23 -08:00
Brad Fitzpatrick
92165cd763 Merge "Watchdog can get deadlocked on activity manager" into honeycomb 2011-01-14 12:48:08 -08:00
Kenny Root
32c652c6bc Merge "Add the {get,set}PackageObbPaths calls to API" into honeycomb 2011-01-14 12:42:12 -08:00
Christopher Tate
76630daaa1 Merge "Send DRAG_STARTED notices to views that become visible during drag" into honeycomb 2011-01-14 12:36:53 -08:00
Robert Greenwalt
22b075c949 Merge "Update network subtypes info so it is current." into honeycomb 2011-01-14 12:23:45 -08:00
Adam Powell
38a5410f16 Merge "Fix bug 3347747 - Use a better context when fetching resources for action modes" into honeycomb 2011-01-14 12:12:13 -08:00
satok
2903930bcf Merge "Add input methods settings panel" into honeycomb 2011-01-14 12:03:40 -08:00
Romain Guy
d9ee65e634 Merge "Don't add clipped rects to layer regions. Bug #3350208" into honeycomb 2011-01-14 11:25:56 -08:00
Mathias Agopian
a317f1ba7f Fix error reporting in Surface::cancelBuffer()
when we validate the surface there, most errors are in fact allowed
because it is legal to cancel a buffer after a surface has been
destroyed (for instance). in that case make sure to not log
error messages as they are very confusing.

Change-Id: Iecdfbaf6d9ee5da54d56cd7ea7a0d430c30934b0
2011-01-14 11:04:34 -08:00
Mathias Agopian
a49576f06b Merge "fix [3312683] Camera mirroring problem after switching from back to front camera" into honeycomb 2011-01-14 10:54:47 -08:00
Costin Manolache
2894c8db9e Merge "Fix NPE, caller may not pass loginOptions." into honeycomb 2011-01-14 10:52:11 -08:00
Justin Ho
971a5e5e3f Merge "Updated assets from Gingerbread" into honeycomb 2011-01-14 10:48:22 -08:00
Justin Ho
d54113473a Merge "Updated stat_notify icons in new style" into honeycomb 2011-01-14 10:38:04 -08:00
Ben Murdoch
26280d874f Merge "Hook up CacheManager for the Chromium HTTP stack" into honeycomb 2011-01-14 09:40:13 -08:00