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
Robert Ly
f11ffc1178
docs: fixing bug 5942573
...
Change-Id: I2479dc8916f98a8bf7dbec95dc29cbd871c51be5
2012-02-22 16:35:42 -08:00
Robert Ly
9366ce81db
fix bug 5942522
...
Change-Id: Ice16e63b42d5e8c89994d0844f62adaefc8a92a1
2012-02-22 16:28:13 -08:00
Jason Sams
f70b0fc880
start new headers
...
Change-Id: I950e5db76ecd3afbc7ea2b3ec792e4cb242f57bf
cpp
2012-02-22 15:22:41 -08:00
Mathias Agopian
83c64e6b62
frameworks/base refactoring
...
create the new libandroidfw from parts of libui and libutils
Change-Id: I1584995616fff5d527a2aba63921b682a6194d58
2012-02-20 22:38:43 -08:00
Mathias Agopian
b13b9bdad2
frameworks/base refactoring.
...
step 2: move libutils headers to their new home: androidfw
Change-Id: I14624ba23db92a81f2cb929f104386e1fab293ef
2012-02-17 19:01:26 -08:00
Jason Sams
e158f203d2
Merge "Rename three header files to free namespace for api."
2012-02-17 12:04:20 -08:00
Jason Sams
1d6983af33
Rename three header files to free namespace for api.
...
Change-Id: Ie9ef65a477373c30b2d5b02248f62e768b6f27ae
2012-02-16 17:14:06 -08:00
Alex Sakhartchouk
791c0d188a
Merge "Piping texture names through shader builder. Fixing uint size_t mismatch."
2012-02-16 09:28:21 -08:00
Stephen Hines
3beb60e67a
Vectors of non-primitive types are not allowed.
...
BUG=6016669
Change-Id: Ibab2dfc5ce3d9ceb5513e6b5ffc53d5df8b7c6e7
2012-02-15 19:07:43 -08:00
Alex Sakhartchouk
2123b46ba8
Piping texture names through shader builder.
...
Fixing uint size_t mismatch.
Change-Id: Ia7c8bd9f829deaa50e1cc381ccd50f29676bbdfb
2012-02-15 16:21:46 -08:00
Stephen Hines
f6fb3ab8c0
Merge "Update Element.isCompatible() to work with NONE."
2012-02-15 15:21:01 -08:00
Jason Sams
c107b10354
Merge "Beging IO stream out from allocation to surface texture."
2012-02-15 12:05:26 -08:00
Jason Sams
163766cbe7
Beging IO stream out from allocation to surface texture.
...
Change-Id: I4d6b7f7740a896d39b811d6fe7532bb00db62373
2012-02-15 12:04:24 -08:00
Stephen Hines
2094811371
Update Element.isCompatible() to work with NONE.
...
In the past, we used a null reference to signify a user-created Element. The
use of DataType.NONE for user-created Elements thus required an update to our
Element compatibility check.
Change-Id: I3293a645eff85c9040487c22f3a3240862f74350
2012-02-14 19:42:42 -08:00
Romain Guy
79952ee29a
Merge "Clarify documentation of Bitmap.createScaledBitmap/createBitmap Bug #6015472 "
2012-02-14 16:55:55 -08:00
Romain Guy
f12f6f058f
Clarify documentation of Bitmap.createScaledBitmap/createBitmap
...
Bug #6015472
Change-Id: I6cf9efc2f695928d54a0dfba08b085559574ae14
2012-02-14 16:25:16 -08:00
Stephen Hines
0599d6ede3
Merge "Fix typos/spacing with new APIs."
2012-02-14 13:38:43 -08:00
Stephen Hines
9069ee88cb
Fix typos/spacing with new APIs.
...
Change-Id: I26b772e8e29b12381042fb50c6dfa9df012b3f63
2012-02-13 18:25:54 -08:00
Jason Sams
cb66aec0bd
Merge "Start implementing SurfaceTexture streaming into RS allocations."
2012-02-10 13:51:04 -08:00
Jason Sams
532efd3ce2
Start implementing SurfaceTexture streaming into RS allocations.
...
Change-Id: I561fbb63c63371ea59047c07fb2d68c21d16e76b
Conflicts:
libs/rs/rsAllocation.h
2012-02-10 13:24:18 -08:00
Justin Ho
cc3669ab9c
am fe07b9a2: Merge "Tentative fix for mysteriously recycled bitmap"
...
* commit 'fe07b9a2ab54305de553332d0ab278fdf7158ae4':
Tentative fix for mysteriously recycled bitmap
2012-02-08 13:00:39 -08:00
Romain Guy
4e525a6e5a
Tentative fix for mysteriously recycled bitmap
...
This code should not be triggered with scale == 1.0f because of the
density comparisons above though.
Change-Id: I9e39e3769a3b6550c97df3b213457947ec1f554b
2012-02-08 11:19:11 -08:00
Jason Sams
eb5b73504d
Merge commit 'bdeec118' into manualmerge
...
Conflicts:
libs/rs/rsThreadIO.h
Change-Id: I7f448996a86f41188b47ec3dc353c364692e8bf2
2012-02-07 16:40:51 -08:00
Jason Sams
4c2e4c80ce
Implement RS VSync on new vsync infrastructure.
...
Change-Id: I662159a086a56e28732dd64a3a3cb30f8d4b72b1
Replace lockless fifo from server to client with sockets.
Change-Id: I99a4ab4f18496c0fbac96ee7b8099797af4712ea
2012-02-07 15:32:08 -08:00
Stephen Hines
0b1ad704f4
am e05bc81c: Merge "We should not throw for non-fatal errors."
...
* commit 'e05bc81c19838801b91de2642dc275a16dd7cf71':
We should not throw for non-fatal errors.
2012-02-03 15:37:52 -08:00
Stephen Hines
be74bdd234
We should not throw for non-fatal errors.
...
BUG=5955072
Change-Id: I731242805957a057aaff1ba96a58c69d6e474a59
2012-02-03 15:29:36 -08:00
Stephen Hines
0a29fe1be1
am cc2daede: Merge "Properly recover from failed compilation."
...
* commit 'cc2daede56257f0f1f490a1aebf5b9b898d9816a':
Properly recover from failed compilation.
2012-02-02 21:28:17 -08:00
Stephen Hines
cc2daede56
Merge "Properly recover from failed compilation."
2012-02-02 21:25:19 -08:00
Alex Sakhartchouk
98bea4a3ec
am 7042613c: Merge "Fix an incorrect assert that doesn\'t account for element array size."
...
* commit '7042613c653fd0de253f2f659901318902fa4584':
Fix an incorrect assert that doesn't account for element array size.
2012-02-02 14:56:34 -08:00
Stephen Hines
862dadb7a7
Properly recover from failed compilation.
...
BUG=5955072
We used to call delete, which did not update the Context's view of the world,
leading to potential segfaults on Context teardown. This change also enables
exceptions to be thrown when runtime errors are encountered.
Change-Id: If63578efff2d7dd03639da1049c1a5ebc69fde35
2012-02-02 13:23:20 -08:00
Alex Sakhartchouk
bf3c3f2ab1
Fix an incorrect assert that doesn't account for element array size.
...
Change-Id: Ibcb5c55d91967603391a1721137d010a85025990
2012-02-02 09:47:26 -08:00
Romain Guy
6019853bc7
am a403a2e0: Merge "Add GradientDrawable.setColors(int[])"
...
* commit 'a403a2e0f0d55a709821a6310de849176dc9b426':
Add GradientDrawable.setColors(int[])
2012-01-31 12:59:28 -08:00