3212 Commits

Author SHA1 Message Date
Chet Haase
6cfdf45380 Fix bitfield bug with vertex shader selection
Change-Id: I8bd3005f363afb52e6624806efb3e04c4a56ee18
2011-04-22 16:42:10 -07:00
Jason Sams
21cd43cbba Add matrix logging.
Change-Id: I42fb61747cf1ddf9b367faf6ce9109429d34e9cf
2011-04-22 14:25:07 -07:00
Jason Sams
e2b3304e40 Fix rsRand(float, float)
Change-Id: I553d83e1e962ad34aacbe6572d47ff25c3d50060
2011-04-22 14:25:07 -07:00
Josh Stone
c4fbbe06a5 libutils: Fix an improper const-cast in RefBase
Under Fedora 15 Beta, gcc 4.6.0 warns:

  frameworks/base/libs/utils/RefBase.cpp: In member function
    ‘void android::RefBase::weakref_type::trackMe(bool, bool)’:
  frameworks/base/libs/utils/RefBase.cpp:483:67: error: passing
    ‘const android::RefBase::weakref_impl’ as ‘this’ argument of
    ‘void android::RefBase::weakref_impl::trackMe(bool, bool)’
    discards qualifiers [-fpermissive]

trackMe is not a const function, so don't use const in the static_cast
to a weakref_impl pointer.

Change-Id: I3c9ba73eb127985f5f54197ffecf2939c50f632c
2011-04-22 11:13:35 -07:00
Mathias Agopian
5db1314192 Merge "Get rid of the "pid" parameter from createSurface" 2011-04-21 17:14:18 -07:00
Jason Sams
b86a6ea41d Merge "Move TLS behind hal." 2011-04-21 15:12:25 -07:00
Chet Haase
bf96c356c0 Merge "Enable anti-aliasing for hw-accelerated lines" 2011-04-21 11:52:59 -07:00
Chet Haase
5b0200bd47 Enable anti-aliasing for hw-accelerated lines
Draw anti-aliased lines with OpenGL by constructing a quad with
a border that fades out (to mimic fragment coverage).

Change-Id: Ib81a3e62d663acdf1b46b401ac4aa7ee9855cc7e
2011-04-21 11:47:05 -07:00
Jason Sams
be8ac6ace9 Move TLS behind hal.
Change-Id: I9e84acb3736bc98fa5fb0720bddb13a030285319
2011-04-21 11:46:50 -07:00
Evgeniy Stepanov
594f3eec38 Make sure binder ioctl structs don't contain uninitialized values.
Change-Id: I8a678f91262417bb120e65e32c244ce1512b46c2
2011-04-21 14:37:15 +04:00
Stephen Hines
118782298b Merge "Reduce verbosity of Renderscript logging." 2011-04-20 17:22:36 -07:00
Jason Sams
4698ef3e01 Merge "Remove accidental logging." 2011-04-20 17:15:05 -07:00
Jason Sams
0ec8c6f9a8 Remove accidental logging.
Change-Id: I59073a620c312485a0631069856fbd7ca40b4cbd
2011-04-20 17:14:26 -07:00
Stephen Hines
9c35d790e9 Reduce verbosity of Renderscript logging.
Change-Id: I0e20274e01b4068f90ef6ddd6ed7837d42f35813
2011-04-20 17:08:14 -07:00
Jason Sams
ff0f67d8df Merge "Create runtime stubs for compute driver." 2011-04-20 15:13:46 -07:00
Jason Sams
fcf7231249 Create runtime stubs for compute driver.
Change-Id: I8e0250a642844a2ad3ff6efc38e385445b7da032
2011-04-20 15:09:01 -07:00
Mathias Agopian
9638e5c167 Get rid of the "pid" parameter from createSurface
Change-Id: I28635e3f803e6abe965d79998e305f54a202465d
2011-04-20 14:26:11 -07:00
Jeff Brown
3f14891fc9 Merge "Initial checkin of spot presentation for touchpad gestures." 2011-04-19 15:37:32 -07:00
Jeff Brown
2352b978a3 Initial checkin of spot presentation for touchpad gestures.
Added a new PointerIcon API (hidden for now) for loading
pointer icons.

Fixed a starvation problem in the native Looper's sendMessage
implementation which caused new messages to be posted ahead
of old messages sent with sendMessageDelayed.

Redesigned the touch pad gestures to be defined in terms of
more fluid finger / spot movements.  The objective is to reinforce
the natural mapping between fingers and spots which means there
must not be any discontinuities in spot motion relative to
the fingers.

Removed the SpotController stub and folded its responsibilities
into PointerController.

Change-Id: I5126b1e69d95252fda7f2a684c9287e239a57163
2011-04-19 15:35:51 -07:00
Mathias Agopian
578492e999 Merge "changes to SurfaceTexture needed for unification with SF" 2011-04-18 19:51:26 -07:00
Stephen Hines
a1e99532b4 Merge "Fix broken assert (if input allocation is NULL)." 2011-04-18 10:25:57 -07:00
Andreas Huber
b0dfade955 Merge "Parcel::appendFrom({const } Parcel *parcel, size_t, size_t)" 2011-04-18 08:12:36 -07:00
Mathias Agopian
644c4f1862 Merge "Fix a GraphicBuffer leak in SurfaceTexture" 2011-04-15 18:15:13 -07:00
Dianne Hackborn
0ffc988a7f Rewrite battery history storage.
We now write battery history directly into a buffer, instead of
creating objects.  This allows for more efficient storage; later
it can be even better because we can only write deltas.

The old code is still there temporarily for validation.

Change-Id: I9707d4d8ff30855be8ebdc93bc078911040d8e0b
2011-04-14 10:57:22 -07:00
Andreas Huber
0a47f4f711 Parcel::appendFrom({const } Parcel *parcel, size_t, size_t)
As far as I can tell "parcel" isn't actually modified by the implementation.

Change-Id: Ib806eefdc13c97b932773e1dc9ca3a4aad4422b2
2011-04-13 10:21:56 -07:00
Wu-cheng Li
fda06c0cd9 Merge "Add camera metering area API." 2011-04-13 01:14:42 -07:00
Wu-cheng Li
e98e4c8063 Add camera metering area API.
The API are still hidden.

bug:3475893
Change-Id: Id4147528def5e0fe067e1a3ed315fa34c14a0640
2011-04-13 16:06:47 +08:00
Kenny Root
461fa8b05d resolved conflicts for merge of 18490fb9 to master
Change-Id: I6c68e6fb0f9c1182a955689bbffc161a8f30bd37
2011-04-12 12:51:08 -07:00
Kenny Root
18490fb93e resolved conflicts for merge of 87b3c0dc to honeycomb-plus-aosp
Change-Id: Ia1a0024aabf531438203eb9fea3a10dd15eabe53
2011-04-12 10:27:15 -07:00
Mathias Agopian
27cd07ca80 changes to SurfaceTexture needed for unification with SF
- implement connect/disconnect
- implement missing query
- handle texture_2d in addition to texture_external_oes

Change-Id: I971a70821f00f22b01f5337de4a7d451177fec4d
2011-04-11 21:19:55 -07:00
Kenny Root
87b3c0dcc4 am 08d9d9a4: Merge "Runtime resource overlay, iteration 1."
* commit '08d9d9a46250c4fad66e9b637e8898a3524c4286':
  Runtime resource overlay, iteration 1.
2011-04-11 15:33:19 -07:00
Mike Lockwood
d08b2ad9bc am 9e13c7e5: am 9645081c: am 43707a83: UsbManager: minor Javadoc tweak
* commit '9e13c7e5d787252b2a88aace1115b51a95e16b5d':
  UsbManager: minor Javadoc tweak
2011-04-11 14:28:34 -07:00
Mike Lockwood
9e13c7e5d7 am 9645081c: am 43707a83: UsbManager: minor Javadoc tweak
* commit '9645081cc7f31e1151fedbcd5932a100719e91e4':
  UsbManager: minor Javadoc tweak
2011-04-11 14:24:11 -07:00
Stephen Hines
97837c9172 Fix broken assert (if input allocation is NULL).
Change-Id: If02e86eee4ec059402edd6f8c408fd89b248bc80
2011-04-11 14:02:22 -07:00
Mathias Agopian
5f05f99aae Fix a GraphicBuffer leak in SurfaceTexture
This leak was intentional, it was there to deal with the fact that
some gralloc implementations don't track buffer handles with
file-descriptors so buffers needed to stay alive until there were
registered, which is not guaranteed by binder transactions.

In this new implementation, we use a small BBinder holding a
reference to the buffer, which with tuck into the parcel. This forces
the reference to stay alive until the parcel is destroyed, which
is guaranteed (by construction) to happen after the buffer is
registered.

this allows the public facing API to not expose the previous hack.

Change-Id: I1dd6cd83679a2b7457ad628169e2851acc027143
2011-04-08 19:28:04 -07:00
Wu-cheng Li
30771b7733 Add camera focus area API.
The API are still hidden.

bug:3475893

Change-Id: I92405c9e332b7fb141788cda7ebc9705dd666c67
2011-04-08 17:45:15 +08:00
Jeff Brown
6181de3443 Merge "Coalesce input events that arrive faster than 333Hz." 2011-04-07 13:18:38 -07:00
Jeff Brown
4e91a180be Coalesce input events that arrive faster than 333Hz.
Some drivers report individual finger updates one at a time
instead of all at once.  When 10 fingers are down, this can
cause the framework to have to handle 10 times as many events
each with 10 times as much data.  Applications like
PointerLocation would get significantly bogged down by all
of the redundant samples.

This change coalesces samples that are closely spaced in time,
before they are dispatched, as part of the motion event batching
protocol.

Increased the size of the InputChannel shared memory buffer so
that applications can catch up faster if they accumulate a
backlog of samples.

Added logging code to help measure input dispatch and drawing
latency issues in the view hierarchy.  See ViewDebug.DEBUG_LATENCY.

Change-Id: Ia5898f781f19901d2225c529a910c32bdf4f504f
2011-04-07 13:11:16 -07:00
Jason Sams
e651c68ee8 Merge "Migrate most GL from context to driver." 2011-04-07 11:33:11 -07:00
Jason Sams
803626f615 Migrate most GL from context to driver.
Change-Id: I5cba3a6e879d2e9332fc667a1061a5312fcf14ba
2011-04-06 17:52:23 -07:00
Mathias Agopian
59ad81e19b Merge "remove more unused references to ISurface" 2011-04-06 12:22:29 -07:00
Jason Sams
78e0618d21 Merge "Cleanup character limits." 2011-04-06 11:45:42 -07:00
Jason Sams
bd184c5585 Cleanup character limits.
Change-Id: Icb127248d6e3a0b662ed3b13c9a6646f4f81129a
2011-04-06 11:44:47 -07:00
Jason Sams
46ded12dd1 Merge "Seperate ProgramRaster. Cleanup ProgramRaster and ProgramStore creation." 2011-04-06 11:40:33 -07:00
Jason Sams
d57a93b27d Merge "Seperate GL from RS program store." 2011-04-06 11:30:24 -07:00
Jason Sams
331bf9b14b Seperate ProgramRaster.
Cleanup ProgramRaster and ProgramStore creation.

Change-Id: If25ea74355238d405340f0ccfb8117ad6e1307b7
2011-04-06 11:23:54 -07:00
Dianne Hackborn
3fc982f41f Add new resource configurations for screen width/height in "dp".
You can now specify resource configuration variants "wNNNdp"
and "hNNNdp".  These are the minimum screen width/height in "dp"
units.  This allows you to do things like have your app adjust
its layout based only on the about of horizontal space available.

This introduces a new configuration change flag for screen size.
Note that this configuration change happens each time the orientation
changes.  Applications often say they handle the orientation change
to avoid being restarted at a screen rotation, and this will now
cause them to be restarted.  To address this, we assume the app can
handle this new config change if its target SDK version is < ICS.

Change-Id: I22f8afa136b4f274423978c570fa7c9855040496
2011-04-06 11:00:37 -07:00
Mathias Agopian
c8a04b536b remove more unused references to ISurface
Change-Id: I2201f1ca2bb8f203a081d94a0134f798778dfbef
2011-04-05 20:11:55 -07:00
Jason Sams
48f505657a Seperate GL from RS program store.
Change-Id: I0eae9c0699845af8e8611b065e70738cc9f2b15c
2011-04-04 17:09:37 -07:00
Mike Lockwood
9645081cc7 am 43707a83: UsbManager: minor Javadoc tweak
* commit '43707a83ec12957fb84a406276a38fbaf4e23fd3':
  UsbManager: minor Javadoc tweak
2011-04-04 14:43:06 -07:00