summaryrefslogtreecommitdiffstats
path: root/graphics
Commit message (Collapse)AuthorAgeFilesLines
* Expose an API to get a bitmap's size in bytes.Jesse Wilson2011-02-162-5/+14
| | | | | Change-Id: I960c3b02b1ba8d3a8d92aaa98955a159e6f3a228 http://b/3184897
* Fix Paint#breakText(char[]..) JavaDocBrian Muramatsu2011-02-161-3/+1
| | | | | | | | | | | | | | | | | | 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
* Deprecate ARGB_4444.Romain Guy2011-02-141-6/+62
| | | | | | | | | | 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
* am affeaaed: am bbdc4ce2: Merge "clean up and add javadocs" into honeycombRobert Ly2011-02-1033-95/+246
|\ | | | | | | | | * commit 'affeaaed8ef0776455fbecbf70627df3dd842030': clean up and add javadocs
| * clean up and add javadocsRobert Ly2011-02-0933-95/+246
| | | | | | | | Change-Id: I7f628106247de887cd91c4a4b4b55d3ebfa700c8
* | Expose several useful Bitmap APIs.Romain Guy2011-02-081-13/+11
|/ | | | | | | | | 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
* Fixes cache misses and extra allocations.Romain Guy2011-02-031-1/+1
| | | | | | Bug #3421454 Change-Id: If4d5c960a7e4c581a9d213073e658284b4e1c497
* Assume ARGB_8888 for unknown configs.Romain Guy2011-02-011-2/+18
| | | | | | Bug #3327175 Change-Id: If712a255ec65014cd2e007de1e4c6a1d67c19250
* Don't convert 4444 images to 565.Romain Guy2011-01-311-2/+2
| | | | | | Bug #3327175 Change-Id: I46d970e41947278f4c2476b347fd2403fe9a05e8
* Add SurfaceTexture docs for getTransformMatrix.Jamie Gennis2011-01-311-0/+11
| | | | Change-Id: Ib08d00525c7932b23ba5066c07c7470f813b74f8
* Merge "Fix for an IOOBoundsException in Paint." into honeycombGilles Debunne2011-01-281-1/+1
|\
| * Fix for an IOOBoundsException in Paint.Gilles Debunne2011-01-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Add docs about threading to SurfaceTexture." into honeycombJamie Gennis2011-01-281-3/+8
|\ \ | |/ |/|
| * Add docs about threading to SurfaceTexture.Jamie Gennis2011-01-271-3/+8
| | | | | | | | | | | | | | This is a docs-only change. Bug: 3362397 Change-Id: I5fad19a8ae112af73b1e235cf3d54bd2179d165a
* | Update package descriptions with editorial revisions.Scott Main2011-01-261-3/+4
| | | | | | | | | | | | | | | | | | 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
* | Remove unused APIRomain Guy2011-01-261-45/+0
|/ | | | Change-Id: I1714fd82a64b752f0350ef4ef9179ce19e089c6a
* Fix bitmap meshes to work in display lists.Romain Guy2011-01-231-1/+5
| | | | Change-Id: Ie226d049840942d9ad9cf58e0c19132f49d62a75
* Merge "fix bug 3375251 Copying arrays of objects would generate an exception ↵Jason Sams2011-01-211-1/+1
|\ | | | | | | due to excessive internal type checking." into honeycomb
| * fix bug 3375251Jason Sams2011-01-211-1/+1
| | | | | | | | | | | | | | Copying arrays of objects would generate an exception due to excessive internal type checking. Change-Id: Ic89c24962408f1a95dc0385b74618a70d6ff5859
* | Update Bitmap.recycle() doc for heap-allocated pixel dataPatrick Dubroy2011-01-211-4/+6
|/
* Merge "Add support for drawBitmapMesh()." into honeycombRomain Guy2011-01-201-2/+5
|\
| * Add support for drawBitmapMesh().Romain Guy2011-01-201-2/+5
| | | | | | | | Change-Id: Ic77f9c534bb90dc7b9458299544bd50b8b6ae6a5
* | Properly use Long2 for "UInt2" for FieldPacker.Stephen Hines2011-01-201-3/+3
|/ | | | | | | We were misusing this API, since it requires the additional precision of the next size up on unsigned versions of types. Change-Id: Ic3c87f681ac6705ae0b36a3464ce0d63737945fd
* Merge "Check and propogate errors from llvm." into honeycombJason Sams2011-01-191-0/+3
|\
| * Check and propogate errors from llvm.Jason Sams2011-01-191-0/+3
| | | | | | | | Change-Id: Id99a724f746d1f64eabcdf67c12646cc32ff8f9d
* | Merge "Expose unchecked copyFrom variants." into honeycombJason Sams2011-01-191-4/+162
|\ \ | |/
| * Expose unchecked copyFrom variants.Jason Sams2011-01-191-4/+162
| | | | | | | | Change-Id: I452d082bb4adbd578b6300bf5829dc59e91e517a
* | Pass SkRegion::toString() through to java.Joe Onorato2011-01-191-1/+7
|/ | | | Change-Id: I3814b491c689313c1f8da811a104d913175f6268
* Fix race condition between GC thread andJason Sams2011-01-181-1/+102
| | | | | | | | | 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
* Cleanup logs.Jason Sams2011-01-181-2/+2
| | | | Change-Id: I206d45863752adbc71fc91cd14e7cd3a555c8c53
* Merge "Change to stream decoding mode if the file descriptor cannot support ↵Owen Lin2011-01-181-4/+16
|\ | | | | | | seek." into honeycomb
| * Change to stream decoding mode if the file descriptor cannot support seek.Owen Lin2011-01-181-4/+16
| | | | | | | | | | bug: 3298498 Change-Id: Id7ae46bf8e885a417753edbd6648332052fee469
* | Merge "More docs" into honeycombAlex Sakhartchouk2011-01-175-9/+414
|\ \
| * | More docsAlex Sakhartchouk2011-01-175-9/+414
| | | | | | | | | | | | Change-Id: I3dfea7d83bf8525efda59cef6fafa854b5aa9fe3
* | | Merge "Add error checks to the copyFrom functions." into honeycombJason Sams2011-01-174-11/+85
|\ \ \
| * | | Add error checks to the copyFrom functions.Jason Sams2011-01-164-11/+85
| |/ / | | | | | | | | | Change-Id: Iac064c52eb58b05a94fa1c432304c6216256555b
* | | Merge "Add BitmapFactory.Options.inMutable to load mutable bitmaps." into ↵Romain Guy2011-01-172-1/+10
|\ \ \ | |_|/ |/| | | | | honeycomb
| * | Add BitmapFactory.Options.inMutable to load mutable bitmaps.Romain Guy2011-01-172-1/+10
| | | | | | | | | | | | Change-Id: Iaa222127520f3aa55072d44af12ee3477908b876
* | | Merge "Implement SurfaceTexture frame-available callback." into honeycombJamie Gennis2011-01-161-7/+60
|\ \ \ | |_|/ |/| |
| * | Implement SurfaceTexture frame-available callback.Jamie Gennis2011-01-161-7/+60
| |/ | | | | | | | | | | | | | | 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
* | unhide functions used by reflected files for SDK.Jason Sams2011-01-163-30/+2
|/ | | | Change-Id: I7cfbfa94cb21207cc5c91e08a60a7184da3f583a
* Merge "Don't drop the drawable cache completely on configuration change" ↵Dianne Hackborn2011-01-1412-12/+12
|\ | | | | | | into honeycomb
| * Don't drop the drawable cache completely on configuration changeChristopher Lais2011-01-1412-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Removing things that shouldn't be publicAlex Sakhartchouk2011-01-141-4/+4
|/ | | | Change-Id: I23ea748f7f4ba27307807d7e1d56e49b7c10a827
* Docs plus removing some junk per API review.Alex Sakhartchouk2011-01-139-50/+102
| | | | Change-Id: I45f995b656754550be68c78e467071d6e59b348f
* Merge "Add getTransformMatrix to the SurfaceTexture API." into honeycombJamie Gennis2011-01-131-0/+25
|\
| * Add getTransformMatrix to the SurfaceTexture API.Jamie Gennis2011-01-121-0/+25
| | | | | | | | Change-Id: Icd11ed4982220be9d08b00498aef02531610ce1f
* | DocumentationAlex Sakhartchouk2011-01-122-14/+332
| | | | | | | | Change-Id: Idb5f87f9d2c0f7fb4677b1b45c232502d66b4668
* | Merge "Implement more of copy2DRange*" into honeycombJason Sams2011-01-122-8/+78
|\ \
| * | Implement more of copy2DRange*Jason Sams2011-01-122-8/+78
| | | | | | | | | | | | Change-Id: Id6be481c4abc968df27e5bba1ed044262ec0f293