1171 Commits

Author SHA1 Message Date
Tim Murray
869d273503 Merge "Fix issues with GC thread." into jb-mr2-dev 2013-04-12 07:04:08 +00:00
Tim Murray
6dacf8355a Fix issues with GC thread.
bug 8600533

Change-Id: I356902ee9897daeb2c1090815beeb572234c81e7
2013-04-11 22:04:26 -07:00
Jason Sams
c876cc4994 Fix docs typo in YUV code
bug 8566866

Change-Id: I9da6d237b0a109b2c0799a41e531a0344cc19d40
2013-04-11 20:22:31 -07:00
Jason Sams
a2f289a40d Merge "USAGE_IO_INPUT buffer notifications" into jb-mr2-dev 2013-04-12 02:20:11 +00:00
Jason Sams
739c8263a1 USAGE_IO_INPUT buffer notifications
Change-Id: I6ec0508089029da9ed118127f0c13b7b189ef5e9
2013-04-11 18:14:26 -07:00
Fabrice Di Meglio
f5c757c629 Merge "More fix for bug #8159072 Spinner widget should be RTL'ized" into jb-mr2-dev 2013-04-12 01:03:33 +00:00
Fabrice Di Meglio
dc25d25333 More fix for bug #8159072 Spinner widget should be RTL'ized
- fix DrawableContainerState.getChangingConfigurations() to take care about its children
- make Resources.verifyPreloadConfig() return false when the changing configuration
contains layout direction bits (this is when a Drawable is having different version
for LTR and RTL layout directions)
- use constant state instead of the resource type value for checking if we can
preload the drawable
- fix typo

Change-Id: Idd64caf0fbe0f5cfd5ffe09343e84bafa9446ea5
2013-04-11 13:38:57 -07:00
Tim Murray
3eba934a27 Merge "Clean up USAGE_SHARED and add syncing for USAGE_SHARED." into jb-mr2-dev 2013-04-11 04:50:32 +00:00
Tim Murray
a8aa6880e4 Merge "Add GC thread to RSGL." into jb-mr2-dev 2013-04-10 18:37:35 +00:00
Tim Murray
fb32993a45 Add GC thread to RSGL.
bug 8585185

Change-Id: I06df29c3be831d6cd53fa8913ba3731f29c137d1
2013-04-10 11:23:24 -07:00
Stephen Hines
7d25a829d3 Defer RS cache creation until a ScriptC is built.
Bug: 8582926
Change-Id: If017f41382f023f8f6ddd78ba198402d427c95f8
2013-04-10 01:20:47 -07:00
Jason Sams
60799fb74b Fix docs with deprecated resize1D
Change-Id: Id1774e1e8be1c1600efaa535cf330e659addb703
2013-04-09 22:08:40 -07:00
Jason Sams
07c6fa123d Merge "Implement RS GC worker thread." into jb-mr2-dev 2013-04-10 04:21:01 +00:00
Tim Murray
78e6494560 Clean up USAGE_SHARED and add syncing for USAGE_SHARED.
bug 8567006

Change-Id: Ie9c01eeccdd3fa0a81893314dfbce7c012d3f7d3
2013-04-09 17:47:57 -07:00
Tim Murray
f8c033db1e Implement RS GC worker thread.
Bug 8579360

Change-Id: I98a5509b68e592bcbb4958f2ca72c236a22910b5
2013-04-09 16:01:23 -07:00
Jason Sams
b05d689653 Cleanup Allocation and add 3D copies.
bug 8567058

Change-Id: Ib05ff3de851bccfea1531ca6c1801153632a2a85
2013-04-09 15:59:24 -07:00
Tim Murray
a90842283e Remove all public mention of RS graphics from docs.
Change-Id: Ie43b5fb0353149aa9af433b6f5c5141349388ea0
2013-04-05 15:17:54 -07:00
Tim Murray
4134ce3386 Merge "Fix blur intrinsic creation." into jb-mr2-dev 2013-04-01 20:27:28 +00:00
Tim Murray
bddc7ffb52 Fix blur intrinsic creation.
Change-Id: Iaf54c7395d447eec94d8b6c12986fa8d16c030f5
2013-04-01 12:47:38 -07:00
Victoria Lease
a4b68908bd Merge "bidiFlags != SkPaint::Flags" into jb-mr2-dev 2013-03-29 15:00:50 +00:00
kmccormick
af7c60be4d am a25c43f5: am 3121868c: am 38e94e9f: am 4d0beb7e: am 4f414b79: Doc update: fix incorrect enum
* commit 'a25c43f5545c7d9b7e94f2bb10d64ed7d7302b49':
  Doc update: fix incorrect enum
2013-03-28 16:27:23 -07:00
kmccormick
a25c43f554 am 3121868c: am 38e94e9f: am 4d0beb7e: am 4f414b79: Doc update: fix incorrect enum
* commit '3121868cb860eb47182fcbae5d55667af51afb5a':
  Doc update: fix incorrect enum
2013-03-28 16:24:25 -07:00
kmccormick
4f414b7949 Doc update: fix incorrect enum
"Bug: 4980236"

Change-Id: I39f8f429574a9916c5fffc5b2e4ec4715ec48803
2013-03-28 16:14:08 -07:00
Victoria Lease
626d3c2281 bidiFlags != SkPaint::Flags
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
2013-03-28 15:56:14 -07:00
Tim Murray
8ff0201ad0 Merge "Revert "Remove all public mention of RS graphics from docs."" into jb-mr2-dev 2013-03-27 21:32:31 +00:00
Tim Murray
275812c2bb Revert "Remove all public mention of RS graphics from docs."
This reverts commit d72f932b8cbf461ebb79c249ce92b9b811122190

Change-Id: I056b13d0b2beb508e4215bc0d289cf3e76a3a986
2013-03-27 21:31:28 +00:00
Tim Murray
8565520b85 Merge "Remove all public mention of RS graphics from docs." into jb-mr2-dev 2013-03-27 21:01:37 +00:00
Jason Sams
5a722cf8b2 Add yuv get
Change-Id: I6df5c0a8129283c0ad600b232790da10c395b479
2013-03-26 13:27:37 -07:00
Tim Murray
d72f932b8c Remove all public mention of RS graphics from docs.
Change-Id: I50b29c89ae80ba3ae7b12dc60fee8585e17ed560
2013-03-25 18:22:20 -07:00
Chet Haase
10c4d99f04 Merge "Manage drawable invalidation automatically for Overlays" into jb-mr2-dev 2013-03-20 23:30:53 +00:00
Chet Haase
633326e29f Manage drawable invalidation automatically for Overlays
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
2013-03-20 16:23:33 -07:00
Fabrice Di Meglio
665f02c667 Fix bug #8437358 Clean any ICU related code from TextLayout / Paint and 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
2013-03-20 14:56:05 -07:00
Chet Haase
e8918c57bd Merge "Fix errors in Canvas.EdgeType docs" into jb-mr2-dev 2013-03-15 21:29:09 +00:00
Chet Haase
d320001807 Fix errors in Canvas.EdgeType docs
Issue #7722363 Fix Canvas EdgeType docs

Change-Id: I2908ff22879eb5996da73a37dae1a4cabf82fffb
2013-03-15 14:25:54 -07:00
Fabrice Di Meglio
da12f389eb Revert "Clean Paint.mBidiFlags as it is no longer used"
This reverts commit 6d9fe5bd22b531bfce69b146254a4791c76acddc.
2013-03-15 11:26:56 -07:00
Fabrice Di Meglio
a4bf8114a7 Revert "fix argument mismatches in Paint JNI"
This reverts commit b61fb10fe435b74a761e82f517abd0320f22193e.
2013-03-15 11:22:29 -07:00
Jason Sams
1e645d2925 Fix typo
Change-Id: I4e4d3aec62d1400f90a10802148ef875b5a268ef
2013-03-08 14:32:43 -08:00
Adam Koch
25a3b1ddeb am cc3fec69: am 0c8dfd7d: am 1061c578: am 095aa4b6: am 1a5bec01: Merge "Doc fix: update BitmapFactory.Options.inSampleSize javadoc Bug: 8250653" into jb-mr1-dev
* commit 'cc3fec699d9fdf57a080106e6ca7b3ae845f1446':
  Doc fix: update BitmapFactory.Options.inSampleSize javadoc Bug: 8250653
2013-03-05 14:38:30 +00:00
Adam Koch
e43d5714fc am 1a5bec01: Merge "Doc fix: update BitmapFactory.Options.inSampleSize javadoc Bug: 8250653" into jb-mr1-dev
* commit '1a5bec0127ca4584008a1ab9e1ce49e671f8387c':
  Doc fix: update BitmapFactory.Options.inSampleSize javadoc Bug: 8250653
2013-03-05 06:37:48 -08:00
Adam Koch
cc3fec699d am 0c8dfd7d: am 1061c578: am 095aa4b6: am 1a5bec01: Merge "Doc fix: update BitmapFactory.Options.inSampleSize javadoc Bug: 8250653" into jb-mr1-dev
* commit '0c8dfd7d281d037df3d427ccb6bf4642b2617a63':
  Doc fix: update BitmapFactory.Options.inSampleSize javadoc Bug: 8250653
2013-03-05 06:36:31 -08:00
Adam Koch
095aa4b611 am 1a5bec01: Merge "Doc fix: update BitmapFactory.Options.inSampleSize javadoc Bug: 8250653" into jb-mr1-dev
* commit '1a5bec0127ca4584008a1ab9e1ce49e671f8387c':
  Doc fix: update BitmapFactory.Options.inSampleSize javadoc Bug: 8250653
2013-03-05 06:30:03 -08:00
Romain Guy
836f93dc5f Merge "Never resize a Bitmap down to 0 at load time Bug #8313929" into jb-mr2-dev 2013-03-05 01:57:26 +00:00
Romain Guy
fe28ef84f2 Never resize a Bitmap down to 0 at load time
Bug #8313929

Change-Id: Ic9b691319f162228c72ad1afed4dfe0b4181c422
2013-03-04 17:55:55 -08:00
Chris Craik
3e7dbf5373 Merge "Document that degenerate lines wont be drawn" into jb-mr2-dev 2013-03-04 18:58:19 +00:00
Chris Craik
a5ef27da95 Document that degenerate lines wont be drawn
bug:7658830

Skia and the HW acceleration path don't render anything for degenerate
lines.

Change-Id: I5ea6fe8f16533e5045a7cd10475f4240f6c311b6
2013-03-04 10:41:55 -08:00
Derek Sollenberger
cdac497289 Deprecate read/write Pictures to streams.
bug: 8241089
Change-Id: I435a534f5110cb2b8aba87c047b509020a22fd67
2013-03-04 10:10:15 -05:00
Chris Craik
cccd6c67db Merge "Avoid trying to draw invisible ShapeDrawables" into jb-mr2-dev 2013-03-01 01:16:44 +00:00
Chris Craik
f0e0678460 Avoid trying to draw invisible ShapeDrawables
This avoids work when a drawable is declared with @android:color/transparent

Change-Id: I1b6d3b22751e378be047a5538dfd4d4baab3c03a
2013-02-28 17:05:12 -08:00
Tim Murray
abd5db9d37 Add support and better exceptions for Bitmaps with a null config.
Bug: 8263427
Change-Id: I4181402e4739c6a40591f1e1416fca98643ecc57
2013-02-28 14:33:01 -08:00
Victoria Lease
8e04840f38 round subpixels up to next integer in measureText DO NOT MERGE
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
2013-02-27 11:38:05 -08:00