968 Commits

Author SHA1 Message Date
Jamie Gennis
d1661dcc90 Merge "Unhide new SurfaceTexture & TextureView APIs" 2012-04-16 13:21:53 -07:00
Philip Milne
4e1cb3b794 Merge "Fix for bug 6110465." 2012-04-16 10:03:17 -07:00
Jamie Gennis
33efb231cb Unhide new SurfaceTexture & TextureView APIs
This change unhides the new SurfaceTexture and TextureView APIs that were added
to allow transferring ownership of the SurfaceTexture from the UI framework to
the application.

Change-Id: Ic4b781d907a59e99ff1a5974009305c1f9aee36a
2012-04-13 18:33:38 -07:00
Philip Milne
1557fd7809 Fix for bug 6110465.
Add layout bound metadata to 9-patch files and make layouts take them into account.

This CL contains a proposed API for dealing with layout bounds.

This solution exposes:

1. Class: Insets - for storing layout Insets (and later possibly padding).
2. Methods: View:(get/set)LayoutInsets() - for storing layoutBounds.
3. Methods: ViewGroup:(get/set)LayoutMode() - for controlling layoutMode.

It also iuncudes the changes to GridLayout to support layout bounds.

Change-Id: I60c836b6530b61c5abf37f93ee9c44aad73573f1
2012-04-13 16:25:08 -07:00
Jamie Gennis
2b4bfa5efe SurfaceTexture: update API docs
This change updates the SurfaceTexture API docs and modifies the behavior of
the updateTexImage to produce an IllegalStateException when not attached to a
GLES context.

Change-Id: I5a0875927785108960985c567d571d5f7033256a
2012-04-13 16:04:15 -07:00
Fabrice Di Meglio
069c4f3f0c Merge "Improve Paint.setTextLocale()" 2012-04-12 19:07:57 -07:00
Fabrice Di Meglio
029b633038 Improve Paint.setTextLocale()
Change-Id: Iffc9f8816f48dbd431b3b430a7c48f8d646703f3
2012-04-12 18:44:16 -07:00
Eino-Ville Talvala
ae9a5ca01f Merge "Editing fixes to ImageFormat documentation." 2012-04-12 17:48:58 -07:00
Fabrice Di Meglio
62901af52a Merge "Add Paint.setTextLocale()" 2012-04-12 17:37:44 -07:00
Fabrice Di Meglio
517825f1a9 Add Paint.setTextLocale()
- will be used for better shaping CJK and other goodies

Change-Id: If64945a337edd915f5ebb88f04b6fd18e92ca587
2012-04-12 17:31:17 -07:00
Stephen Hines
e267f5f2b0 Merge "Add missing support for Element.FONT()." 2012-04-12 16:45:00 -07:00
Stephen Hines
3a29141321 Add missing support for Element.FONT().
Change-Id: Id66676958cc41d934b7f01acd65916f6d777d355
2012-04-11 18:15:55 -07:00
Alex Sakhartchouk
918e840628 Unhiding J API's for Renderscript.
Change-Id: I8c2d43ccca94549bc6ca1a914106567ccc125503
2012-04-11 14:04:23 -07:00
Eino-Ville Talvala
9184ec307b Editing fixes to ImageFormat documentation.
Change-Id: I74738a65abc3abbb49825b16f4efe3ac2eb6d28e
2012-04-10 15:57:31 -07:00
Jamie Gennis
335a6625b6 Merge changes Iac9cc917,I8eed4b0d
* changes:
  TextureView: add setSurfaceTexture method
  SurfaceTexture: add GL context attach & detach
2012-04-06 09:06:28 -07:00
Romain Guy
17471d730f Fix javadoc
Change-Id: I41315ff2ff1b404de82264e6a56ee46032862a32
2012-04-05 19:04:56 -07:00
Jamie Gennis
c6d9930777 SurfaceTexture: add GL context attach & detach
This change adds Java API support for detaching a SurfaceTexture from one GLES
context and then attaching it to a different one.

Change-Id: I8eed4b0d0e339c11598cb0408d9f4f2d99b3aa06
2012-04-05 16:11:43 -07:00
Amith Yamasani
1da8f00a4c Merge "Embed layout padding in nine patch images" 2012-04-04 13:49:05 -07:00
Amith Yamasani
ec4a50428d Embed layout padding in nine patch images
- Added a new custom PNG chunk that carries the layout padding ints.
- Extract the padding ticks from .9.png images and store in the chunk.
- Load the padding information at runtime into Bitmap and NinePatchDrawable.

- The new chunk is ordered first so that it doesn't cause a problem in older
  versions of the platform.

Bug: 6087201

Change-Id: I5de46167a1d44b3ec21065b0c165e594b1dc8399
2012-04-04 12:05:59 -07:00
Romain Guy
8c8c240092 Merge "Optimize FBOs composition" 2012-04-03 19:33:06 -07:00
Romain Guy
e0aa84b7dc Optimize FBOs composition
Change-Id: Ifc8eada8922509373c0e4c3b2ed75b6f08d098de
2012-04-03 19:30:26 -07:00
Jason Sams
e07694b24f Validate context when using RS objects.
BUG=6035422

Change-Id: I8586be0085b36767289e1f634111c0ff076cec3c
2012-04-03 15:36:36 -07:00
Jason Sams
c5f519c5ec Rename ioReceive and ioSend
First checkin of Allocation IO test

Change-Id: I26379e442796caab95a089dbb42b02192f4cc563
2012-03-29 17:58:15 -07:00
Jason Sams
fb9aa9f3ef Convert from SurfaceTexture to Surface
Change-Id: I2ad4307294d4144999ca0c12ac19849b188243fb
2012-03-28 15:30:07 -07:00
Alex Sakhartchouk
b43a1e5ddf Moving libRS
Change-Id: I1e42204e862585b9c2f7818b615890c60f08faf6
2012-03-28 14:18:15 -07:00
Jason Sams
36c0f64658 Add getSizeBytes and cleanup docs.
Change-Id: I854a41f50378590b58bfbb205906ed4bee440411
2012-03-23 15:48:37 -07:00
Jason Sams
03d2d00dc8 Cleanup Allocation docs and getter funcs.
Change-Id: Ic6fb92e0675d64016f0d471c1d9e5328101e4b36
2012-03-23 13:51:56 -07:00
Jason Sams
cbe55a1c93 Merge "Implement USAGE_IO_INPUT" 2012-03-23 13:29:17 -07:00
Jason Sams
fe1d5ffd1b Implement USAGE_IO_INPUT
Change-Id: Idbf7bb21f5ab673ad77082c5c19921d2b276c04b
2012-03-23 11:47:26 -07:00
Adam Powell
26e35fca60 Fix LayerDrawable#mutate
Change-Id: I985b80141ffc96db969eaf36538df938cb093661
2012-03-21 14:53:39 -07:00
Romain Guy
7b2f8b8fb7 Pre-scale bitmaps on the native heap
Change-Id: I9819b532b89a997ab775b31ffee46445f1d16e20
2012-03-19 18:47:06 -07:00
Romain Guy
caf813fe1e Remove unused private API
Change-Id: Iec9c2bc275fc7376f4e0b0b9c44059c56a9dd173
2012-03-15 18:57:48 -07:00
Chet Haase
a1cff5043d Handle view properties at the native level
Basic functionality of handling View properties (transforms,
left/right/top/bottom, and alpha) at the native DisplayList level.
This logic is disabled for now (via compile-time flags in View.java and
DisplayListRenderer.h) as we continue work on it (there is no advantage
to the new approach until we optimize invalidation and rendering paths
to use the new code path).

Change-Id: I370c8d21fbd291be415f55515ab8dced6f6d51a3
2012-03-12 15:41:48 -07:00
Romain Guy
4692669899 Don't allocate new typefaces when not needed.
The Typeface.create(Typeface, int) API can be used to create a new
typeface derived from an existing typeface. The implementation would
however create a new Typeface instance on every call, creating
unnecessary garbage in text-heavy applications. This changelist
adds a small cache of derived typefaces to avoid allocations whenever
possible.

Change-Id: Ib7290b3183e372aae12cf66033690e15cd4d0691
2012-03-12 14:54:01 -07:00
Fabrice Di Meglio
73ba0df14f Merge "Make Drawable RTL APIs public" 2012-03-09 17:02:56 -08:00
Fabrice Di Meglio
06e1ec6462 Make Drawable RTL APIs public
- also optimize imports

Change-Id: I2649a539a5784293d09179981a5d57e900219246
2012-03-09 16:37:45 -08:00
Amith Yamasani
3b577ddb1b Fix a typo in RectF.equals
Change-Id: Idffbf9a324b68f38843049956d1d05d4a64d1345
2012-03-09 11:53:31 -08:00
Robert Ly
861d5ecc7c am b962b98b: am 67a15457: am e5e11fd6: Merge "docs: fixing bug 5942573" into ics-mr1
* commit 'b962b98bef33eba634aec41cf9d84527ce9db3bb':
  docs: fixing bug 5942573
2012-03-02 09:11:54 -08:00
Robert Ly
67a15457d1 am e5e11fd6: Merge "docs: fixing bug 5942573" into ics-mr1
* commit 'e5e11fd666d242b099466017c6d9bd23e6d2896d':
  docs: fixing bug 5942573
2012-03-02 09:06:44 -08:00
Robert Ly
e5e11fd666 Merge "docs: fixing bug 5942573" into ics-mr1 2012-03-02 09:04:16 -08:00
Robert Ly
dea05e9010 am ca7d7541: am d70eaff4: am 941ff38d: Merge "fix bug 5942522" into ics-mr1
* commit 'ca7d7541c4cad188eb643113e3c3e91e63d21a5e':
  fix bug 5942522
2012-03-01 16:47:04 -08:00
Robert Ly
d70eaff41c am 941ff38d: Merge "fix bug 5942522" into ics-mr1
* commit '941ff38d05f1d870df224ac329d16ab2207b94a1':
  fix bug 5942522
2012-03-01 14:10:46 -08:00
Mathias Agopian
8335f1cccc fix libgui header location
Change-Id: Iec71706cdd4f29c6904993648ce873e83ef9cafe
2012-02-27 13:03:08 -08:00
Jason Sams
b73644a94f Merge "Make compute work without an app context." 2012-02-24 17:52:59 -08:00
Jason Sams
1a4e1f3efd Make compute work without an app context.
Change-Id: I644b4711135d6f5d9866b6c2e5e6f6a5ceb1f3d4
2012-02-24 17:51:24 -08:00
Jason Sams
93d083b6ad Merge "Do RS caching the same way HardwareRenderer does. Eliminates the need for an application context for caching." 2012-02-24 17:21:32 -08:00
Jason Sams
a6f338ca5f Do RS caching the same way HardwareRenderer does.
Eliminates the need for an application context for caching.

Change-Id: I4374738083b5eb4ce983d2cb5409428e3668c423
2012-02-24 16:22:16 -08:00
Mathias Agopian
e9d4c71f47 deprecate L_8, LA_88 and RGB_332 in sdk
re-add support for pixelformats L_8, LA_88 and RGB_332 in libui
for backward compatibility.

This may or may not fix 6058926

Bug: 6049685
Change-Id: Ic1b8b4cc994522f7fe664da64c0ef76b98bc6d53
2012-02-24 14:58:36 -08:00
Jason Sams
a23c4ebe04 Merge "start new headers" 2012-02-23 14:19:43 -08:00
Romain Guy
cfef12374c Perform early intersect to avoid unnecessary draws
Change-Id: I48d61c4488e622f93733d8e53a50c93e6a20166d
2012-02-23 13:50:37 -08:00