3845 Commits

Author SHA1 Message Date
Jamie Gennis
8606fefa21 SurfaceTexture: parameterize the texture target
This change adds a hack to allow Android Browser to use a SurfaceTexture
to stream RGBA images to a GL_TEXTURE_2D texture object.

Change-Id: Idb90064d5d4b920959ef3be7451362ac5012460e
2011-09-30 14:19:41 -07:00
Romain Guy
c4204da3fc am 638f17c1: Merge "TextureView works best when it draws stuff. Bug #5391188"
* commit '638f17c1b72ac226569dc08e2232adaf97349095':
  TextureView works best when it draws stuff. Bug #5391188
2011-09-29 17:25:27 -07:00
Romain Guy
59c7f80dd2 TextureView works best when it draws stuff.
Bug #5391188

Change-Id: I5e754881ccb08ff288ebd60de77282c9cbcf3f86
2011-09-29 17:21:45 -07:00
Mathias Agopian
2757a63170 am 3c199016: Merge "may fix the build"
* commit '3c1990167450b77bfdae9e99c312ed241bc672df':
  may fix the build
2011-09-28 17:36:24 -07:00
Mathias Agopian
acde31e124 may fix the build
Change-Id: I065b1e6652f0e800ba5674a6d9aa954c3ac6c790
2011-09-28 17:33:11 -07:00
Alex Sakhartchouk
f6576d9631 Wrapping new API with #defines to prevent old apps from using them.
Change-Id: Ib3a2d19544ad72987ebec09d465bec8eeb6423c8
2011-09-28 15:23:18 -07:00
Jamie Gennis
bc04810c92 am feb158b3: Merge changes Ib302d79e,Ib4ee085f
* commit 'feb158b3cbd0dada89b0437c3e09699ba3f982de':
  SurfaceFlinger: set layer names on SurfaceTextures
  SurfaceTexture: add name support
2011-09-27 14:25:57 -07:00
Jamie Gennis
feb158b3cb Merge changes Ib302d79e,Ib4ee085f
* changes:
  SurfaceFlinger: set layer names on SurfaceTextures
  SurfaceTexture: add name support
2011-09-27 14:24:09 -07:00
Mathias Agopian
0c3541a614 am 6098a216: Merge "Region cannot handle malformed Rects. Abort the Region op in that case."
* commit '6098a2162a9dc0c315c2b524d1643c0e16daa940':
  Region cannot handle malformed Rects. Abort the Region op in that case.
2011-09-26 19:17:42 -07:00
Mathias Agopian
0ee06d116b Region cannot handle malformed Rects. Abort the Region op in that case.
Bug: 5331198, 5334829
Change-Id: Ib1fdbf6fb291e7f1191ccfe16b5ff29d73e7a474
2011-09-26 15:58:20 -07:00
Jason Sams
dca3baebf2 am d1a2f36b: Merge "Remove unused fields in ProgramRaster"
* commit 'd1a2f36b834534f422a17fc2324f5af839f29862':
  Remove unused fields in ProgramRaster
2011-09-26 11:58:45 -07:00
Bart Sears
33940a594d am c52feae9: Merge "Revert "Transfer large bitmaps using ashmem. Bug: 5224703""
* commit 'c52feae9482e18f48ae1c8f9910d51c00e36f074':
  Revert "Transfer large bitmaps using ashmem. Bug: 5224703"
2011-09-25 14:36:18 -07:00
Bart Sears
b637717096 Revert "Transfer large bitmaps using ashmem. Bug: 5224703"
This reverts commit 56c58f66b97d22fe7e7de1f7d9548bcbe1973029

This CL was causing the browser to crash when adding bookmarks, visiting the bookmarks page, and sharing pages (see bug http://b/issue?id=5369231
2011-09-25 14:30:21 -07:00
Jeff Brown
69e7be8d7c am 4113acf1: Merge "Transfer large bitmaps using ashmem. Bug: 5224703"
* commit '4113acf10a60f2e7cfbb835e50ef520df8257cb3':
  Transfer large bitmaps using ashmem. Bug: 5224703
2011-09-24 20:51:02 -07:00
Jeff Brown
56c58f66b9 Transfer large bitmaps using ashmem.
Bug: 5224703

Change-Id: Ic7481dd9f173986f085a8bbdcc59bbe9830d7a44
2011-09-23 21:20:47 -07:00
Jason Sams
94aaed3846 Remove unused fields in ProgramRaster
Change-Id: I70c9d47674c956ec850c178c7aaa9a5e3dd9dffb
2011-09-23 14:18:53 -07:00
Jamie Gennis
44a052203e SurfaceTexture: add name support
This change adds support for setting a string that can be used to
identify a SurfaceTexture object in log messages.

Change-Id: Ib4ee085f36c8830dc964c05ef1654f5a55dfcd60
2011-09-22 17:49:10 -07:00
Jason Sams
00e3abadea am dd0ffde6: Merge "Cleanup RS logs Reduce the startup/shutdown info and format the logs in a consistent manner."
* commit 'dd0ffde6f553afb9fcdbab198102df540a4470a0':
  Cleanup RS logs Reduce the startup/shutdown info and format the logs in a consistent manner.
2011-09-21 08:55:04 -07:00
Jason Sams
dd0ffde6f5 Merge "Cleanup RS logs Reduce the startup/shutdown info and format the logs in a consistent manner." 2011-09-21 08:53:10 -07:00
Jason Sams
8410b14c85 Cleanup RS logs
Reduce the startup/shutdown info and format the logs
in a consistent manner.

Change-Id: I4592cd9fcf7e2920010d84c7137137262cdc73b9
2011-09-20 16:59:22 -07:00
Mathias Agopian
d279c7b1f8 am eee6d2f3: Merge "Make sure Region handles invalid rectangles"
* commit 'eee6d2f3b10e1c242185c417bab4561fd60b74fe':
  Make sure Region handles invalid rectangles
2011-09-20 16:23:20 -07:00
Mathias Agopian
62cd6a5d63 am 44bfbbe5: Merge "fix the float Rect in OpenGLRenderer to handle NANs"
* commit '44bfbbe501880f42105c49d479d4c109af420dbf':
  fix the float Rect in OpenGLRenderer to handle NANs
2011-09-20 16:23:18 -07:00
Mathias Agopian
8bba5efcee Make sure Region handles invalid rectangles
the boolean operation code assumes rects are valid and
could go into an infinite loop if not. make sure we
abort before that happens.

Bug: 5331198, 5334829
Change-Id: Iee4e3b838ecf504ef21f7447fd2e34a56e7dc3f8
2011-09-19 16:50:17 -07:00
Mathias Agopian
83b186a246 fix the float Rect in OpenGLRenderer to handle NANs
- we want functions like isEmpty() to return true if NANs are
involved in the Rect

- also clean-up the intersect familly of calls

- minor cleanup in the int32_t Rect as well

These played a role in http://b/5331198.

Bug: 5331198

Change-Id: I5369725ab482e4b83da9f1bd4cee5256e5de75b2
2011-09-19 16:50:07 -07:00
Jeff Brown
5533184964 am 92061b70: am 79aa4030: Merge "Can\'t stop the fling! Bug: 5335420" into ics-factoryrom
* commit '92061b70be48fabd8a1e5fbdbd3021211c820222':
  Can't stop the fling! Bug: 5335420
2011-09-16 23:32:33 -07:00
Jeff Brown
92061b70be am 79aa4030: Merge "Can\'t stop the fling! Bug: 5335420" into ics-factoryrom
* commit '79aa40302b643ee6c6227ee354a1b1378e721568':
  Can't stop the fling! Bug: 5335420
2011-09-16 23:30:52 -07:00
Jeff Brown
b0c71eb9f5 Can't stop the fling!
Bug: 5335420

Fixed a bug in VelocityTracker where the output velocity was
not being set to zero when not available.

Added a condition to ensure that the velocity is at least
the minimum fling velocity before continuing.  If not, then
the user is trying to stop the fling and scroll more precisely.

Change-Id: I36634b0c3f7a9a09cf20c33f71d41163a8e33eed
2011-09-16 21:43:58 -07:00
Mathias Agopian
1afeea0f20 Merge "work around a problem where fp registers get corrupted (DO NOT MERGE)" into ics-factoryrom 2011-09-16 17:08:21 -07:00
Mathias Agopian
a5f7b3cbf7 work around a problem where fp registers get corrupted (DO NOT MERGE)
Bug: 5331198
Change-Id: I1f9b4a79d34d63f8adb0555909998664ea2ea9ca
2011-09-16 16:59:52 -07:00
Jeff Brown
3fccb86b31 Make LTE_FLOAT a strict weak order. (DO NOT MERGE)
Bug: 5327776

Currently LTE_FLOAT isn't even a valid partial order, let alone
a strict weak order as needed by binary search.  Consequently,
KeyedVectors with keys whose types have operator< using LTE_FLOAT
sometimes find the wrong values!

This problem affects several graphics caches including the
TextLayoutCache.

(This is still not a total order because NaNs are not comparable
but hopefully we don't ever search for NaNs this way!)

Change-Id: Ic447a34c7d87f681ee81538f22a0937a039072dd
2011-09-16 13:35:01 -07:00
Jeff Brown
1afa74c7f7 am bb0bccba: Merge "Make LTE_FLOAT a strict weak order. Bug: 5327776"
* commit 'bb0bccba23849de34fb8b8d96fa90f653e86fbab':
  Make LTE_FLOAT a strict weak order. Bug: 5327776
2011-09-16 13:13:02 -07:00
Jeff Brown
bb0bccba23 Merge "Make LTE_FLOAT a strict weak order. Bug: 5327776" 2011-09-16 13:11:24 -07:00
Mathias Agopian
2df362c8fb am 4920fde8: Merge "cleanup: fix typos in logs"
* commit '4920fde825678676da038497c41bf800bc876ef6':
  cleanup: fix typos in logs
2011-09-16 12:59:54 -07:00
Mathias Agopian
4920fde825 Merge "cleanup: fix typos in logs" 2011-09-16 12:58:30 -07:00
Jeff Brown
13ede62fd7 Make LTE_FLOAT a strict weak order.
Bug: 5327776

Currently LTE_FLOAT isn't even a valid partial order, let alone
a strict weak order as needed by binary search.  Consequently,
KeyedVectors with keys whose types have operator< using LTE_FLOAT
sometimes find the wrong values!

This problem affects several graphics caches including the
TextLayoutCache.

(This is still not a total order because NaNs are not comparable
but hopefully we don't ever search for NaNs this way!)

Change-Id: Ic447a34c7d87f681ee81538f22a0937a039072dd
2011-09-16 12:00:05 -07:00
Mathias Agopian
53f6cdd94d cleanup: fix typos in logs
Change-Id: Ib5744564a873ea2b84100174673dc4d3ae109fcf
2011-09-16 11:56:40 -07:00
Andreas Huber
4cf593da73 am 86d7db52: Fix androidGetThreadPriority for non-pthread configurations.
* commit '86d7db52bf0cce0d76abc40cc25bf4f1d96d59cd':
  Fix androidGetThreadPriority for non-pthread configurations.
2011-09-16 11:55:09 -07:00
Andreas Huber
86d7db52bf Fix androidGetThreadPriority for non-pthread configurations.
related-to-build

Change-Id: Ic865af0865906f96fd615a56a030c8e3adaf13c4
2011-09-16 11:47:13 -07:00
Andreas Huber
a5d7b09cb3 am d6790989: Merge "A new API "androidGetThreadPriority""
* commit 'd679098937eabe9dc4ac8ab3bb1235b318c8fa25':
  A new API "androidGetThreadPriority"
2011-09-16 10:52:27 -07:00
Andreas Huber
bcba155942 A new API "androidGetThreadPriority"
Change-Id: I6baeead8c70460863343fd557250635fb1e6a170
2011-09-16 09:33:22 -07:00
Jeff Brown
1ac36b7729 am 93578af2: Merge "Velocity Tracker II: The Revenge of Velocity Tracker Bug: 5265529"
* commit '93578af23ecfb8f5b6001346d63c6214cdec5d17':
  Velocity Tracker II: The Revenge of Velocity Tracker Bug: 5265529
2011-09-14 21:29:11 -07:00
Jeff Brown
b59ab9f41f Velocity Tracker II: The Revenge of Velocity Tracker
Bug: 5265529

Rewrote the velocity tracker to fit a polynomial curve
to pointer movements using least squares linear regression.
The velocity is simply the first derivative of this polynomial.

Clients can also obtain an Estimator that describes the
complete terms of the estimating polynomial including
the coefficient of determination which provides a measure
of the quality of the fit (confidence).

Enhanced PointerLocation to display the movement curve predicted
by the estimator in addition to the velocity vector.

By default, the algorithm computes a 2nd degree (quadratic)
polynomial based on a 100ms recent history horizon.

Change-Id: Id377bef44117fce68fee2c41f90134ce3224d3a1
2011-09-14 19:16:37 -07:00
Jason Sams
b0c897b134 am c7599494: Merge "Add RS watchdog."
* commit 'c75994947a5708f808c80a75358309f351e8e60f':
  Add RS watchdog.
2011-09-13 16:38:33 -07:00
Jason Sams
5316b9eead Add RS watchdog.
Change-Id: I4c912beb84fa8a37ada0088049f7776132e994b6
2011-09-13 15:41:01 -07:00
Ben Komalo
4b2efcb26f am 6c048260: Merge "Revert encryption mapping for device wipes."
* commit '6c048260f30d9bba1a83c4f79388cd6b3109be7d':
  Revert encryption mapping for device wipes.
2011-09-11 16:53:00 -07:00
Ben Komalo
6c048260f3 Merge "Revert encryption mapping for device wipes." 2011-09-11 16:48:32 -07:00
Jeff Brown
9b40e9c919 am 0e23c2ef: Merge "Tweak VelocityTracker. Bug: 5265529"
* commit '0e23c2efb03c8eac7e2bcd6aad61cfc4b15340fc':
  Tweak VelocityTracker. Bug: 5265529
2011-09-09 17:03:21 -07:00
Jeff Brown
0e23c2efb0 Merge "Tweak VelocityTracker. Bug: 5265529" 2011-09-09 17:01:25 -07:00
Jeff Brown
581761d4aa Tweak VelocityTracker.
Bug: 5265529

Calculate the velocity using the most recent touch sample as the
point of reference instead of the oldest.  This change more heavily
weights recent touch samples and reduces the sample time window
used for calculation.  This significantly improves the accuracy
of fling gesture detection.

Change-Id: Ib1940933e786e5f6a731552a99bcd9400741d55f
2011-09-09 16:04:09 -07:00
Ben Komalo
13c7197da8 Revert encryption mapping for device wipes.
External storage volumes that were emulated+encrypted needed to have
their encryption mapping removed so that it doesn't try to encrypt the
volume after formatting them.

This just wires through an argument through vold, and assumes that vold
will do the right thing even if there is no encryption mapping set.

Bug: 5017638
Change-Id: I858fae3d12cb415bc34637f520f71220ad9daaad
2011-09-09 14:44:40 -07:00