summaryrefslogtreecommitdiffstats
path: root/graphics
Commit message (Collapse)AuthorAgeFilesLines
* Doc fix: update BitmapFactory.Options.inSampleSize javadocAdam Koch2013-02-221-3/+2
| | | | | | Bug: 8250653 Change-Id: I7187372ab3c742b9395d119a7425f60f071dbb4e
* docs: fix renderscript links that currently require redirectScott Main2013-02-057-7/+7
| | | | Change-Id: Ie12ff2c4be5ca22ac43dfe3a16868c7bef8e4ae8
* Fix for bug 7400445 regression in background drawableRaph Levien2012-10-311-0/+5
| | | | | | | | | | | | | The opacity calculation for a gradient drawable of shape must take rounded corners into account - if the corner radius is nonzero, then the shape is translucent rather than opaque. Previously the code always assumed that such rectangles were fully opaque, which led to the background (visible behind the rectangle) not getting drawn. This patch simply checks for corner radius in addition to shape and computes opacity as translucent in the nonzero case. Change-Id: Iaf4d24abc6ecf49f85c82972b8f998700c83295e
* Don't null the reference to Bitmap pixels until we're really readyChet Haase2012-10-221-4/+9
| | | | | | | | | | | | | | | | | | | | | A change in the VM triggers a native memory error more aggressively than before, showing that there's a bug in the logic of recycling bitmaps. Since the pixel memory is allocated on the Java heap, nulling out the reference to that memory in the Java level Bitmap object can cause that memory to get collected at any time. Meanwhile, we may have a reference to that memory at the native level for rendering purposes, causing an error if/when we access that memory after it has been collected by the VM. The fix is to avoid setting the reference to the pixels to null unless we are not referring to it in native code. This is determined at the time we call recycle() - we return a boolean to indicate whether the native code is still using the memory. if not, the Java code can null out the reference and allow the VM to collect it. Otherwise, it will get collected later when the encompassing Bitmap object is collected. Issue #7339156 HTML5 tests crash the app (Vellamo) Change-Id: I3a0d6b9a6c5dd3b86cc2b0ff7719007e774b5e3c
* Merge "Add API to enable mipmaps on Bitmap Bug #7353771" into jb-mr1-devRomain Guy2012-10-161-1/+48
|\
| * Add API to enable mipmaps on BitmapRomain Guy2012-10-161-1/+48
| | | | | | | | | | | | | | | | | | Bug #7353771 This API can be used when scaling large images down to a small size to get nicer looking results. Change-Id: If09087eed36077eee5355f6047a3ca67747d7d9e
* | Convert one more bind() -> setVar().Stephen Hines2012-10-161-1/+1
| | | | | | | | | | Bug: 7318821 Change-Id: I215c70a99c81e560a73412b2263fed39a0fdae03
* | Fix bugs in scriptGroup.Jason Sams2012-10-154-4/+4
|/ | | | | | | | | | Intrinsics were treating inputs as fields rather than varObjs. This would generate a lot of extra work for the reflection layers. Also we would like to deprecate this path in the future. bug 7318821 Change-Id: I81e8c562ba05aae5d085d5c08e91e2c4877265c5
* Fix cycle detection for SGs.Tim Murray2012-10-121-29/+13
| | | | | | bug 7318821 Change-Id: I695d7230551d8512c6c3f0c31c57f12498da7036
* Merge "Don't scale bitmaps to an empty size when targetDpi=0 Bug #7334217" ↵Romain Guy2012-10-111-1/+1
|\ | | | | | | into jb-mr1-dev
| * Don't scale bitmaps to an empty size when targetDpi=0Romain Guy2012-10-111-1/+1
| | | | | | | | | | | | Bug #7334217 Change-Id: I8d232a835580ffbf85334e0a3580e8d8240c8570
* | Merge "Add DAG validation for ScriptGroups." into jb-mr1-devTim Murray2012-10-101-9/+73
|\ \ | |/ |/|
| * Add DAG validation for ScriptGroups.Tim Murray2012-10-101-9/+73
| | | | | | | | | | | | bug 7318821 Change-Id: If13cfe7a9f214ab253236bd52dd96df7b07aa14e
* | Adjust buffer position after copyingMarco Nelissen2012-10-081-0/+5
|/ | | | | | | | Make Bitmap.copyPixelsFromBuffer() adjust the buffer's position, making it consistent with Bitmap.copyPixelsToBuffer(). b/6948775 Change-Id: Ie26f8050b1fb4d19cd39ee1a08b6f652a732fec3
* Merge "Fix rendering artifacts on tiled renderers Bug #7275145" into jb-mr1-devRomain Guy2012-10-031-0/+3
|\
| * Fix rendering artifacts on tiled renderersRomain Guy2012-10-031-0/+3
| | | | | | | | | | | | | | | | | | Bug #7275145 This change fixes ViewRoot and adds extra debug information. It does not solve the problem entirely. Another CL will. Change-Id: I7e604ba38aad7f421769783dcbd998d6905ab2d9
* | Merge "Fix range on blur intrinsic." into jb-mr1-devJason Sams2012-10-031-3/+3
|\ \ | |/ |/|
| * Fix range on blur intrinsic.Jason Sams2012-10-021-3/+3
| | | | | | | | | | | | | | | | | | | | The intrinsic fails when the radius was 0. A blur of radius 0 is a nop and should be disallowed. Fix the test to allow sub-pixel radius to be selected. bug 7273437 Change-Id: I2805674e29d557615eb7ac65c7910d4dffa28b58
* | Bring back Netflix progress barRomain Guy2012-10-021-0/+12
| | | | | | | | | | | | | | | | | | Bug #7274157 Gradients and color filters are multiplied by the paint's color so it needs to be set to opaque black to have an effect. Change-Id: Ib5dd1e6185f758f55b57a0f4496dfae98f1a096b
* | Draw stroked rectangle as meshes instead of texturesRomain Guy2012-10-021-1/+9
|/ | | | | | | | | | | Bug #7233734 Stroked rectangles were rendered using software generated textures which would lead to slightly misaligned results. Instead, let's use the new convex path rendering code that will do the right thing (and save a lot of bandwidth.) Change-Id: Ib95ff581e56c1ecead97e4919298e6fd146ca167
* Merge "Update APIs to JB MR1 level 17." into jb-mr1-devDianne Hackborn2012-09-303-0/+3
|\
| * Update APIs to JB MR1 level 17.Dianne Hackborn2012-09-303-0/+3
| | | | | | | | | | | | 17 is current, resources are fixed, cleanup is done. Change-Id: I6de446e209f59c5dd5fe1cde311776ab222817ea
* | reset() should reset. Otherwise it would be called something else.Romain Guy2012-09-281-1/+19
|/ | | | | | Bug #7256095 Change-Id: I610bbcaccdceaf2b5bb5f9d231283335911d4cd9
* fix blend intrinsics, add testsTim Murray2012-09-261-5/+6
| | | | | Bug: 7190126 Change-Id: If69213377282bf5b412508e7af974a1f8d440287
* Add Blend intrinsic.Jason Sams2012-09-211-0/+464
| | | | Change-Id: I6f679c910fc23fe7441e17ad66bcf5f3dd7425a0
* Ensure that the decoder is thread-safe.Derek Sollenberger2012-09-211-13/+24
| | | | | | | | | This prevents issues where one thread recycles the decoder while another thread is in the process of checking the decoder's status or in the process of decoding a region. bug: 6880937 Change-Id: I7f755bf2149d03594e528ca79c536713b1447a55
* Merge "Clean up and publish the YUV to RGB intrinsic." into jb-mr1-devJason Sams2012-09-181-33/+58
|\
| * Clean up and publish the YUV to RGB intrinsic.Jason Sams2012-09-181-33/+58
| | | | | | | | Change-Id: Iffb346a5d751f0bae123455869bda8db37d542ff
* | mutate() didn't work as advertisedRomain Guy2012-09-184-17/+1
| | | | | | | | | | | | Bug #7162705 Change-Id: I15b2663fa7f1c71a2a3479134b8b7f37bfcbc607
* | Merge "Compute GradientDrawable's opacity correctly" into jb-mr1-devRomain Guy2012-09-183-17/+51
|\ \
| * | Compute GradientDrawable's opacity correctlyRomain Guy2012-09-183-17/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | The current implementation of GradientDrawable always assumes the shape needs to be blended. This causes all windows to be considered translucent by default. This change recomputes the opacity as needed to ensure windows are marked opaque when they should. Change-Id: Iaf291d889a6c5122ab00c9f5781df3e7f61547fa
* | | Merge "Fix bug #7172972 API REVIEW: android.graphics.drawable.Drawable" into ↵Fabrice Di Meglio2012-09-181-1/+4
|\ \ \ | |_|/ |/| | | | | jb-mr1-dev
| * | Fix bug #7172972 API REVIEW: android.graphics.drawable.DrawableFabrice Di Meglio2012-09-181-1/+4
| | | | | | | | | | | | | | | | | | - add @hide Change-Id: I20dca8d7f6a58dfd1dd342135dcff912e08d4ab9
* | | Add Kernel, Method, and field IDsJason Sams2012-09-189-272/+572
| |/ |/| | | | | | | | | bug 7182873 Change-Id: I066a359bb04027e9376dac088560f042c496b10e
* | Make librs_jni depend on libRSDriver to remove circular dependencyYing Wang2012-09-161-1/+1
| | | | | | | | Change-Id: Ia607f732f2f22968fd6f1793c2f252f08300357d
* | Unhide intrinsics and document API.Jason Sams2012-09-136-66/+202
| | | | | | | | Change-Id: I0233245c68f9a08780213062e62cfea6cf909c13
* | Don't crash when copying a null RectRomain Guy2012-09-122-12/+24
|/ | | | | | Bug #7158068 Change-Id: I8f5f3ee12b2c4fd1fe28212b0c6de1214f2ce5f9
* LUT intrinsic and CrossProcess test.Jason Sams2012-09-083-0/+242
| | | | | | | | 5x5 convolve and test Gauss blur and test Change-Id: Ic2f5d583cbdc1793ec8c8e2beea783d4ec34a57f
* Merge "Fix doc typo." into jb-mr1-devJason Sams2012-09-081-1/+1
|\
| * Fix doc typo.Jason Sams2012-09-071-1/+1
| | | | | | | | Change-Id: Ib18172ac72886865dc9ae4535a577b2f8f3468e9
* | Merge "Fix crash in ShapeDrawable" into jb-mr1-devRomain Guy2012-09-071-2/+10
|\ \
| * | Fix crash in ShapeDrawableRomain Guy2012-09-071-2/+10
| | | | | | | | | | | | Change-Id: Ibc277db46912a73dc3f971f8487baa5eafa8bc84
* | | Merge "Document ColorMatrix intrinsic and add helpers" into jb-mr1-devJason Sams2012-09-073-6/+118
|\ \ \ | |/ / |/| / | |/
| * Document ColorMatrix intrinsic and add helpersJason Sams2012-09-063-6/+118
| | | | | | | | | | | | | | Increase size of test image. Add helpers for greyscale and yuv<>rgb conversions Change-Id: I6cdd06ae23623b47f5034585ed5d385ff11348ac
* | Merge "Fix the build" into jb-mr1-devFabrice Di Meglio2012-09-071-4/+4
|\ \
| * | Fix the buildFabrice Di Meglio2012-09-071-4/+4
| | | | | | | | | | | | | | | | | | - use fully qualified name for Javadoc Change-Id: Ic75ce7e19d407dc40c96b585f9fa1827fb614ba1
* | | Merge "The drawables cache strikes again Bug #7117785" into jb-mr1-devRomain Guy2012-09-075-9/+44
|\ \ \ | |/ / |/| |
| * | The drawables cache strikes againRomain Guy2012-09-065-9/+44
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug #7117785 Draawables created from the ConstantState cache found in Resources must be mutated before they can be safely modified by apps. Failure to do so results in all drawables sharing the same constant state to be affected by the modification. In the case of the bugreport above, the status bar code plays tricks with a background drawable and modifies its color to implement a fade in/out effect. This drawable comes from a cached resource (color 0x0) and the modifications made by the status bar apply to other clients of this drawable, most notably the recents panel. This change fixes several things: - Simplifies colors caching by removing the assetCookie from the key. This should result in better reuse of cached drawables - Makes View.setBackgroundColor() honor the mutate() contract - Ensure StateListDrawable properly mutates its children before modifying them - Optimize Bitmap/ColorDrawable to mark them mutated when they are not created from an existing ConstantSate. The same optimization should be applied to other drawables in the future Change-Id: I54adb5d5b914c7d8930bf9b46f7e3f9dcbf4bcab
* | Make ProgressBar / SeekBar / RatingBar widgets aware of layout directionFabrice Di Meglio2012-09-063-1/+26
|/ | | | | | - see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi) Change-Id: I8d76299090abf6b2b187696b1a83e71d7a44b1ce
* Add ColorMatrix Intrinsic.Jason Sams2012-09-041-0/+68
| | | | | | | Add better intrinsic testing. Include reference .rs for each intrinsic. Change-Id: I327649f16ac8f641c2bd96f7b16f51874a3e820e