summaryrefslogtreecommitdiffstats
path: root/graphics
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge "A bunch more cleanups" into mnc-devJohn Reck2015-05-012-7/+2
|\ \ \ | |/ / |/| |
| * | A bunch more cleanupsJohn Reck2015-04-302-7/+2
| | | | | | | | | | | | | | | | | | | | | | | | Switch a few places to using android::canvas instead of SkCanvas as well which eliminated some JNI Change-Id: I8f98b56442a06362b82b984cd1bd3a92398d8dbc
* | | Merge "Change how Java Bitmaps are accessed in a few places" into mnc-devJohn Reck2015-04-301-2/+2
|\ \ \ | |/ / | | / | |/ |/|
| * Change how Java Bitmaps are accessed in a few placesJohn Reck2015-04-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Stop assuming that a Java Bitmap has a SkBitmap* that has some externally managed lifecycle, and instead switch a bunch of users to accessing the bitmap by providing their own SkBitmap* on which to set the (ref counted!) SkPixelRef* instead Attempt #2 to land this, original issue was in getSkBitmap and should be fixed Change-Id: I0fd9e193968b41e5597784140d56b4885906864a
* | Don't propagate level or RTL in LayerDrawable.setDrawable()Alan Viverette2015-04-291-2/+0
|/ | | | | | | | The developer used to be responsible for this and automatically propagating the values breaks some use cases (ex. in Camera). Bug: 20696311 Change-Id: Ia8ddc132c6d629bcc27d66f654baf30d9f078568
* Merge "Use default constructor to get anti-aliasing" into mnc-devChris Craik2015-04-282-5/+5
|\
| * Use default constructor to get anti-aliasingChris Craik2015-04-282-5/+5
| | | | | | | | Change-Id: I3e078a3bc91a2fd703984ba18b5e7e98069b32f1
* | Layout layers without intrinsic dimensions using FILL gravityAlan Viverette2015-04-281-2/+15
|/ | | | | | | | | Addresses a regression in Calendar where a custom drawable that doesn't implement intrinsic bounds is laid out incorrectly. Also fixes an issue where ColorDrawable would be laid out incorrectly. Bug: 20643614 Change-Id: I796f0d3e189e482cf6fa169a5dd13f654d72653c
* Expose drawTextRun publiclyRaph Levien2015-04-272-30/+44
| | | | | | | | | | | | | | For correct low-level drawing of low level text, a method that includes context for shaping is necessary, and it's similarly useful to provide the direction explicitly rather than running the BiDi algorithm on the text. The drawTextRun method (in both char[] and CharSequence variants) has provided this functionality for several major releases but has been internal. This patch exposes the methods publicly, and also improves the doc strings for both the new method and some related ones. Bug: 20193553 Change-Id: I9be33ca5ae3e7db2b69a56298400671d5ef8ad05
* Anti-alias by defaultChris Craik2015-04-271-7/+13
| | | | Change-Id: I19434717dd3af4fdcffbfcca2ffbb485dfebe644
* Merge "Fix the build: Revert "Anti-alias by default""Ed Heyl2015-04-241-10/+6
|\
| * Fix the build: Revert "Anti-alias by default"Ed Heyl2015-04-241-10/+6
| | | | | | | | | | | | This reverts commit d34b7329935a6f9ffdc9a40c01f7b558e07830d4. Change-Id: I74e63570ce868e6d8c36fd2e1c864419bd6102e4
* | media: add flexible YUV422, 444, and RGB/RGBA formatsLajos Molnar2015-04-231-1/+142
| | | | | | | | | | | | These are used by Media.Image on getOutputImage. Change-Id: I171c5b90423800eeab4e36625dcf727a2a2affcd
* | Merge "Anti-alias by default"Chris Craik2015-04-231-6/+10
|\ \ | |/
| * Anti-alias by defaultChris Craik2015-04-131-6/+10
| | | | | | | | Change-Id: I4d29cae73b05b7ffa03212acdbb13d7b0cf8f905
* | Merge "Add annotation to Rect.intersect()"Chet Haase2015-04-231-0/+4
|\ \
| * | Add annotation to Rect.intersect()Chet Haase2015-04-221-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Failing to check the return result from intersect() can cause artifacts because the developer may assume that the rect has been changed to the intersection. In particular, when the two rects do not overlap, there is no change made to the source rect. Instead, the method simply returns false. When developers do not check that return value, they may use the source rect and get undefined results. This change adds the @CheckResults annotation that will cause a Lint warning when developers call this method without checking the return value. Change-Id: I476367d74e712038c248c2379fb124734298fcc1
* | | Merge "Fix visual styling for Material Spinner background"Alan Viverette2015-04-222-21/+271
|\ \ \
| * | | Fix visual styling for Material Spinner backgroundAlan Viverette2015-04-212-21/+271
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds explicit padding attributes to LayerDrawable, constrains the ripple to fit within the container to avoid projection. Bug: 19359934 Bug: 20083467 Change-Id: I46da941fba37552adeb2c1fe617b799f576df0c6
* | | | GraphicsJNI Canvas cleanupJohn Reck2015-04-221-18/+6
|/ / / | | | | | | | | | Change-Id: I72e142986a8bc9f464c1951b6b5187919de3462e
* | | Merge "Add Paint methods for cursor positioning"Raph Levien2015-04-201-0/+168
|\ \ \
| * | | Add Paint methods for cursor positioningRaph Levien2015-04-141-0/+168
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds methods to Paint for finding an offset corresponding to an advance, and for finding the advance corresponding to an offset, useful for positioning and drawing a cursor. Change-Id: Id57402ddd1980650f1d0d2f8bbdb75e43612ec51
* | | | Merge "Revert "Change how Java Bitmaps are accessed in a few places""John Reck2015-04-201-2/+2
|\ \ \ \
| * | | | Revert "Change how Java Bitmaps are accessed in a few places"John Reck2015-04-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 20207616 This reverts commit a771b9861d11671c780092d35c0062eeefcf37c0. Change-Id: Ifd891cc075274a7986e987229e0fed5a04ed9ff0
* | | | | Revert "A bunch more cleanups"John Reck2015-04-172-8/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit c294d128d03bc9a9982b273a82516c04583438cc. Change-Id: Id1ebb236950f7c36c6d86e1dd95566d3a200748d
* | | | | Revert "Move AssetAtlas off of SkBitmap*"John Reck2015-04-171-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 87ffb63d90fb6dd2689fe72dcb24fda9a6156220. Change-Id: I92adfcee454a0a19020cdd9e96a134be0ee529aa
* | | | | Merge "Revert "Remove Bitmap#getSkBitmap""John Reck2015-04-173-17/+22
|\ \ \ \ \
| * | | | | Revert "Remove Bitmap#getSkBitmap"John Reck2015-04-173-17/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 4bd981ec533a65e8dee053a0a709b484770b0a76. Change-Id: I5c92cd955c6e70e197dc5cbc5dfeed8369a24a31
* | | | | | Merge "Move date picker arrows out of SimpleMonthView"Alan Viverette2015-04-171-1/+1
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Move date picker arrows out of SimpleMonthViewAlan Viverette2015-04-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also fixes incorrect docs in Drawable. Bug: 20188255 Change-Id: I01c8563f734d9c1dad1e149bee80c651981e469f
* | | | | | Remove Bitmap#getSkBitmapJohn Reck2015-04-153-22/+17
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ifb9047b426122d3e5a445eb7a0eb3fce38dedf27
* | | | | | Move AssetAtlas off of SkBitmap*John Reck2015-04-151-0/+10
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | Switched to SkPixelRef* Change-Id: I4a1d9dc6c55c1ebcce6b0b8c585e69559e523898
* | | | | A bunch more cleanupsJohn Reck2015-04-142-21/+8
| |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Switch a few places to using android::canvas instead of SkCanvas as well which eliminated some JNI Change-Id: I8f98b56442a06362b82b984cd1bd3a92398d8dbc
* | | | Merge "Allow null layers in LayerDrawable"Alan Viverette2015-04-131-61/+166
|\ \ \ \
| * | | | Allow null layers in LayerDrawableAlan Viverette2015-04-131-61/+166
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 20098214 Change-Id: I80285ddda7101ab7403048d38f9c40af6b692a1a
* | | | | Merge "Change how Java Bitmaps are accessed in a few places"John Reck2015-04-131-2/+2
|\ \ \ \ \ | |/ / / / |/| / / / | |/ / /
| * | | Change how Java Bitmaps are accessed in a few placesJohn Reck2015-04-131-2/+2
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | Stop assuming that a Java Bitmap has a SkBitmap* that has some externally managed lifecycle, and instead switch a bunch of users to accessing the bitmap by providing their own SkBitmap* on which to set the (ref counted!) SkPixelRef* instead Change-Id: I0fd9e193968b41e5597784140d56b4885906864a
* | | Merge "Don't change state when inflating LayerDrawable"Alan Viverette2015-04-101-2/+0
|\ \ \
| * | | Don't change state when inflating LayerDrawableAlan Viverette2015-04-091-2/+0
| |/ / | | | | | | | | | | | | Bug: 20098214 Change-Id: I6968697053587454bba42c0652efd99b9c8a8e25
* | | Only parse LayerDrawable child items when necessaryAlan Viverette2015-04-091-1/+5
|/ / | | | | | | | | Bug: 20098214 Change-Id: Ie9da5f6e494ede47f9fdc94481a3f8ca41d3ef00
* | Merge "Fix path clipping in VectorDrawable"Chris Craik2015-04-061-1/+1
|\ \ | |/ |/|
| * Fix path clipping in VectorDrawableChris Craik2015-04-061-1/+1
| | | | | | | | | | | | bug:19946683 Change-Id: I773957df7459eb72ea5d505afb0daac08239ecbf
* | Merge "Add group scaling factor into stroke width."ztenghui2015-04-031-2/+39
|\ \
| * | Add group scaling factor into stroke width.ztenghui2015-04-021-2/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | Originally, stroke width is independent of group scaling. But that is a bug and causing animation trouble. b/19501782 Change-Id: I33d5e44f2f8b2a82fee1a5a326223a39aaffa86c
* | | Merge "Add Paint.hasGlyph method"Raph Levien2015-04-021-0/+22
|\ \ \
| * | | Add Paint.hasGlyph methodRaph Levien2015-04-021-0/+22
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a method to determine whether a typeface has a glyph to support a particular Unicode character or sequence. The implementation is based on shaping the text and checking for the presence of .notdef glyphs, and counting the number of glyphs in the ligature case. In the case of variation selector control characters, it currently just returns false because there is no variation selector support yet (Mongolian Free Variation Selectors work because they're shaped with GSUB instead). Change-Id: I8ee4ae0d6e81a0ac57f961eb02dcc35aabd87042
* | | Merge "Add compat path for restore underflow"Chris Craik2015-04-021-4/+9
|\ \ \
| * | | Add compat path for restore underflowChris Craik2015-04-021-4/+9
| |/ / | | | | | | | | | | | | | | | bug:19829784 Change-Id: Ia761664208ab80c055ca11174db3ddc74457b92b
* | | am 428c2fa0: am c3fbf13d: am e2fc3adb: am 61ce6c9b: am 776cf41d: Fix a ↵Yuichi Araki2015-04-021-3/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | broken link in javadoc * commit '428c2fa0f8b3c49e8bd48458c15363fcd98e8944': Fix a broken link in javadoc
| * \ \ am e2fc3adb: am 61ce6c9b: am 776cf41d: Fix a broken link in javadocYuichi Araki2015-04-021-3/+3
| |\ \ \ | | | | | | | | | | | | | | | | | | | | * commit 'e2fc3adbb4040400496aebdab80c4cac1083da27': Fix a broken link in javadoc