676 Commits

Author SHA1 Message Date
Brian Muramatsu
8a9f9d880d Fix Paint#breakText(char[]..) JavaDoc
The JavaDoc says that if the "...count is negative then the
characters before index are measured in reverse order. This
allows for measuring the end of string."

However, the native code doesn't work its way backwards
from the given index when the count is negative. It always
passes Skia the substring starting from index and the
absolute value of count.

Its better to fix the JavaDoc rather than the behavior, since
this API is public and has been this way for some time. It
is also used by TextUtils.ellipsize indirectly, so its best
to avoid breaking that sensitive code.

Change-Id: I8bd51def6ec98251e355370710eb44f58fb737c4
2011-02-16 14:58:45 -08:00
Romain Guy
676b17391f Deprecate ARGB_4444.
It looks awful.
Don't use it.
Use ARGB_8888, it's much better.
If you think you need ARGB_4444, you are wrong.
You are.

Change-Id: I4d6963cf98b6a8fb34cebcd0d24b9fd66b5a0fbf
2011-02-14 14:45:33 -08:00
Robert Ly
272fc4547b am affeaaed: am bbdc4ce2: Merge "clean up and add javadocs" into honeycomb
* commit 'affeaaed8ef0776455fbecbf70627df3dd842030':
  clean up and add javadocs
2011-02-10 15:46:06 -08:00
Robert Ly
11518acc8c clean up and add javadocs
Change-Id: I7f628106247de887cd91c4a4b4b55d3ebfa700c8
2011-02-09 16:24:12 -08:00
Romain Guy
366a84056c Expose several useful Bitmap APIs.
Bug #3408073

Bitmap.setHasAlpha() in particular is very useful for applications that use
ARGB_8888 bitmaps but want/need to benefit from an extra speed boost.

Change-Id: I73d081b7e43bd725baffd1a9892c72d8729816f7
2011-02-08 11:58:06 -08:00
Keiji Ariyama
7fb597df52 Fixing the wrong link in YuvImage JavaDoc.
Change-Id: Ie6334e16424e59b75274ef265f10d26ba484316a
2011-02-05 04:03:10 +09:00
Romain Guy
2fc941e465 Fixes cache misses and extra allocations.
Bug #3421454

Change-Id: If4d5c960a7e4c581a9d213073e658284b4e1c497
2011-02-03 16:20:08 -08:00
Romain Guy
feeea8f07c Assume ARGB_8888 for unknown configs.
Bug #3327175

Change-Id: If712a255ec65014cd2e007de1e4c6a1d67c19250
2011-02-01 11:22:46 -08:00
Romain Guy
f6a362a5f6 Don't convert 4444 images to 565.
Bug #3327175

Change-Id: I46d970e41947278f4c2476b347fd2403fe9a05e8
2011-01-31 22:05:58 -08:00
Jamie Gennis
5f8b6653e0 Add SurfaceTexture docs for getTransformMatrix.
Change-Id: Ib08d00525c7932b23ba5066c07c7470f813b74f8
2011-01-31 12:31:53 -08:00
Gilles Debunne
e1df07fc5a Merge "Fix for an IOOBoundsException in Paint." into honeycomb 2011-01-28 10:58:53 -08:00
Jamie Gennis
3c0f91b0e1 Merge "Add docs about threading to SurfaceTexture." into honeycomb 2011-01-28 10:42:53 -08:00
Gilles Debunne
1feba8bb02 Fix for an IOOBoundsException in Paint.
Bug 3331706

The temporary buffer starts at index 0 and shifts indexes by contextStart.
offset has to be changed accordingly.

Note that I didn't try to reproduce the monkey bug after this fix, but it
seems like a perfect explanation for the exception.

Change-Id: Ie69adc413670caed283bc46effc69f17a102922c
2011-01-27 18:39:42 -08:00
Jamie Gennis
37cec0fc50 Add docs about threading to SurfaceTexture.
This is a docs-only change.

Bug: 3362397
Change-Id: I5fad19a8ae112af73b1e235cf3d54bd2179d165a
2011-01-27 17:57:13 -08:00
Scott Main
f4f05b8f24 Update package descriptions with editorial revisions.
Notably, this removes exessive info about resources
from the content package, because it's not a good location
and the info is avilable in the dev guide, but also
added some of the info to the Resources class description.

Change-Id: Ie78af26c9cec66314deb98e53078f48e16c08e70
2011-01-26 14:58:19 -08:00
Romain Guy
2b1847ea60 Remove unused API
Change-Id: I1714fd82a64b752f0350ef4ef9179ce19e089c6a
2011-01-26 13:43:01 -08:00
Romain Guy
a566b7c3aa Fix bitmap meshes to work in display lists.
Change-Id: Ie226d049840942d9ad9cf58e0c19132f49d62a75
2011-01-23 16:36:11 -08:00
Jason Sams
8418474dab Merge "fix bug 3375251 Copying arrays of objects would generate an exception due to excessive internal type checking." into honeycomb 2011-01-21 14:28:55 -08:00
Jason Sams
ed5bab93c6 fix bug 3375251
Copying arrays of objects would generate an exception
due to excessive internal type checking.

Change-Id: Ic89c24962408f1a95dc0385b74618a70d6ff5859
2011-01-21 13:08:02 -08:00
Patrick Dubroy
a383b3f646 Update Bitmap.recycle() doc for heap-allocated pixel data 2011-01-21 12:08:51 -08:00
Romain Guy
99d49118b8 Merge "Add support for drawBitmapMesh()." into honeycomb 2011-01-20 19:07:28 -08:00
Romain Guy
5a7b466a2b Add support for drawBitmapMesh().
Change-Id: Ic77f9c534bb90dc7b9458299544bd50b8b6ae6a5
2011-01-20 19:09:30 -08:00
Stephen Hines
e9f5c1894b Properly use Long2 for "UInt2" for FieldPacker.
We were misusing this API, since it requires the additional precision of
the next size up on unsigned versions of types.

Change-Id: Ic3c87f681ac6705ae0b36a3464ce0d63737945fd
2011-01-20 18:17:25 -08:00
Jason Sams
1368436e42 Merge "Check and propogate errors from llvm." into honeycomb 2011-01-19 16:49:17 -08:00
Jason Sams
9dd9d02189 Merge "Expose unchecked copyFrom variants." into honeycomb 2011-01-19 16:27:06 -08:00
Jason Sams
fdc54a97ee Check and propogate errors from llvm.
Change-Id: Id99a724f746d1f64eabcdf67c12646cc32ff8f9d
2011-01-19 16:14:21 -08:00
Jason Sams
4fa3eed8e0 Expose unchecked copyFrom variants.
Change-Id: I452d082bb4adbd578b6300bf5829dc59e91e517a
2011-01-19 15:44:38 -08:00
Joe Onorato
120856c50a Pass SkRegion::toString() through to java.
Change-Id: I3814b491c689313c1f8da811a104d913175f6268
2011-01-19 15:29:31 -08:00
Jason Sams
d1ac981497 Fix race condition between GC thread and
the teardown of RS.  The RS context was going away while
the objects were being deleted within the finializer.

Add more debugging for playCoreCommands.

Change-Id: I391f0b4db948f43f54017b47b062ab47d6a1ef64
2011-01-18 18:12:26 -08:00
Jason Sams
991040c826 Cleanup logs.
Change-Id: I206d45863752adbc71fc91cd14e7cd3a555c8c53
2011-01-18 12:42:32 -08:00
Owen Lin
4b26247e8b Merge "Change to stream decoding mode if the file descriptor cannot support seek." into honeycomb 2011-01-18 04:13:13 -08:00
Owen Lin
a9d0d47076 Change to stream decoding mode if the file descriptor cannot support seek.
bug: 3298498
Change-Id: Id7ae46bf8e885a417753edbd6648332052fee469
2011-01-18 18:25:32 +08:00
Alex Sakhartchouk
44593df6fa Merge "More docs" into honeycomb 2011-01-17 16:10:10 -08:00
Jason Sams
3240339cfe Merge "Add error checks to the copyFrom functions." into honeycomb 2011-01-17 15:48:00 -08:00
Alex Sakhartchouk
ec0d3353b1 More docs
Change-Id: I3dfea7d83bf8525efda59cef6fafa854b5aa9fe3
2011-01-17 15:23:22 -08:00
Romain Guy
1689c3459b Merge "Add BitmapFactory.Options.inMutable to load mutable bitmaps." into honeycomb 2011-01-17 13:03:16 -08:00
Romain Guy
2361098da3 Add BitmapFactory.Options.inMutable to load mutable bitmaps.
Change-Id: Iaa222127520f3aa55072d44af12ee3477908b876
2011-01-17 13:04:12 -08:00
Jamie Gennis
cf18c4788a Merge "Implement SurfaceTexture frame-available callback." into honeycomb 2011-01-16 18:15:36 -08:00
Jamie Gennis
376590d668 Implement SurfaceTexture frame-available callback.
This change implements the onFrameAvailable callback for the
SurfaceTexture java class.  It includes the C++ SurfaceTexture code as
well as the JNI and Java code to enable the callback.

Change-Id: Ifd8b8e7ad46ee70cba6da1c2e96dab8045d1ea30
2011-01-16 17:28:39 -08:00
Jason Sams
b97b251c26 Add error checks to the copyFrom functions.
Change-Id: Iac064c52eb58b05a94fa1c432304c6216256555b
2011-01-16 16:11:42 -08:00
Jason Sams
21b4103e42 unhide functions used by reflected files for SDK.
Change-Id: I7cfbfa94cb21207cc5c91e08a60a7184da3f583a
2011-01-16 15:05:52 -08:00
Dianne Hackborn
dd4a1e3825 am 7d234fab: Merge "Don\'t drop the drawable cache completely on configuration change"
* commit '7d234fabe61cd5f034fe4ff4484209fbf5130c4d':
  Don't drop the drawable cache completely on configuration change
2011-01-14 16:11:40 -08:00
Dianne Hackborn
0b08c5cb14 Merge "Don't drop the drawable cache completely on configuration change" into honeycomb 2011-01-14 15:37:28 -08:00
Christopher Lais
6efd2bad95 Don't drop the drawable cache completely on configuration change
There was a lot of fancy code just above the clear to ensure
that drawables that aren't affected by the change are kept,
then the entire array was cleared.  This patch removes the
clear, so that the drawables that haven't changed are really
kept, matching the logs, comments and larger part of the code.

This patch also fixes the various constant states to return
correct ChangingConfigurations.

Change-Id: Ic11f6179537318d3de16dc58286989eb62a07f15
Old-Change-Id: I22495e6ed232dfe056207ce5155405af1fa82428
2011-01-14 12:31:26 -08:00
Alex Sakhartchouk
0473ff1ef6 Removing things that shouldn't be public
Change-Id: I23ea748f7f4ba27307807d7e1d56e49b7c10a827
2011-01-14 12:16:02 -08:00
Christopher Lais
8d71769b9b Don't drop the drawable cache completely on configuration change
There was a lot of fancy code just above the clear to ensure
that drawables that aren't affected by the change are kept,
then the entire array was cleared.  This patch removes the
clear, so that the drawables that haven't changed are really
kept, matching the logs, comments and larger part of the code.

This patch also fixes the various constant states to return
correct ChangingConfigurations.

Change-Id: Ic11f6179537318d3de16dc58286989eb62a07f15
Old-Change-Id: I22495e6ed232dfe056207ce5155405af1fa82428
2011-01-14 00:43:16 -06:00
Alex Sakhartchouk
f5c876e82d Docs plus removing some junk per API review.
Change-Id: I45f995b656754550be68c78e467071d6e59b348f
2011-01-13 14:53:43 -08:00
Wei-Ta Chen
62cd5c9788 am 61d9ffbf: Merge "Do not merge." into gingerbread
* commit '61d9ffbfd86dfe6bacce431b8ed9eebe1cfd8178':
  Do not merge.
2011-01-13 12:06:38 -08:00
Jamie Gennis
9aba2324ac Merge "Add getTransformMatrix to the SurfaceTexture API." into honeycomb 2011-01-13 11:29:14 -08:00
Alex Sakhartchouk
623c54dd16 Documentation
Change-Id: Idb5f87f9d2c0f7fb4677b1b45c232502d66b4668
2011-01-12 17:32:36 -08:00