summaryrefslogtreecommitdiffstats
path: root/graphics
Commit message (Collapse)AuthorAgeFilesLines
* am 50c3c114: am 664ec0a6: am 77491ac0: Merge "Correct typo in doc comment"Nick Kralevich2014-07-051-1/+1
|\ | | | | | | | | * commit '50c3c114603b493d7814c83f96c8057e040e6c28': Correct typo in doc comment
| * am 664ec0a6: am 77491ac0: Merge "Correct typo in doc comment"Nick Kralevich2014-07-051-1/+1
| |\ | | | | | | | | | | | | * commit '664ec0a6e6cedf47adc54f2e0cd8f1435d699b72': Correct typo in doc comment
| | * Merge "Correct typo in doc comment"Nick Kralevich2014-07-021-1/+1
| | |\
| | | * Correct typo in doc commentShuhrat Dehkanov2014-03-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changed "will" to "with" (will null Options -> with null Options) Change-Id: I3bbfb953d8e783ca6335247463007cbee722a28e Signed-off-by: Shuhrat Dehkanov <k@efir.uz>
* | | | am 7ea31c67: am c43f3eb6: am 8b333467: Merge "fix trivial typo: ↵Nick Kralevich2014-07-051-1/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | s/meansure/measure" * commit '7ea31c67f707be3fa208f93fa458068d57545e77': fix trivial typo: s/meansure/measure
| * | | am c43f3eb6: am 8b333467: Merge "fix trivial typo: s/meansure/measure"Nick Kralevich2014-07-051-1/+1
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit 'c43f3eb67bbf60af61b3cd18bc5b6a684c8744c6': fix trivial typo: s/meansure/measure
| | * | Merge "fix trivial typo: s/meansure/measure"Nick Kralevich2014-07-031-1/+1
| | |\ \
| | | * | fix trivial typo: s/meansure/measureSeongJae Park2014-04-011-1/+1
| | | |/ | | | | | | | | | | | | | | | | Change-Id: I6d879a03f23fc9ad69b1d676bf7a0a08c1124524 Signed-off-by: SeongJae Park <sj38.park@gmail.com>
| * | | Resolve conflicts with AOSP.Jason Sams2014-07-021-112/+0
| | | | | | | | | | | | | | | | Change-Id: I2f1afdb83dcfc9078df5d3c2f13abacb6504d73d
* | | | Make optical insets actually workAlan Viverette2014-07-044-25/+33
| | | | | | | | | | | | | | | | Change-Id: I9fabf4cb939cc7a868f95580e7229745acde0418
* | | | Read premultiplied status from the SkBitmap.Leon Scroggins III2014-07-011-33/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace the Java variable with mRequestPremultiplied, to better reflect what it represents. In both native and Java, the SkBitmap is used as the decision maker of whether a Bitmap is premultiplied. When changing other settings, mRequestedPremultiplied is used to determine whether it should be premultiplied (if the new config/ hasAlpha-ness etc supports it). ChooseFromColorProc now reads both the colortype (instead of the deprecated Config) and alphatype on the SkBitmap. Same with ChooseToColorProc. In the process, this caught a bug, where the wrong procs were being used for Index8. Replace instances of SkBitmap::Config with SkColorType where I was already changing code. Use the new versions of setConfig/allocPixels that take an SkImageInfo as a parameter. Document isPremultiplied's return value for ALPHA_8. BUG:13618134 Change-Id: I91fc1f1e46e9294364b1af0ab4bdb37c68d7058e
* | | | Initial replacement of setOutline() with ViewOutlineProvider APIChris Craik2014-07-012-24/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug:15283203 A View's outline is now managed by its outline provider. This means the outline is automatically requeried when needed (e.g. drawable updates or resize), with customizable querying behavior. Also adds 'isFilled' property to outline, to be used for hinting shadow overdraw avoidance. Change-Id: Ie137548fa850f1ff7863ab2f660d05145c2ad11e
* | | | Merge "Use AnimatedVectorDrawable for progress bar."ztenghui2014-06-302-3/+4
|\ \ \ \
| * | | | Use AnimatedVectorDrawable for progress bar.ztenghui2014-06-302-3/+4
| | | | | | | | | | | | | | | | | | | | Change-Id: I419197ef38a611757f27ca3192350ad4bd403875
* | | | | Don't call deprecated RippleDrawable constructorAlan Viverette2014-06-301-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | BUG: 15972806 Change-Id: If0973eed2da4708312a1320be4dd0b314157bc9a
* | | | | Add outline support to InsetDrawableChris Craik2014-06-301-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | bug:15933107 Change-Id: I3341417dc197a751442d2b4c2645a1520db41095
* | | | | Merge "Require color in RippleDrawable constructor, fix documentation"Alan Viverette2014-06-271-6/+34
|\ \ \ \ \
| * | | | | Require color in RippleDrawable constructor, fix documentationAlan Viverette2014-06-271-6/+34
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Marks old constructor for removal and emits LOG_E when used. BUG: 15808263 Change-Id: Iae4f3237261541cb04f42343351b3fc0ac4929ac
* | | | | Clean up AnimationDrawable.setVisible() state managementAlan Viverette2014-06-271-5/+32
|/ / / / | | | | | | | | | | | | | | | | BUG: 15823683 Change-Id: Ied0d476956c246bdfda66219aaa896f2ef58f0bd
* | | | SurfaceTexture: Allow creation in detached modeDan Stoza2014-06-261-3/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a constructor that doesn't require a GLES texture name and sets up the SurfaceTexture in detached mode. Bug: 15616428 Change-Id: I375495f481bfbe43b3830ab7d124cef8f1be0ac6
* | | | Switch all text layout to MinikinRaph Levien2014-06-261-10/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch switches all text layout operations to use Minikin, removes the USE_MINIKIN #ifdef, and deletes some of the code that was only used in the old TextLayout path (although some more refactoring remains). Change-Id: I51b5c4e2bb46cfd9d204c12b9f16f135c769f5b5
* | | | Delete Paint.getTextGlyphs()Raph Levien2014-06-261-40/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Paint.getTextGlyphs() method was used for testing the old Arabic shaper and is entirely obsolete. Note that this is the very last dependency (other than some enums in the header) for the old TextLayout code path. Change-Id: I7b596f0c0942ed50987fc8e0478cd93e667f1f9e
* | | | Outline support in DrawableContainer and LayerDrawableChris Craik2014-06-242-0/+22
| | | | | | | | | | | | | | | | | | | | bug:14445484 Change-Id: I26a45b0115b976d0dbcc351a208dc0956bc52e96
* | | | Add tileModeX/Y attrs to BitmapDrawable, tint to ShapeDrawableAlan Viverette2014-06-232-13/+51
| | | | | | | | | | | | | | | | Change-Id: I1c9efe39bfd5286230cee8354822db81f05186e4
* | | | Merge "Make AnimatedVectorDrawable public."ztenghui2014-06-202-43/+84
|\ \ \ \
| * | | | Make AnimatedVectorDrawable public.ztenghui2014-06-232-43/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up some useless VectorDrawable functions. Add comments, too. Change-Id: I8cc2165d14d09fd71f5830c4f61f9e8ac1d7c8da
* | | | | Avoid resetting gradient state when not actually rebuilding itChet Haase2014-06-211-16/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previous logic in GradientDrawable around rebuilding the gradient path was incorrect, but it happened to work because of when it was called (after ensureValidRect() in the draw() method). Further reliance on this logic outside of the drawing cycle (in the new getOutline() method) caused the side-effect to surface as we now clear the dirty flag without actually rebuilding the gradient. Fix avoids resetting the flag outside of ensureValidRect() where it belongs. Issue #15508378 Quantum ui having issues with viewing comments on facebook app Change-Id: Ia944d3de7e3c0920fed040188e8c1cc1bcce498d
* | | | | Merge "AVD now support path morphing."ztenghui2014-06-201-1/+32
|\ \ \ \ \ | |/ / / /
| * | | | AVD now support path morphing.ztenghui2014-06-201-1/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Basically extended the ValueAnimator to support a new type: pathType. Add the PathDataEvaluator internally to interpolate path data. Update test to show the path morphing. Change-Id: I89db0199cbc12e3041790a6115f3f50b80213cdb
* | | | | Add support for tint attribute in VectorDrawableAlan Viverette2014-06-201-15/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes NPE from previous change. Also fixes docs reference in TypedArray. BUG: 15375203 Change-Id: Icf3b5759780276b0875a4fb70b29522ab7c8cb90
* | | | | Revert "Add support for tint attribute in VectorDrawable"Dianne Hackborn2014-06-191-26/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit ab41ea17e6b0407fa76bc9f9183190a9bbc7f560. Was causing system UI to crash.
* | | | | Merge "Add support for tint attribute in VectorDrawable"Alan Viverette2014-06-201-0/+26
|\ \ \ \ \
| * | | | | Add support for tint attribute in VectorDrawableAlan Viverette2014-06-191-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also fixes docs reference in TypedArray. BUG: 15375203 Change-Id: I8cd2f43bd73f50084e21e5b986af9dc1c1447ad6
* | | | | | Put dither in GradientDrawable constant stateAlan Viverette2014-06-192-8/+13
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the dither attribute would be dropped when cloning a gradient drawable from constant state. Also fixes ShapeDrawable theme extraction. BUG: 15754194 Change-Id: I3071f5b8236cfa6acb549627a3dfac0618518dbf
* | | | | Persist selector on ListView and GridView layoutAlan Viverette2014-06-191-18/+22
|/ / / / | | | | | | | | | | | | | | | | BUG: 15472031 Change-Id: I0d10be3e0cf8a4d7580bd834e432c1c15fc481f5
* | | | Merge "Simple implementation of drawPosText"Raph Levien2014-06-191-15/+8
|\ \ \ \
| * | | | Simple implementation of drawPosTextRaph Levien2014-06-191-15/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The existing implementation of drawPosText is broken in various subtle ways, in any case doesn't work with Minikin. This patch just implements it by drawing a separate run for each Unicode character, which should have the least surprising results for complex scripts such as Khmer. Part of b/11750374 Resolve TODO items for Minikin Change-Id: I874ae3c163f0cbe3cdf0160564fab04305aed5aa
* | | | | Add path support into xml files for PathInterpolator and ObjectAnimator.ztenghui2014-06-191-488/+8
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | The test case is showing that AnimatedVectorDrawable is able to use path to define time interpolator and object movement now. Change-Id: If3c0418265d0fd762c8f5f0bb8c39cce3ad34ef3
* | | | Merge "Fix clamped starting position, seek bar hotspot bounds"Alan Viverette2014-06-181-4/+6
|\ \ \ \
| * | | | Fix clamped starting position, seek bar hotspot boundsAlan Viverette2014-06-181-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | BUG: 15720430 Change-Id: I11d40c747ea1a3665e9e2058d95dda1bc8a547ab
* | | | | Fix switch & slider anim, make View drawable hotspot API publicAlan Viverette2014-06-181-12/+4
|/ / / / | | | | | | | | | | | | | | | | BUG: 15287810 Change-Id: Ic7a9549dc1ba8afd07e9a196371ed349a54aaf2f
* | | | Merge "Improve constant state for VectorDrawable"ztenghui2014-06-171-3/+5
|\ \ \ \
| * | | | Improve constant state for VectorDrawableztenghui2014-06-181-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now inflation will not cause duplicated constant states. And update tests. Change-Id: I66861e5451c4c10d18756e8522546ea1cb938a55
* | | | | Merge "Implement drawTextOnPath with Minikin"Raph Levien2014-06-171-4/+4
|\ \ \ \ \
| * | | | | Implement drawTextOnPath with MinikinRaph Levien2014-06-181-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch contains an implementation of drawTextOnPath for both software and hardware Canvas using Minikin for text layout. One of the steps for switching all remaining text operations to Minikin so the old TextLayout and Skia fallback fonts mechanisms can be deleted. Bug: 11750374 Resolve TODO items for Minikin Change-Id: I06bfe74a101fa1dcdfc38f530f7194d71e522a85
* | | | | | Merge "Refactor android.graphics.Picture JNI bindings."Derek Sollenberger2014-06-171-39/+31
|\ \ \ \ \ \ | |_|/ / / / |/| | | | |
| * | | | | Refactor android.graphics.Picture JNI bindings.Derek Sollenberger2014-06-171-39/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the first CL in a series of CLs to refactor the Graphics JNI bindings. bug: 15672762 Change-Id: I1455fa1330c7426407c06eeaad81ad37a57373b1
* | | | | | Fix bitmap tintingAlan Viverette2014-06-181-1/+1
| |/ / / / |/| | | | | | | | | | | | | | | | | | | BUG: 15716407 Change-Id: I4008c9763fedc2f716040cd3f73ad79d77343960
* | | | | Add attributes and accessors for tinting View drawablesAlan Viverette2014-06-171-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also cleans up handling in setters for managed drawables. BUG: 15391544 Change-Id: Idc08f7eaea0050feb6403566985a6d58185b81f8
* | | | | Added primitive parameters to various functions requiring rectangles.Antonio Calabrese2014-06-172-37/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I5a2678fa989f0ff34404b8236787a8153b05f113 bug:14322352