summaryrefslogtreecommitdiffstats
path: root/graphics/java
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Fix blur intrinsic creation." into jb-mr2-devTim Murray2013-04-013-3/+3
|\
| * Fix blur intrinsic creation.Tim Murray2013-04-013-3/+3
| | | | | | | | Change-Id: Iaf54c7395d447eec94d8b6c12986fa8d16c030f5
* | Merge "bidiFlags != SkPaint::Flags" into jb-mr2-devVictoria Lease2013-03-291-25/+25
|\ \
| * | bidiFlags != SkPaint::FlagsVictoria Lease2013-03-281-25/+25
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We've a number of native functions in the text layout path that take a bidiFlags argument. We've a number of callers of those functions passing in SkPaint::Flags in that slot. This completely breaks text directionality for the affected functions, as SkPaint::kAntiAlias_Flag happens to share values with kBidi_RTL, resulting in anti-aliased SkPaints measuring text as if it were RTL, and non-anti-aliased SkPaints measuring text as if it were LTR, regardless of the actual text directionality. Oops! To address the issue, this commit replaces erroneous calls to SkPaint.getFlags() with the value of Paint.mBidiFlags, and includes the necessary plumbing to get that value where it needs to be. Bug: 8471481 Change-Id: I2d04b70defed3130fc1ad13f4c9098f5fce4ffde
* | am a25c43f5: am 3121868c: am 38e94e9f: am 4d0beb7e: am 4f414b79: Doc update: ↵kmccormick2013-03-281-1/+1
|\ \ | |/ |/| | | | | | | | | fix incorrect enum * commit 'a25c43f5545c7d9b7e94f2bb10d64ed7d7302b49': Doc update: fix incorrect enum
| * am 3121868c: am 38e94e9f: am 4d0beb7e: am 4f414b79: Doc update: fix ↵kmccormick2013-03-281-1/+1
| |\ | | | | | | | | | | | | | | | | | | incorrect enum * commit '3121868cb860eb47182fcbae5d55667af51afb5a': Doc update: fix incorrect enum
| | * Doc update: fix incorrect enumkmccormick2013-03-281-1/+1
| | | | | | | | | | | | | | | | | | "Bug: 4980236" Change-Id: I39f8f429574a9916c5fffc5b2e4ec4715ec48803
| | * am 1a5bec01: Merge "Doc fix: update BitmapFactory.Options.inSampleSize ↵Adam Koch2013-03-051-3/+2
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | javadoc Bug: 8250653" into jb-mr1-dev * commit '1a5bec0127ca4584008a1ab9e1ce49e671f8387c': Doc fix: update BitmapFactory.Options.inSampleSize javadoc Bug: 8250653
* | | \ Merge "Revert "Remove all public mention of RS graphics from docs."" into ↵Tim Murray2013-03-2714-28/+89
|\ \ \ \ | | | | | | | | | | | | | | | jb-mr2-dev
| * | | | Revert "Remove all public mention of RS graphics from docs."Tim Murray2013-03-2714-28/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit d72f932b8cbf461ebb79c249ce92b9b811122190 Change-Id: I056b13d0b2beb508e4215bc0d289cf3e76a3a986
* | | | | Merge "Remove all public mention of RS graphics from docs." into jb-mr2-devTim Murray2013-03-2714-89/+28
|\ \ \ \ \ | |/ / / /
| * | | | Remove all public mention of RS graphics from docs.Tim Murray2013-03-2514-89/+28
| | | | | | | | | | | | | | | | | | | | Change-Id: I50b29c89ae80ba3ae7b12dc60fee8585e17ed560
* | | | | Add yuv getJason Sams2013-03-261-0/+10
|/ / / / | | | | | | | | | | | | Change-Id: I6df5c0a8129283c0ad600b232790da10c395b479
* | | | Merge "Manage drawable invalidation automatically for Overlays" into jb-mr2-devChet Haase2013-03-201-0/+4
|\ \ \ \
| * | | | Manage drawable invalidation automatically for OverlaysChet Haase2013-03-201-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Drawables added to a view's Overlay will now cause the Overlay to be invalidated via the normal drawable-invalidation mechanism. That is, changes to any of the drawables in the overlay should cause invalidation of the proper area of the overlay and thus the hostView, causing the appropriate area to be redrawn. Also, fixed a bug in drawable invalidation so that bounds changes will now correctly invalidate both the old and new bounds areas. Issue #8350510 Add APIs needed for future animation capabilities Change-Id: Icae5fa0e420232ee17dc39be10084345bae8dbd8
* | | | | Fix bug #8437358 Clean any ICU related code from TextLayout / Paint and ↵Fabrice Di Meglio2013-03-201-86/+9
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | their dependencies - remove the ICU related methods and update the methods using the "reserved" argument - update to CTS in another CL too Change-Id: I5509736568c342d9d17bfeafc17951117ab5d3cc
* | | | Merge "Fix errors in Canvas.EdgeType docs" into jb-mr2-devChet Haase2013-03-151-9/+18
|\ \ \ \
| * | | | Fix errors in Canvas.EdgeType docsChet Haase2013-03-151-9/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #7722363 Fix Canvas EdgeType docs Change-Id: I2908ff22879eb5996da73a37dae1a4cabf82fffb
* | | | | Revert "Clean Paint.mBidiFlags as it is no longer used"Fabrice Di Meglio2013-03-152-49/+305
| | | | | | | | | | | | | | | | | | | | This reverts commit 6d9fe5bd22b531bfce69b146254a4791c76acddc.
* | | | | Revert "fix argument mismatches in Paint JNI"Fabrice Di Meglio2013-03-151-1/+1
|/ / / / | | | | | | | | | | | | This reverts commit b61fb10fe435b74a761e82f517abd0320f22193e.
* | | | Fix typoJason Sams2013-03-081-1/+1
| | | | | | | | | | | | | | | | Change-Id: I4e4d3aec62d1400f90a10802148ef875b5a268ef
* | | | am cc3fec69: am 0c8dfd7d: am 1061c578: am 095aa4b6: am 1a5bec01: Merge "Doc ↵Adam Koch2013-03-051-3/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | fix: update BitmapFactory.Options.inSampleSize javadoc Bug: 8250653" into jb-mr1-dev * commit 'cc3fec699d9fdf57a080106e6ca7b3ae845f1446': Doc fix: update BitmapFactory.Options.inSampleSize javadoc Bug: 8250653
| * | | am 0c8dfd7d: am 1061c578: am 095aa4b6: am 1a5bec01: Merge "Doc fix: update ↵Adam Koch2013-03-051-3/+2
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BitmapFactory.Options.inSampleSize javadoc Bug: 8250653" into jb-mr1-dev * commit '0c8dfd7d281d037df3d427ccb6bf4642b2617a63': Doc fix: update BitmapFactory.Options.inSampleSize javadoc Bug: 8250653
| | * \ \ am 1a5bec01: Merge "Doc fix: update BitmapFactory.Options.inSampleSize ↵Adam Koch2013-03-051-3/+2
| | |\ \ \ | | | |/ / | | |/| / | | | |/ | | | | | | | | | | | | javadoc Bug: 8250653" into jb-mr1-dev * commit '1a5bec0127ca4584008a1ab9e1ce49e671f8387c': Doc fix: update BitmapFactory.Options.inSampleSize javadoc Bug: 8250653
| | | * Doc fix: update BitmapFactory.Options.inSampleSize javadocAdam Koch2013-02-221-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 8250653 Change-Id: I7187372ab3c742b9395d119a7425f60f071dbb4e
* | | | Merge "Never resize a Bitmap down to 0 at load time Bug #8313929" into ↵Romain Guy2013-03-051-2/+3
|\ \ \ \ | | | | | | | | | | | | | | | jb-mr2-dev
| * | | | Never resize a Bitmap down to 0 at load timeRomain Guy2013-03-041-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug #8313929 Change-Id: Ic9b691319f162228c72ad1afed4dfe0b4181c422
* | | | | Merge "Document that degenerate lines wont be drawn" into jb-mr2-devChris Craik2013-03-041-2/+5
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Document that degenerate lines wont be drawnChris Craik2013-03-041-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug:7658830 Skia and the HW acceleration path don't render anything for degenerate lines. Change-Id: I5ea6fe8f16533e5045a7cd10475f4240f6c311b6
* | | | | Deprecate read/write Pictures to streams.Derek Sollenberger2013-03-042-18/+42
|/ / / / | | | | | | | | | | | | | | | | bug: 8241089 Change-Id: I435a534f5110cb2b8aba87c047b509020a22fd67
* | | | Merge "Avoid trying to draw invisible ShapeDrawables" into jb-mr2-devChris Craik2013-03-011-9/+12
|\ \ \ \
| * | | | Avoid trying to draw invisible ShapeDrawablesChris Craik2013-02-281-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids work when a drawable is declared with @android:color/transparent Change-Id: I1b6d3b22751e378be047a5538dfd4d4baab3c03a
* | | | | Add support and better exceptions for Bitmaps with a null config.Tim Murray2013-02-281-0/+29
|/ / / / | | | | | | | | | | | | | | | | Bug: 8263427 Change-Id: I4181402e4739c6a40591f1e1416fca98643ecc57
* | | | round subpixels up to next integer in measureText DO NOT MERGEVictoria Lease2013-02-271-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A common source of layout bugs we're seeing these days involves the output of measureText() being fed into StaticLayout's constructor. measureText() returns subpixel-accurate values, but StaticLayout only takes integral bounds, resulting in the subpixel portion of the bounds being truncated. This leaves StaticLayout with insufficient space to layout the text that was just measured, causing all manner of unexpected line breaks. This could be causing issues elsewhere, as well. Until our text pipeline is fully subpixel-perfect, it's best that measureText guarantee that the value it returns will be sufficient to contain the text, even if cast to int. Cherry-pick of Ib84947f0d0a1229287f5b19b99e7efd40f5317f7 Bug: 8164205 Change-Id: I69795ba5770112c0a3d0e752158076a8d1646b1a
* | | | add support for debug and profile contexts.Jason Sams2013-02-221-6/+35
| | | | | | | | | | | | | | | | Change-Id: I759e54e365a344a93d725eb4fa70a2c4c98bf05a
* | | | Merge "Fix build break."Jason Sams2013-02-221-0/+7
|\ \ \ \
| * | | | Fix build break.Jason Sams2013-02-221-0/+7
| | | | | | | | | | | | | | | | | | | | Change-Id: I362c96787482bc8daee7dd4a01817ab7ed79b730
* | | | | Merge "Implement USAGE_IO_INPUT"Jason Sams2013-02-222-40/+7
|\ \ \ \ \ | |/ / / /
| * | | | Implement USAGE_IO_INPUTJason Sams2013-02-222-40/+7
| | | | | | | | | | | | | | | | | | | | Change-Id: Id5b9e3d0a17e4df15eec36d542fde6dc626138b2
* | | | | Fix use case where the Java Canvas is reused.Derek Sollenberger2013-02-211-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When provided with a new bitmap device the canvas will retain certain information such as it's matrix and clip. bug: 8167188 Change-Id: I20ac8a24eebc85fb7c147504a103ce9a95b530b3
* | | | | am 8a47d8ea: Merge "Clean up clipping and deferral logic"Chris Craik2013-02-201-2/+2
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * commit '8a47d8eaec26d0937aee94a057f561f246748339': Clean up clipping and deferral logic
| * | | | Clean up clipping and deferral logicChris Craik2013-02-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug:8037003 -Merges replay methods -Bounds checking for DrawBitmapMesh, DrawRects and DrawDisplayList -Use clip as bounds for otherwise unbounded draw operations Clip-as-bounds is correct for drawColor and functor, but other draw operations (pos text, text on path, and layers) still need true bounds calculation Change-Id: I5d5149d2c624f01e3fe46628bf156e835e69b9d5
* | | | | am 840b5069: Merge "Support typed YUV allocations."Jason Sams2013-02-152-3/+4
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * commit '840b5069707c6f39ec06231dacbcbe8159d581c1': Support typed YUV allocations.
| * | | | Merge "Support typed YUV allocations."Jason Sams2013-02-162-3/+4
| |\ \ \ \
| | * | | | Support typed YUV allocations.Jason Sams2013-02-152-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I56e7a318dc979f0b7454fcfa5773ea6d95bbaeaa
* | | | | | am ab7a2919: Merge "Add MIRRORED_REPEAT."Tim Murray2013-02-152-8/+71
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | * commit 'ab7a2919a321af21b234d8db14748624c1b13634': Add MIRRORED_REPEAT.
| * | | | | Merge "Add MIRRORED_REPEAT."Tim Murray2013-02-162-8/+71
| |\ \ \ \ \ | | |/ / / / | |/| | | |
| | * | | | Add MIRRORED_REPEAT.Tim Murray2013-02-152-8/+71
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I7565da24912a3c33d8f824da9ea0899a423d3c40
* | | | | | am c69bce2e: Merge "fix argument mismatches in Paint JNI"Victoria Lease2013-02-141-1/+1
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | # Via Android (Google) Code Review (1) and Victoria Lease (1) * commit 'c69bce2e41c70da35e1b6a2ab5ec44469ab14c80': fix argument mismatches in Paint JNI
| * | | | | fix argument mismatches in Paint JNIVictoria Lease2013-02-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Paint.getTextRunCursor() no longer has a "flags" argument on the Java side. The native side, however, still had the argument, and was being called with misaligned arguments, causing all manner of madcap fun. Also, the version of Paint.getTextRunCursor() that took String as an argument needed to lose the "flags" argument, as well, to prevent an infinite loop in the CharSequence version of the function, which was supposed to be calling the String version but was actually calling itself. Bug: 8201224 Change-Id: Iad0dabaf81185f29a082566cc64590f2ba9bc31c