2773 Commits

Author SHA1 Message Date
Jason Sams
e56d643e47 Fix bug 3421901
remove 2 functions from public headers in the SDK.

Change-Id: Ib44e7a4c12f19c87c39095028c020548f89143ec
2011-02-03 16:30:23 -08:00
Jason Sams
5f1d68dcd2 cleanup headers for SDK.
bug 3421901

Change-Id: Ia7018af4e27cd52818a8891b37d09e96639bba15
2011-02-03 16:29:08 -08:00
Romain Guy
5bfd1afffe Merge "Allocate layers from the layers pool. Bug #3413433" into honeycomb 2011-02-02 21:05:35 -08:00
Romain Guy
09b7c91de7 Allocate layers from the layers pool.
Bug #3413433

This change will be beneficial to Launcher to avoid hiccups when
swiping pages of icons. When a layer is discarded, it is kept
in the layers pool instead of being destroyed right away. This
favors memory reuse over allocations.

Change-Id: Ifb6944ba83d6ceb67c331527c0827b26ce648eb1
2011-02-02 20:28:09 -08:00
Romain Guy
f44ed5adc4 Merge "Don't clobber the local dirty rect after rendering a layer. Bug #3417254 Bug #3413433" into honeycomb 2011-02-02 16:44:07 -08:00
Jamie Gennis
ecb4b3f023 Merge "Pass the IGraphicBufferAlloc to SurfaceTextureClient." into honeycomb 2011-02-02 15:53:33 -08:00
Romain Guy
62687ec12c Don't clobber the local dirty rect after rendering a layer.
Bug #3417254
Bug #3413433

Change-Id: I8045e9ec414ebe4ce4d38124142a00726d2c634d
2011-02-02 15:44:19 -08:00
Jamie Gennis
83bac216a7 Pass the IGraphicBufferAlloc to SurfaceTextureClient.
This change passes a reference to the IGraphicBufferAlloc binder object
to SurfaceTextureClient objects.  When STC objects are created they
query their associated ISurfaceTexture object for the
IGraphicBufferAlloc that the SurfaceTexture uses to allocate buffers.
Having the SurfaceTextureClient hold this reference prevents the
GraphicBufferAlloc in SurfaceFlinger from freeing the allocated buffers
before the SurfaceTextureClient is done with them.

Change-Id: Ib8e30e8b37fdd60438cbb4cb7e9174d0ba6d661c
related-bug: 3362519
2011-02-02 15:31:47 -08:00
Romain Guy
beff8d83ef Fix incorrect dirty rectangle transformation in hardware layers.
Bug #3413433

Change-Id: Iba201c7c4b4f11937797f3afcbf20c5a7395be25
2011-02-01 23:53:34 -08:00
Romain Guy
3a3133d876 Update layers based on the dirty region.
Bug #3413433

This helps Launcher when a widget updates during a scroll, or when interacting
with widgets on the workspace if layers are still turned on.

Change-Id: Ic7a42eb34f74f4ae988039754f815e2efd1d1e4f
2011-02-01 23:01:43 -08:00
Jamie Gennis
6288450562 Merge "Reset ANativeWindow crop on buffer geometry changes." into honeycomb 2011-01-30 15:00:44 -08:00
The Android Open Source Project
b2abd8c424 Mass merge from gingerbread - do not merge
Change-Id: I45dc3596bf4211d8f91c64f2d1d00588878df629
2011-01-30 12:40:38 -08:00
Jamie Gennis
2ece4cdc3f Reset ANativeWindow crop on buffer geometry changes.
This changes the ANativeWindow API and the two implementations to reset
the window's crop rectangle to be uncropped when the window's buffer
geometry is changed.

Bug: 3359604
Change-Id: I64283dc8382ae687787ec0bebe6a5d5b4a0dcd6b
2011-01-28 18:21:54 -08:00
Jason Sams
62f258f1e4 Clean up RS samples for SDK, bug 2943369
Fix bug 3403965 rsgSyncAll would not mark constants as changed
found by inspection.

Only rsAllocation.cpp affects on device bits.

Change-Id: I6b7ec0df87e42687b24384aaf54dc04976cb84f7

doc update

Change-Id: Id5841f08868557e086f185024470924ef202d19f
2011-01-28 16:18:01 -08:00
Jason Sams
35e7026357 DO NOT MERGE
Bug 2943369 RS SDK
Remove typedef for quat type which was pushed back to mr1.

Change-Id: Ice2ad6c766ee786105a8d70fc9457a98e19b5af3
2011-01-28 16:18:00 -08:00
Jamie Gennis
2a8f8d57d2 Merge "Quiet the SurfaceFlingerClient dequeueBuffer error." into honeycomb 2011-01-28 14:12:57 -08:00
Jamie Gennis
6913062faa Quiet the SurfaceFlingerClient dequeueBuffer error.
This is a temporary WAR for the case where dequeueBuffer is called when
all the buffers owned by a SurfaceTexture are not available - either
they're the current texture buffer or the next one.  Currently, an error
is returned in that case, and this change just prevents that error from
being logged.  In the future this will be fixed to not return an error
in that case.

Bug: 3356050
Change-Id: Ic6cc304881a63ce134cfd0bcb4265e3e3fa94b6a
2011-01-28 12:08:18 -08:00
Dianne Hackborn
256a09b2fa Merge "Fix issue #3392073: At times soft keyboard comes up in..." into honeycomb 2011-01-27 22:48:58 -08:00
Romain Guy
d0b54a7394 Merge "Add more debug info for profiling." into honeycomb 2011-01-27 22:30:57 -08:00
Dianne Hackborn
e75d87266b Fix issue #3392073: At times soft keyboard comes up in...
...gallery while attaching picture to gmail message

In various places we could block switching the IME target incorrectly.

Change-Id: I7e647fb35f4ea6f2e39eb7efd911420ea9ee64fa
2011-01-27 21:56:33 -08:00
Jason Sams
386ef6da5a Merge "Fix another barrier bug 3333866 Atomically update put." into honeycomb 2011-01-27 21:24:00 -08:00
Jason Sams
38f8d9d7a1 Correctly free resouces bound to scripts when the scripts are deleted.
Change-Id: Idfcc30f1a7de0badeb6d8254ed508938d89f4070
b: 3381615
2011-01-27 19:36:54 -08:00
Romain Guy
885153e2d0 Add more debug info for profiling.
Change-Id: I0c74e2aa108142cc6ddac4577ae2d0fe6c0ddb25
2011-01-27 18:34:41 -08:00
Jason Sams
5012a8fe42 Fix another barrier bug 3333866
Atomically update put.

Change-Id: Id6d4b5c03f5562b3021561e95966a01abd293667
2011-01-27 18:08:40 -08:00
Mathias Agopian
50f7830c55 am 72abf01a: Merge "Fix the ISurfaceComposer onTransact switch." into gingerbread
* commit '72abf01a8b6958ac1f86d36302a8462c4f51fd9d':
  Fix the ISurfaceComposer onTransact switch.
2011-01-27 11:24:33 -08:00
Chet Haase
a45c056e62 Merge "Fix display List bugs" into honeycomb 2011-01-26 23:49:23 -08:00
Chet Haase
678e0adbdb Fix display List bugs
Various property setters in View need to invalidate the parent's
cache to get redrawn properly when accelerated with display lists.

Also, fix logic around display lists and old-style Animations in
ViewGroup.

Change-Id: I70e1c2fa49e62228ee4a1301a006ce50bda4c305
2011-01-26 22:44:52 -08:00
Romain Guy
4f09f5417b Don't draw the same triangles several times.
Bug #3388197

Change-Id: Ief1dfd9447f144e9992340a173d2893e5e049129
2011-01-26 22:45:16 -08:00
Shih-wei Liao
26e5ff8a67 For rs_cl, fix _RS_STATIC (used while we do on-host linking). Now we do
on-device linking, STATIC no longer makes sense. (b/2943524)

Change-Id: Ia35f90eb0956b1cd6c436a1482d87d82f41cedc9
2011-01-26 17:04:31 -08:00
Shih-wei Liao
79204b98d2 Merge "Part II of fixing b/2943524: On-device linking rs_core." into honeycomb 2011-01-26 14:56:41 -08:00
Shih-wei Liao
f5a16efcc3 Part II of fixing b/2943524: On-device linking rs_core.
Change-Id: I1db1f8a2c9e8afabd9961c0effca60b10c9ed4dc
2011-01-26 14:47:17 -08:00
Stephen Hines
8fc7690f2b Merge "Hook up tgammaf properly for RS." into honeycomb 2011-01-26 14:08:49 -08:00
Romain Guy
940df6dd83 Merge "Remove unused API" into honeycomb 2011-01-26 13:41:10 -08:00
Romain Guy
2b1847ea60 Remove unused API
Change-Id: I1714fd82a64b752f0350ef4ef9179ce19e089c6a
2011-01-26 13:43:01 -08:00
Stephen Hines
d6a5b40cc7 Hook up tgammaf properly for RS.
Change-Id: I9b489cbfe49b3c01028f23c1123bc272e100c60e
b: 3370708, 2933146
2011-01-26 12:31:36 -08:00
Jason Sams
e0fc4b70f8 Merge "DO NOT MERGE Remove the rs_quaternion functions until mr1" into honeycomb 2011-01-26 11:54:38 -08:00
Jason Sams
e361ca6428 Merge "Migrating functions for on device linking." into honeycomb 2011-01-26 11:54:33 -08:00
Jason Sams
ca11318ac0 DO NOT MERGE
Remove the rs_quaternion functions until mr1

Change-Id: I1c48624a308ce6f5c4a13215170f34c810b4cf00
2011-01-26 11:16:23 -08:00
Shih-wei Liao
2fd2c894e9 Fix b/2943524: On-device linking the rs_cl.
Change-Id: I1b1e76ec94a26e0bc86d997d2584c8a015c57de1
2011-01-26 04:03:30 -08:00
Romain Guy
f90f8171e6 Make sure the opaque bitmap is opaque. GL doesn't like being lied to.
Bug #3382992

The result still looks wrong but it works as designed, unfortunately.

Change-Id: I6108e199fa336cb01faaabf6c75faa3b71c2339b
2011-01-25 22:53:24 -08:00
Jason Sams
1afbf54dd1 Migrating functions for on device linking.
Change-Id: I41dc1551ada53370f2b06c49cc76089b1e72ac5b
2011-01-25 21:33:44 -08:00
Romain Guy
2bd78c9a9b Merge "Remove debugging log left by mistake." into honeycomb 2011-01-25 11:01:55 -08:00
Romain Guy
8d2959ddff Remove debugging log left by mistake.
Change-Id: I7d5165b4b682714940cea9886abeedd3f4858057
2011-01-25 11:03:00 -08:00
Jason Sams
03855bbe4a Fix bug 3385881
Launch signals and threads are not always
matched in index.  Threads grab launch indexes
as they start which may not be the order in which
they were launched.

Change-Id: I1ff42c3df5d7ebb46de6329ebd11ef67a5fc58ca
2011-01-25 00:34:34 -08:00
Jason Sams
887a834c47 Merge "Attempt to fix 3333866 Missing memory barrier when the non-locking past path is hit." into honeycomb 2011-01-25 00:23:41 -08:00
Romain Guy
82d41a5153 Fix display list support for shapes.
Change-Id: I8b4c9e9ec36266a83c0a53ba3fb6e45d61bbd6d9
2011-01-24 21:53:42 -08:00
Romain Guy
8168396d1a Fix rendering issues with animated layers.
Bug #3385247

- The layer's alpha was interpreted in the wrong range 0..255 instead of 0..1
- 9-patches would not correctly dirty the layer region, the generated mesh
  was incorrect

Change-Id: I4916249bedcdb0794929f3796bd17854971efc88
2011-01-24 20:40:18 -08:00
Romain Guy
2ff6d70521 Merge "Enable partial invalidates when rendering with OpenGL." into honeycomb 2011-01-24 18:38:00 -08:00
Romain Guy
7d7b5490a0 Enable partial invalidates when rendering with OpenGL.
Change-Id: Ie8be06c4776b815e8737753eb8003b4fd8936130
2011-01-24 18:39:56 -08:00
Jason Sams
fcecc244a7 Attempt to fix 3333866
Missing memory barrier when the non-locking past
path is hit.

Change-Id: I80db7df547c1ce35ed85ba117519b12679cc42ef
2011-01-24 17:33:21 -08:00