2763 Commits

Author SHA1 Message Date
Alex Sakhartchouk
49dc58bf1c Merge "Docs plus removing some junk per API review." into honeycomb 2011-01-13 16:27:23 -08:00
Alex Sakhartchouk
f5c876e82d Docs plus removing some junk per API review.
Change-Id: I45f995b656754550be68c78e467071d6e59b348f
2011-01-13 14:53:43 -08:00
Jamie Gennis
f7acf162f8 Fix remote GraphicBuffer allocation in SurfaceFlinger.
This change fixes a horrible hack that I did to allow application
processes to create GraphicBuffer objects by making a binder call to
SurfaceFlinger.  This change introduces a new binder interface
specifically for doing this, and does it in such a way that
SurfaceFlinger will maintain a reference to the buffers until the app is
done with them.

Change-Id: Icb240397c6c206d7f69124c1497a829f051cb49b
2011-01-13 12:19:04 -08:00
Jamie Gennis
e8d0e8a776 Add logging to SurfaceTextureClient.
Change-Id: I984c3b9c88f8af613a50138188ff1b770e2de6b4
2011-01-13 12:19:03 -08:00
Romain Guy
c15c7a79a6 Merge "Cleanup implementation of hardware layers." into honeycomb 2011-01-13 12:13:59 -08:00
Jamie Gennis
5865c494a5 Merge "Fix a bug in SurfaceTexture::dequeueBuffer." into honeycomb 2011-01-13 12:13:56 -08:00
Romain Guy
ada830f639 Cleanup implementation of hardware layers.
The new implementation relies on OpenGLRenderer's existing layer
code instead of duplicating it. The new code is much cleaner, with
simpler and better APIs and allows tracking of drawn regions inside
layers. Region tracking is not yet enabled but this will be done
in a future CL.

Change-Id: Ie826121a2227de8252c77b992a61218defea5143
2011-01-13 12:13:20 -08:00
Eric Laurent
8eff452421 Merge "Fix issue 3302649." into honeycomb 2011-01-13 11:59:13 -08:00
Jason parks
21f62b9e46 Merge "Add a method enable encryption." into honeycomb 2011-01-13 07:41:53 -08:00
Shih-wei Liao
96100195f0 Fix the build.
Change-Id: I36b523d877c5beadf0fce21b9f7534f0ffc23959
2011-01-13 02:20:51 -08:00
Shih-wei Liao
078717be07 Merge "Disable on-device linking" into honeycomb 2011-01-13 02:06:17 -08:00
Shih-wei Liao
0394d2495a Disable on-device linking
Change-Id: I7c416c7c9714fae0722e61c4f0368fbdb7d808b3
2011-01-13 02:05:34 -08:00
Shih-wei Liao
c758f1c6a3 Merge "Fix the build." into honeycomb 2011-01-13 02:04:10 -08:00
Shih-wei Liao
f6dd9c539c Merge "On-device linking." into honeycomb 2011-01-13 02:04:00 -08:00
Shih-wei Liao
3ae5017b1b Merge "convert2uchar3." into honeycomb 2011-01-13 02:03:51 -08:00
Shih-wei Liao
3a3dd2b37c Fix the build.
Change-Id: I20ac8700bcc8ccb7905f82bbfea81d007f67a68e
2011-01-13 02:03:00 -08:00
Shih-wei Liao
067e7b261a On-device linking.
Change-Id: I609f575f1c2b9e9c3de0d8c16eb06b66b744bcb5
2011-01-12 19:14:27 -08:00
Eric Laurent
41f4d4d847 Fix issue 3302649.
The cause of the problem is that AudioTrack::start() can fail if it is called from a newly created
thread that has the same ID as the AudioTrack callback thread that has just been stopped and not yet exited.
This is possible as the thread ID used by the Thread class is not the TID.

The fix consists in clearing the thread ID before exiting the thread loop.

Change-Id: I8b5f6a63feeaeb9a01267380e85f6f1456e7aa01
2011-01-12 18:28:25 -08:00
Jason Sams
ef56ee316c Merge "WAR driver bug where surfaces of size 0 fail." into honeycomb 2011-01-12 15:28:19 -08:00
Jason Sams
ec30933c1d WAR driver bug where surfaces of size 0 fail.
Change-Id: I72b356c4cfb71f2342479ca21238b763d02e729d
2011-01-12 15:26:25 -08:00
Jason Sams
208a1c68ee Merge "Implement more of copy2DRange*" into honeycomb 2011-01-12 15:22:09 -08:00
Romain Guy
c038ea358a Reenable region composition pipeline for layers
Bug #3341848

It works this time!

Change-Id: I0d371d8b2c75c67d4ce5009ddb990fe5e55a0a27
2011-01-12 15:08:47 -08:00
Romain Guy
b08ea03c1b Merge "Reenable region composition pipeline for layers Bug #3341848" into honeycomb 2011-01-12 15:06:18 -08:00
Jamie Gennis
103198a10c Merge "Implement crop & transform for SurfaceTexture." into honeycomb 2011-01-12 14:57:29 -08:00
Jason Sams
fb9f82ca4f Implement more of copy2DRange*
Change-Id: Id6be481c4abc968df27e5bba1ed044262ec0f293
2011-01-12 14:53:25 -08:00
Romain Guy
1fc883b271 Add logging to the new layers API.
Change-Id: I78b9426eb17de3e775aca9fafe4a50bd9c0785c4
2011-01-12 14:31:55 -08:00
Romain Guy
2e0c52610b Merge "Add logging to the new layers API." into honeycomb 2011-01-12 14:29:15 -08:00
Jason parks
56aa5321fe Add a method enable encryption.
This is for testing and needs to be cleaned up.

Change-Id: I29958f2a95c7773744e61bbd23a302b752614f87
2011-01-12 16:00:23 -06:00
Jason Sams
8f597fdfac Merge "Cleanup bitmap uploads Implement standalone mipmap generation." into honeycomb 2011-01-12 13:30:41 -08:00
Jason Sams
f7086090cf Cleanup bitmap uploads
Implement standalone mipmap generation.

Change-Id: Ie3a9781bbe50e2f58adca6f184d84fea50e40263
2011-01-12 13:28:37 -08:00
Romain Guy
853548287f Merge "Cleanup GL objects on the correct thread." into honeycomb 2011-01-12 12:50:50 -08:00
Romain Guy
57066eb64c Cleanup GL objects on the correct thread.
Change-Id: Iddfea6e08a6591a4fab147151098ef27005f373d
2011-01-12 12:53:32 -08:00
Alex Sakhartchouk
27d116085e Merge "Adding ability to load cubemaps from individual faces." into honeycomb 2011-01-12 11:53:42 -08:00
Jamie Gennis
a7eacc148a Fix a bug in SurfaceTexture::dequeueBuffer.
This change fixes a bug that allowed the most recently queued buffer to
be returned by dequeueBuffer.  At the next updateTexImage call, the
dequeued buffer would be set as the contents of the texture even though
the client could be writing to it.

Change-Id: I53dc14eed13262475627d5551337df57fd78fe00
2011-01-12 11:28:38 -08:00
Jamie Gennis
b598fb9072 Implement crop & transform for SurfaceTexture.
This change adds support for the setCrop and setTransform methods of the
SurfaceTexture C++ class.  The crop and transform for the current
texture will be accessed by applications as a single texture coordinate
transform matrix.

Change-Id: I6482bf96f680e5c175364e848936db3908d6c8f8
2011-01-12 11:28:38 -08:00
Shih-wei Liao
16095fc4c8 convert2uchar3.
Change-Id: I5d5406f14b0c22a7b085495b3bcc51d5a288dcf8
2011-01-12 04:44:09 -08:00
Stephen Hines
78dd1ef3f7 Merge "Clean up RS math headers." into honeycomb 2011-01-11 19:09:47 -08:00
Romain Guy
35f24545e5 Disable the region compositing pipeline for layers.
This composition mode is affecting Gmail in a bad way. Disabling until
I can figure out the problem.

Change-Id: I00e657ea2d05fc7b4a606242d19dc84dd88c1e35
2011-01-11 18:01:25 -08:00
Romain Guy
a9d0711392 Don't break the build!
Change-Id: I42f68c7b023c03adeedc4e979e5f4705188ee9f4
2011-01-11 17:59:10 -08:00
Romain Guy
6c319ca127 Better backend for hardware layers.
With this new backend, a hardware layer is only recreated when
its associated view is udpated. This offers fast composition
in GL and fast update of the layer in GL as well.

Change-Id: I97c43a612f5955c6bf1c192c8ca4af10fdf1d076
2011-01-11 17:53:19 -08:00
Stephen Hines
682c4a860b Clean up RS math headers.
Fix types for ilogb and remquo.

Change-Id: I54f8634b1fe8b6cfb136d3bdf6aab5a5961e6827
2011-01-11 17:00:29 -08:00
Romain Guy
32228288a9 Solve translucency issue when drawing paths.
Change-Id: I68ae0e2ccddaca2f76b5b2dd3e3cf1277fddaad6
2011-01-11 15:02:21 -08:00
Alex Sakhartchouk
dcc231955d Adding ability to load cubemaps from individual faces.
Change-Id: Ic8b6693f625c181e031d4393ba8fac40049da88b
2011-01-11 14:47:44 -08:00
Romain Guy
7230a74e9a Composite layers as regions.
This change detects what area of a layer was drawn into and generates a mesh
to match this area exactly. This can be used to avoid blending empty pixels
when the layer is composited.
This change also adds proper layers support to lines rendering and implements
layers composition in a more readable way.

Change-Id: I4a5588b98b19bd66891ebdc39631b193c5e31999
2011-01-10 22:26:16 -08:00
Romain Guy
a07105b7d2 Better logging of out of memory errors in OpenGLRenderer.
Change-Id: I6b72a084340d8d4b6e0b0a100ed4314d09d441ef
2011-01-10 21:14:18 -08:00
Alex Sakhartchouk
fe852e216f Updating cubemap loading code.
Change-Id: I93bb00e5fd1ccc622d17eba70a510664c2093723
2011-01-10 15:57:57 -08:00
Stephen Hines
d94988bb0c Merge "Split time functions into rs_time.rsh header." into honeycomb 2011-01-10 14:14:35 -08:00
Jamie Gennis
fbab3b67af Merge "Fix a bug in SurfaceTexture::setBufferCount." into honeycomb 2011-01-10 12:30:33 -08:00
Jamie Gennis
ffe3f1cb16 Merge "Add method logging to the SurfaceTexture C++ class." into honeycomb 2011-01-10 12:30:14 -08:00
Jamie Gennis
c936c5cec6 Merge "Initialize the SurfaceTexture buffer slots." into honeycomb 2011-01-10 12:29:51 -08:00