Raph Levien
70616ecd22
Start moving text measurement into native code
...
We want to move text measurement into native code, mostly so that
alternate measurement for hyphens can be performant. This patch begins
that migration, in the main StaticLayout case, but still surfaces the
widths array to Java (for ellipsis calculation), and also includes a
hack (used mostly for testing) for computing widths in Java and sending
them down to native code when TextPaint is subclassed.
Change-Id: I476c9e8b3aa8e4e3552eb18f66c4bcd5683f3a72
2015-03-13 10:11:57 -07:00
John Reck
b36016c65f
Cleanups & simplifications
...
Change-Id: I5ad5e3b8fe55b1528f2e20c63e5abe51d9e40ff1
2015-03-11 11:29:13 -07:00
Elliott Hughes
126d89bb79
Merge "resolved conflicts for merge of 7545accf to master"
2015-03-10 17:15:42 +00:00
Elliott Hughes
c0b8f647ca
resolved conflicts for merge of 7545accf to master
...
Change-Id: I7a9264e818fdd14bf59f0dec63ab83985f9e66fb
2015-03-10 10:14:42 -07:00
Chris Craik
ddd72599bf
Merge "Rename and simplify DisplayList Canvas classes"
2015-03-10 16:29:01 +00:00
Chris Craik
c9070ebd13
Rename and simplify DisplayList Canvas classes
...
Change-Id: I49fd2ce02e01401209fe2a378e9f9547c7b27c61
2015-03-09 19:09:55 -07:00
Eino-Ville Talvala
805f3c9428
Add DEPTH image formats, support in ImageReader
...
- Add an explicit mapping between public ImageFormat/
PixelFormat enums and internal HAL format/dataspace.
- Add DEPTH16 and DEPTH_POINT_CLOUD formats
- Wire up mapping layer to ImageReader to support depth
formats
Change-Id: I8197eccef900cc91baddcfcb934ccd4d8c972eff
2015-03-09 16:42:25 -07:00
Elliott Hughes
6291beddfc
am 63d43949: Merge "Use the icu:: namespace for icu4c API."
...
* commit '63d43949047eaed1cddf10bb4f666df6807618ce':
Use the icu:: namespace for icu4c API.
2015-03-09 18:20:42 +00:00
Mathieu Chartier
5e3c29956b
am ea3d53f5: am 773bcfa7: am e59b7ce2: Merge "Add JIT system properties"
...
* commit 'ea3d53f5a8f8e396bf8918041087db4603d444e5':
Add JIT system properties
2015-03-08 00:17:40 +00:00
Elliott Hughes
4c5806b6b4
Use the icu:: namespace for icu4c API.
...
The icu guys recommend working this way, though it's not the default.
Internally Google makes this the default, and I've switched libcore
over.
Bug: 15350832
Change-Id: I038e12bea58dd089a46d0e681b5ab76cfc19d7b9
2015-03-07 11:00:50 -08:00
Chris Craik
2d08eaf034
Merge "Revert "Revert "Remove references to SkPorterDuff as it is deprecated."""
2015-03-06 18:42:30 +00:00
Chris Craik
1526a458a3
Revert "Revert "Remove references to SkPorterDuff as it is deprecated.""
...
Fix build breakage.
This reverts commit 26b4f598c8b1e99b43261614a6861785638c8c00.
Change-Id: If39ce2a41d26a8520091f330234c3d35e413ee92
2015-03-06 18:42:15 +00:00
Chris Craik
fdbf68ff6c
Merge "Revert "Remove references to SkPorterDuff as it is deprecated.""
2015-03-06 18:16:45 +00:00
Chris Craik
26b4f598c8
Revert "Remove references to SkPorterDuff as it is deprecated."
...
bug:19627342
This reverts commit a9aded1f6253afbea7906509992a8a3721f731ab.
Change-Id: Ic865edfbd31c9e24d18a1397a1d346633376e20a
2015-03-06 18:15:39 +00:00
Mathieu Chartier
773bcfa7ec
am e59b7ce2: Merge "Add JIT system properties"
...
* commit 'e59b7ce2564a916240e561b36f4476f2d72a65c5':
Add JIT system properties
2015-03-06 01:36:55 +00:00
Mathieu Chartier
6909c0e1e7
Add JIT system properties
...
Added the following runtime options.
"dalvik.vm.usejit" -> "-Xusejit:"
"dalvik.vm.jitcodecachesize" -> "-Xjitcodecachesize:"
"dalvik.vm.jitthreshold" -> "-Xjitthreshold:"
Bug: 17950037
Change-Id: I4996cdd1e34a1743d83c37069f545e6e09bccdb9
2015-03-05 17:02:54 -08:00
John Reck
f4faeac352
Cleanup Bitmap JNI attempt #2
...
Original version missed a spot
This reverts commit c02977e3bbfaaedcb1b1d67e1692becc7dddd59b.
Change-Id: I56244ce10d709fcdef42a001fe4c6ba7b6bbb04d
2015-03-05 13:56:16 -08:00
Derek Sollenberger
cd4ed96d10
emove uncessary include for SkPorterDuff.h (Part 2)
...
Change-Id: I4d29d65a2e8eaf26b1cde6a525703be248bce63d
2015-03-05 16:27:06 -05:00
Raph Levien
560a433c44
Merge "Add JNI StaticLayout.Builder"
2015-03-05 21:26:32 +00:00
Chad Jones
b9a468eb19
Merge "Revert "Cleanup Bitmap JNI""
2015-03-05 19:35:15 +00:00
Chad Jones
c02977e3bb
Revert "Cleanup Bitmap JNI"
...
This reverts commit b2915245b74b3b5541b123e38403f8e26426b4b7.
Change-Id: Idd7d7f33eec4ea5024c83de6b10d3d1a6ab2b17a
2015-03-05 19:34:26 +00:00
John Reck
35da7d904b
Merge "Cleanup Bitmap JNI"
2015-03-05 18:12:35 +00:00
Raph Levien
4c1f12efcf
Add JNI StaticLayout.Builder
...
This patch adds a native C++ Builder object for StaticLayout to
complement the Java one introduced in a previous patch.
The Builder object contains state used in constructing a layout, as well
as temporary buffers, to avoid having to allocate such. In particular,
it holds a break iterator, so avoids the cost of constructing that in
the common case of a single locale.
Change-Id: I1125103b7ccf00b8674c1586c3ea8d5d915fdd5b
2015-03-05 10:07:33 -08:00
John Reck
b2915245b7
Cleanup Bitmap JNI
...
Fix a bunch of places where mNativeBitmap was being
poked at directly, switch them either to the NDK API
or to GraphicsJNI where it made sense
Change-Id: I6b3df3712d6497cba828c2d3012e725cb4ebb64d
2015-03-05 09:55:02 -08:00
Derek Sollenberger
a9aded1f62
Remove references to SkPorterDuff as it is deprecated.
...
Change-Id: Ic0722cfef4ed61aa546c495924397097a45cfe77
2015-03-05 09:37:34 -05:00
David Stevens
d8812ce390
Add missing paramater to AudioPort jni initialization.
...
Change-Id: Ia50a810ca8ceeece52a712e1daf5ffa616951b02
2015-03-02 21:33:09 -08:00
Jim Miller
ba67aee02c
Add fingerprint settings support to the framework
...
- cleanup thread issue and simplify native FingerprintService methods
- add new permissions and enforce them
- add fingerprint hardware detection API
Change-Id: I87c2243ea2412061f1e85b044138480d0161bcdf
2015-02-27 12:03:32 -08:00
Mark Salyzyn
07a65f444a
am bbef7cf3: am 012c3b72: am a891d08d: Merge "jni: Add paranoia regarding android_logger_list_read"
...
* commit 'bbef7cf3bbf778dd8ae3b91b140bf4542241093b':
jni: Add paranoia regarding android_logger_list_read
2015-02-27 19:10:11 +00:00
Mark Salyzyn
012c3b723a
am a891d08d: Merge "jni: Add paranoia regarding android_logger_list_read"
...
* commit 'a891d08dad829c9aacd29bd2c3b36debe3fc1cc3':
jni: Add paranoia regarding android_logger_list_read
2015-02-27 18:52:36 +00:00
Mike Reed
73f9c7d478
don't reference (deprecated) kIgnore_SkAlphaType
...
Change-Id: I6c09845c48efc66a1057bc8db512b7567ade7e72
2015-02-27 10:52:21 -05:00
Mark Salyzyn
ca50cd2114
jni: Add paranoia regarding android_logger_list_read
...
Change-Id: Ic52be201ec7efaef6a385aaf8ea523554aa06f22
2015-02-26 14:49:17 -08:00
Ruben Brunk
248ed8282b
Merge "camera2: Fix local variable names in rgb->ycbcr conversion."
2015-02-26 21:13:53 +00:00
Chris Craik
b11be294b1
Merge "Glop mesh reorg, support for drawBitmapMesh"
2015-02-26 19:04:42 +00:00
Chris Craik
ef2507439c
Glop mesh reorg, support for drawBitmapMesh
...
Change-Id: Iaf5550bdd93da93e59a5b838234ab5612e067387
2015-02-26 10:56:07 -08:00
Dan Albert
fc6cd75fc0
am 72e7217d: am b7121d70: am b78cce6f: Merge "Update autogenerated gl functions."
...
* commit '72e7217d0bd1035fc0c947da5d1e802624774a80':
Update autogenerated gl functions.
2015-02-25 23:17:44 +00:00
Dan Albert
b7121d7030
am b78cce6f: Merge "Update autogenerated gl functions."
...
* commit 'b78cce6f92e38b57a6a56183cdbafc054c5758fe':
Update autogenerated gl functions.
2015-02-25 23:00:52 +00:00
Dan Albert
b78cce6f92
Merge "Update autogenerated gl functions."
2015-02-25 22:50:25 +00:00
Mark Salyzyn
a49ce66b06
am f7b68049: am 533758c1: am 0d8b97a4: Merge "jni: switch to ANDROID_LOG_* mode flags"
...
* commit 'f7b68049521b5f1c31894f5dad529f719098e987':
jni: switch to ANDROID_LOG_* mode flags
2015-02-25 19:26:57 +00:00
Mark Salyzyn
533758c1fb
am 0d8b97a4: Merge "jni: switch to ANDROID_LOG_* mode flags"
...
* commit '0d8b97a44e4cb5c5cfffd6421eb2cec1ebc00d2f':
jni: switch to ANDROID_LOG_* mode flags
2015-02-25 19:13:12 +00:00
Mark Salyzyn
18998c9852
jni: switch to ANDROID_LOG_* mode flags
...
Change-Id: I8aea5bf4faf79a96fa8485f7707e7484cd11d7a3
2015-02-25 18:07:21 +00:00
Dan Albert
10caf0390d
Update autogenerated gl functions.
...
Corresponding frameworks/native change:
https://android-review.googlesource.com/#/c/134491/
Since this fixes the int-to-pointer cast issues, stop ignoring that
warning.
Change-Id: I85134dc151ba368e4619e36125264b2b3f104202
2015-02-23 10:47:19 -08:00
Chris Craik
e1a0858fb0
Merge "Glop layer mesh rendering"
2015-02-20 19:30:40 +00:00
John Reck
ba6adf66d3
Initial attempt at jank-tracking stat collection
...
Is a bit naive, perhaps overly aggressive, but sorta works
Change-Id: I01a774e00dbe681439c02557d9728ae43c45ce50
2015-02-20 08:27:38 -08:00
Chris Craik
f27133df2d
Glop layer mesh rendering
...
Change-Id: I2d902819d5d77f496b67d4d25a298782903e410d
2015-02-19 18:06:05 -08:00
Sasha Levitskiy
c31dd3bdff
Fingerprint: Adjust to HAL2 spec.
...
Change-Id: Ifc0497079aa059710b3fd4e3b1ad521acf5dcd3c
2015-02-13 15:47:43 -08:00
destradaa
1ea5736339
Merge "Intern strings used in Sensor information."
2015-02-12 20:30:07 +00:00
Eino-Ville Talvala
346066ef90
am f5d30463: am 4fa3a80b: am a5f301c7: Merge "Legacy: Only set user surface dimensions on output surfaces" into lmp-mr1-dev
...
automerge: ad5591f
* commit 'ad5591f819466fc1c87d9ca76be8c06673ccce34':
Legacy: Only set user surface dimensions on output surfaces
2015-02-12 07:52:49 +00:00
Eino-Ville Talvala
ad5591f819
am f5d30463: am 4fa3a80b: am a5f301c7: Merge "Legacy: Only set user surface dimensions on output surfaces" into lmp-mr1-dev
...
* commit 'f5d304636d27ea300c092fac0f0214170a89ba39':
Legacy: Only set user surface dimensions on output surfaces
2015-02-12 05:54:34 +00:00
Eino-Ville Talvala
b0acf7fcfa
Legacy: Only set user surface dimensions on output surfaces
...
The GL layer gets exclusive use of the direct producer dimensions;
we should only set the user dimensions.
Bug: 16404608
Change-Id: Ie5b720104bdbee6b096b62520baa1c6b518c6c1c
2015-02-11 16:58:10 -08:00
destradaa
9ba7c1c175
Intern strings used in Sensor information.
...
By creating a local 'interning map', Sensor information, such as: name, vendor,
stringType, and requirePermissions; 92 string objects are not needed anymore.
This frees ~6KB of memory in all processes accessing SensorManager.
Change-Id: Idfdc98160363bec844c34fc3b71f5e8d7843a7be
2015-02-10 15:07:50 -08:00