summaryrefslogtreecommitdiffstats
path: root/graphics
Commit message (Collapse)AuthorAgeFilesLines
* am 718516f3: am 9fd8e057: Merge "Fix memory leak of SkMovie class"Conley Owens2011-04-291-0/+11
|\ | | | | | | | | * commit '718516f3b73468c480ef8d2283a1c80a6223658d': Fix memory leak of SkMovie class
| * Merge "Fix memory leak of SkMovie class"Conley Owens2011-04-291-0/+11
| |\
| | * Fix memory leak of SkMovie classKimiyoshi Kusaka2011-03-281-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | Movie class doesn't have finalize method. So memory leak of SkMovie class of native Skia occurs when Movie class is released. I add finalize method to Movie class (Movie.java) and jni destructor method to SkMovie class (Movie.cpp). Change-Id: I4dae9dd95f128cbfade50bef978b219ba99321dd
* | | am f26ec38c: am 501f7bca: Merge "Eliminating dead logic - bitmap state ↵Conley Owens2011-04-291-3/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | simply cannot be null here." * commit 'f26ec38c344af8cf91575b461028a3033b940d49': Eliminating dead logic - bitmap state simply cannot be null here.
| * | Eliminating dead logic - bitmap state simply cannot be null here.Jozef BABJAK2011-04-191-3/+1
| |/ | | | | | | Change-Id: I33fdf650b06242efa22ca30b3f7252f6854b42f6
* | am 697f8b33: am 00df8e23: Merge "Check setName() for null string + fix ↵Stephen Hines2011-04-271-4/+10
|\ \ | | | | | | | | | | | | | | | | | | rsRand()." into honeycomb-mr1 * commit '697f8b331bb339e4db716efbb96e2182aac40255': Check setName() for null string + fix rsRand().
| * | Check setName() for null string + fix rsRand().Alex Sakhartchouk2011-04-271-4/+10
| | | | | | | | | | | | Change-Id: I5e0042930209861e2eb9acc91380e9473dac0997
* | | am a4206029: am 5d5a0ca5: Merge "Fixing the wrong link in YuvImage JavaDoc."Brad Fitzpatrick2011-03-291-3/+3
|\ \ \ | |/ / |/| / | |/ | | * commit 'a4206029cbb8f6c02c47db52f84b7d52e154e35a': Fixing the wrong link in YuvImage JavaDoc.
| * Merge "Fixing the wrong link in YuvImage JavaDoc."Brad Fitzpatrick2011-03-231-3/+3
| |\
| | * Fixing the wrong link in YuvImage JavaDoc.Keiji Ariyama2011-02-051-3/+3
| | | | | | | | | | | | Change-Id: Ie6334e16424e59b75274ef265f10d26ba484316a
| * | am 7d234fab: Merge "Don\'t drop the drawable cache completely on ↵Dianne Hackborn2011-01-1412-12/+12
| |\ \ | | |/ | | | | | | | | | | | | | | | configuration change" * commit '7d234fabe61cd5f034fe4ff4484209fbf5130c4d': Don't drop the drawable cache completely on configuration change
| | * 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
| * | am 61d9ffbf: Merge "Do not merge." into gingerbreadWei-Ta Chen2011-01-132-0/+273
| |\ \ | | | | | | | | | | | | | | | | * commit '61d9ffbfd86dfe6bacce431b8ed9eebe1cfd8178': Do not merge.
| | * | Do not merge.Wei-Ta Chen2011-01-112-0/+273
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport changes related to BitmapRegionDecoder from HoneyComb to Gingerbread. Bug: 3309014 //////////////////////////////////////////////////// This is a combination of 7 commits. Revert "Do not merge." This reverts commit f7681f84918c27f6a626681ce37ed2a236c44e82. Change-Id: I46fd710600b1649773eaea2d9abc2b21a592f9a6 Fix a initialization bug in BitmapRegionDecoder. Change-Id: I6c1151fd34970a84d4de52d664d9a5dc464892c5 Fix segfault when tring to throw IOException. Change-Id: I530cc4409ba4ca17cec933afad077c5f60ba554f Fix 3122139, where previewing an attachment for the second time will fail. Use AutoFDSeek to mark and restore the position before we read data from the descriptor. Change-Id: I3d4f012dce486e19b113bc90a98b94031cfa8195 Add inPreferQualityOverSpeed into BitmapFactory.Options. The new field allows a developer to use a more accurate by slightly slower IDCT method in JPEG decode. This in turns improves the quality of the reconstructed image. The field by default is not set and thus does not affect existing applications. Bug: 3238925 Change-Id: I93d55b7226e47a43e639325cd1a677694d6f2ee4 Unhide inPreferQualityOverSpeed in BitmapFactory.Options. The new field allows a developer to use a more accurate by slightly slower IDCT method in JPEG decode. This in turns improves the quality of the reconstructed image. The field by default is not set and thus does not affect existing applications. Bug: 3238925 Related changes: https://android-git.corp.google.com/g/#change,83291 and https://android-git.corp.google.com/g/#change,83294 Change-Id: I969f5c413f9b2179454aeb90e18ae8222ee583b4 Correct the API comments. BitmapRegionDecoder supports PNG as well.
* | | | Fix for bug 3434228Alex Sakhartchouk2011-03-163-7/+9
| | | | | | | | | | | | | | | | Change-Id: I57973faf782b487e7913a096f0ab6012dc1c9415
* | | | 2X2 matrix needs 4 float elements.Stephen Hines2011-03-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | BUG=4104094 Change-Id: I175bde5839d6f1c56b2fd7499853be723e85120f
* | | | DO NOT MERGE: Fix typos in RenderScript docs.Stephen Hines2011-03-032-2/+2
| | | | | | | | | | | | | | | | Change-Id: Ie5f326c5c682ca7b604328ab25d7402cf01f7890
* | | | Merge "Fixing element count bug in renderscript."Alex Sakhartchouk2011-03-021-1/+2
|\ \ \ \
| * | | | Fixing element count bug in renderscript.Alex Sakhartchouk2011-03-021-1/+2
| | | | | | | | | | | | | | | | | | | | Change-Id: I0e795561db00e647d6dd5a9de7d25baf626d01a6
* | | | | Merge changes I9a202210,If26ef8beMathias Agopian2011-03-021-71/+81
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | * changes: fix YV12 documentation reformat file, which contained tabs instead of spaces
| * | | | fix YV12 documentationMathias Agopian2011-03-021-6/+16
| | | | | | | | | | | | | | | | | | | | Change-Id: I9a2022101930721a3b3bacc95b02ca21d05f21bb
| * | | | reformat file, which contained tabs instead of spacesMathias Agopian2011-03-011-71/+71
| | | | | | | | | | | | | | | | | | | | Change-Id: If26ef8be8c80a7894d256572cb3b9e60742dce57
* | | | | Discovered a matrix element bug while writing cts unit tests.Alex Sakhartchouk2011-02-281-3/+3
|/ / / / | | | | | | | | | | | | Change-Id: I56709df188a5085611efca804582470340369dc0
* | | | Expand on the SurfaceTexture API docs.Jamie Gennis2011-02-251-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds additional documentation explaining how a SurfaceTexture should be used in OpenGL ES. It describes some of the limitations of using the GL_TEXTURE_EXTERNAL_OES texture target. Change-Id: I7424c1b422e4f402e87372e8b361391fbec82c5c
* | | | Revert "Merge "Expand on the SurfaceTexture API docs.""Jamie Gennis2011-02-241-7/+1
| | | | | | | | | | | | | | | | | | | | This reverts commit 069d748da85559ffb2d09d181b186b1f71e350e7, reversing changes made to b607b884bd94d4f75fb4b2ead7457f2027ceb850.
* | | | Merge "Expand on the SurfaceTexture API docs."Jamie Gennis2011-02-241-1/+7
|\ \ \ \
| * | | | Expand on the SurfaceTexture API docs.Jamie Gennis2011-02-231-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds additional documentation explaining how a SurfaceTexture should be used in OpenGL ES. It describes some of the limitations of using the GL_TEXTURE_EXTERNAL_OES texture target. Change-Id: I9d3446a012376166b6c598b827a0aa0e9585d00f
* | | | | Merge "Bug 3438258 Add SurfaceTexture as MediaPlayer sink"Glenn Kasten2011-02-241-3/+6
|\ \ \ \ \
| * | | | | Bug 3438258 Add SurfaceTexture as MediaPlayer sinkGlenn Kasten2011-02-231-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change enables the use of a SurfaceTexture in place of a Surface as the video sink for an android.media.MediaPlayer. The new API MediaPlayer.setTexture is currently hidden. This includes: - New Java and C++ interfaces - C++ plumbing and implementation (JNI, Binder) - Stagefright AwesomePlayer and NuPlayer use ANativeWindow (either Surface or SurfaceTextureClient) Change-Id: I2b568bee143d9eaf3dfc6cc4533c1bebbd5afc51
* | | | | | Add a new Camera API to control the camera's locationRomain Guy2011-02-231-4/+98
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Id9a082d2def803eb527e1987875e0d8a22c6e8aa
* | | | | | More documentation for Canvas.drawArc()Romain Guy2011-02-231-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I007a1db94306e05cf4e245f876aa1921f518c113
* | | | | | Add dither XML attribute support to Gradient and ShapeDrawable.Romain Guy2011-02-232-4/+10
|/ / / / / | | | | | | | | | | | | | | | Change-Id: I4b60a0ba6766b7e7b176e78dc7f15f8467e2b890
* | | | | Don't swap bottom left and bottom right corner radii.Romain Guy2011-02-232-3/+4
|/ / / / | | | | | | | | | | | | Change-Id: If57b6627f67998edc384de15e3d970f8edf18211
* | | | 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