Commit Graph

46994 Commits

Author SHA1 Message Date
Andy McFadden
641601d3b2 am 13a082e1: Added display initialization method
* commit '13a082e160c2d1d8006b93a555a57035213d568b':
  Added display initialization method
2012-08-24 14:18:11 -07:00
Andy McFadden
13a082e160 Added display initialization method
The primary display device was being configured to "blank" by
default, which prevented the boot animation from appearing
(unless you got lucky with the hardware composer state).

Bug 6975688

Change-Id: I0fa52e9e719c6e997c5725a7baf15d9718461b78
2012-08-24 11:50:34 -07:00
Jamie Gennis
f81fa52869 am 0bceb847: surfaceflinger: fix display id selection
* commit '0bceb84773882b796d9dacbaf96167cb15928d78':
  surfaceflinger: fix display id selection
2012-08-24 11:18:35 -07:00
Jamie Gennis
21dbb2cd6f am 490aee0f: Merge "SurfaceTexture: inherit from ConsumerBase (try 2)" into jb-mr1-dev
* commit '490aee0fc5012acf2bf0b1dfe9c09e6fcca606fc':
  SurfaceTexture: inherit from ConsumerBase (try 2)
2012-08-24 11:13:34 -07:00
Jamie Gennis
0bceb84773 surfaceflinger: fix display id selection
This change fixes display ID selection so that it never chooses negative
numbers as display IDs.

Change-Id: I5af1acc7b1270b371595e096b18e2a6ad250c7ba
2012-08-24 11:12:28 -07:00
Jamie Gennis
490aee0fc5 Merge "SurfaceTexture: inherit from ConsumerBase (try 2)" into jb-mr1-dev 2012-08-24 11:11:07 -07:00
Andy McFadden
c17dbaa2c5 am 9b6a395e: Revert "Added display initialization method"
* commit '9b6a395e65ff88ab79fe92d6f112c434441ca606':
  Revert "Added display initialization method"
2012-08-24 10:16:43 -07:00
Andy McFadden
9b6a395e65 Revert "Added display initialization method"
Something doesn't seem right (again).

This reverts commit 53ade0853c.

Change-Id: Id5786997ca9dd2a447363e8ac95213ea37468504
2012-08-24 10:12:38 -07:00
Andy McFadden
d6db17737b am 53ade085: Added display initialization method
* commit '53ade0853ca003c9e917b5e7d34e1b1338d7b87d':
  Added display initialization method
2012-08-24 09:31:42 -07:00
Andy McFadden
53ade0853c Added display initialization method
The primary display device was being configured to "blank" by
default, which prevented the boot animation from appearing
(unless you got lucky with the hardware composer state).

Bug 6975688

(This reverts an earlier revert.)
2012-08-24 09:19:56 -07:00
Mathias Agopian
a301dab968 am f4358634: teach HWC about multiple displays
* commit 'f435863467ab407f2a482604beed5fa6f0144c62':
  teach HWC about multiple displays
2012-08-23 18:23:05 -07:00
Mathias Agopian
df5fbf3675 am 30bcc614: remove support for HWC < 1.0
* commit '30bcc61431d8e3bef779472dd52a7b156dcaba09':
  remove support for HWC < 1.0
2012-08-23 18:23:05 -07:00
Mathias Agopian
4f2f099720 am e60b0687: HWComposer now has its own concept of display IDs
* commit 'e60b0687c8d49871d0c8786cabe6851f7a7783b5':
  HWComposer now has its own concept of display IDs
2012-08-23 18:23:04 -07:00
Mathias Agopian
f435863467 teach HWC about multiple displays
Change-Id: I5e72a83d419a729835cb0e1ec45557b4d3fb56b1
2012-08-23 17:41:38 -07:00
Mathias Agopian
30bcc61431 remove support for HWC < 1.0
Change-Id: If7e676a6e3524afeb9af3875125d2131d95db38b
2012-08-23 16:30:12 -07:00
Mathias Agopian
e60b0687c8 HWComposer now has its own concept of display IDs
HWComposer can now create IDs representing a display
it can deal with. IDs MAIN and HDMI are reserved.
SurfaceFlinger associate HWComposer IDs with a
DisplayDevice and uses that when it talks to HWComposer.

A DisplayDevice doesn't have to have a HWComposer ID,
in that case it just can't use h/w composer composition.

Change-Id: Iec3d7ac92e0c22bf975052ae2847402f58bade71
2012-08-23 16:03:37 -07:00
Mathias Agopian
0336f30c57 am 7c9e8263: Merge "simplify further vsync handling" into jb-mr1-dev
* commit '7c9e82633c5c4f85b896a5879bdb25cdf659646e':
  simplify further vsync handling
2012-08-23 15:28:11 -07:00
Mathias Agopian
7c9e82633c Merge "simplify further vsync handling" into jb-mr1-dev 2012-08-23 15:27:09 -07:00
Mathias Agopian
f6bbd44a23 simplify further vsync handling
- we now clean-up "dead" connection in the main loop,
this entirely avoid the problem with the side effects of
releasing strong references. We now only hold on to strong
reference for the connection we will signal.

- also simplify how we build the list of "ready" connections, by
only adding them to the list when we did receive a vsync event

Change-Id: I2a84da431320a2af8e8a93e07622a1d258236f43
2012-08-23 15:26:27 -07:00
Jesse Hall
a6506488da am d12780ed: Merge "Update for cleanups in hwc interface" into jb-mr1-dev
* commit 'd12780ed123b54687fea534b34f54ef9c678cdcd':
  Update for cleanups in hwc interface
2012-08-23 09:16:49 -07:00
Jesse Hall
d12780ed12 Merge "Update for cleanups in hwc interface" into jb-mr1-dev 2012-08-23 09:15:53 -07:00
The Android Open Source Project
0ff05c75d7 Reconcile with jb-mr1-release - do not merge
Change-Id: Ida7b9f23f8deb451a9e6e9f2714d7a677fb6ca1c
2012-08-22 15:35:30 -07:00
Ramanan Rajeswaran
11676d963f Revert "Added display initialization method"
This reverts commit 3f3956236a

Change-Id: Ia2a15d9a5db88add6019edf9d955cef1f73d432d
2012-08-22 14:57:30 -07:00
Ramanan Rajeswaran
519b3e4a3b am bc46e0ad: Merge "Revert "Added display initialization method"" into jb-mr1-dev
* commit 'bc46e0ad869befcfa97f6272615cdeae2135008f':
  Revert "Added display initialization method"
2012-08-22 14:27:52 -07:00
Ramanan Rajeswaran
bc46e0ad86 Merge "Revert "Added display initialization method"" into jb-mr1-dev 2012-08-22 14:25:48 -07:00
Ramanan Rajeswaran
f1bf89dd88 Revert "Added display initialization method"
This reverts commit 3f3956236a

Change-Id: Ia2a15d9a5db88add6019edf9d955cef1f73d432d
2012-08-22 14:23:50 -07:00
Jesse Hall
c4f4e7f968 am 8f971ff6: Pass the correct number of displays based on HWC version
* commit '8f971ff6661c875e7adb3f14731e1579c3c80c62':
  Pass the correct number of displays based on HWC version
2012-08-22 14:19:12 -07:00
Jesse Hall
bbd164a3c7 Update for cleanups in hwc interface
Change-Id: I363fd8b085167a1af6c14b68012bda5c62bfe59f
2012-08-22 12:09:39 -07:00
Jesse Hall
8f971ff666 Pass the correct number of displays based on HWC version
Change-Id: I27372f5d3102ad56f6d67722d631ae18d37f8330
2012-08-22 12:08:18 -07:00
The Android Automerger
6e9dc4c814 merge in jb-mr1-release history after reset to jb-mr1-dev 2012-08-22 06:33:48 -07:00
Jamie Gennis
97799fbb2d am 9f54ac38: ui/Fence: change the TIMEOUT_NEVER value to -1
* commit '9f54ac38860761ef62d9bb8282d54ff51a1a68a3':
  ui/Fence: change the TIMEOUT_NEVER value to -1
2012-08-21 19:11:06 -07:00
Jamie Gennis
9f54ac3886 ui/Fence: change the TIMEOUT_NEVER value to -1
Change-Id: I3ef0a4c06f80990b53a8bf2eda6edbfcbefd0f34
2012-08-21 19:07:30 -07:00
Eino-Ville Talvala
898b4f88a1 am 04930445: Merge "Add BufferItemConsumer, a simple BufferQueue consumer." into jb-mr1-dev
* commit '04930445031c5f41707806182bb7a152e64ddede':
  Add BufferItemConsumer, a simple BufferQueue consumer.
2012-08-21 16:48:11 -07:00
Eino-Ville Talvala
0493044503 Merge "Add BufferItemConsumer, a simple BufferQueue consumer." into jb-mr1-dev 2012-08-21 16:46:05 -07:00
Jamie Gennis
9fea3421ff SurfaceTexture: inherit from ConsumerBase (try 2)
This change makes SurfaceTexture inherit from ConsumerBase.  It removes all of
the functionality from SurfaceTexture that is now provided by the base class.
This includes fixes for two bugs that were found after checking this change in
the first time and then reverting it.

Change-Id: Ie2d9f4f27cfef26fdac341de3152e842b01a58d2
2012-08-21 16:41:03 -07:00
The Android Open Source Project
ee8445a4de Reconcile with jb-mr1-release - do not merge
Change-Id: Idb96902f4272f83b3ebc1081ace5d2511d4281b7
2012-08-21 16:05:59 -07:00
Andy McFadden
30b84c7d03 am 3f395623: Added display initialization method
* commit '3f3956236aac97b6aa25fa89f0983d5e9d065fdb':
  Added display initialization method
2012-08-21 16:00:32 -07:00
Eino-Ville Talvala
e232fdca2a Add BufferItemConsumer, a simple BufferQueue consumer.
BufferItemConsumer allows for acquiring BufferQueue's BufferItems,
which contain all the data and metadata the BufferQueue has for a
given graphics buffer.

This consumer is useful when direct access to the native buffer_handles
is needed by the client.

Also includes a minor cleanup of CpuConsumer's use of 'virtual'.

Bug: 6243944
Change-Id: If7dc4192b15ac499555f1eda42a85140f2434795
2012-08-21 15:46:35 -07:00
Andy McFadden
3f3956236a Added display initialization method
The primary display device was being configured to "blank" by
default, which prevented the boot animation from appearing
(unless you got lucky with the hardware composer state).

Bug 6975688

Change-Id: Idaa0d0b98ebb331a17d1b16774c6b05bfa1e8728
2012-08-21 13:11:51 -07:00
Mathias Agopian
bd589e3248 fix various issues in SF's EventThread
- one issues caused most timestamps to be reported as 0
- on rare occasions an uninitialized variable could be used
- vsync counts per connection were accessed unthreadsafely

we now have 2 lists of connections in the main loop, one just
keeps a list of strong refs to the connections because once
we have a strong ref we're not allowed to release it while
holding the lock.

the 2nd list holds the connections that have a vsync event to
be reported. all the calculations are made with the lock held.

Change-Id: Iacfad3745b05df79d9ece3719bd4c34ddbfd5b83
2012-08-21 12:40:17 -07:00
Mathias Agopian
a2f58b1705 am a4cb35a2: fix various issues in SF\'s EventThread
* commit 'a4cb35a2864d58e9a764a17623e15ab25a9964a0':
  fix various issues in SF's EventThread
2012-08-21 12:09:42 -07:00
The Android Automerger
d77d6acc2d merge in jb-mr1-release history after reset to jb-mr1-dev 2012-08-21 06:34:25 -07:00
Mathias Agopian
a4cb35a286 fix various issues in SF's EventThread
- one issues caused most timestamps to be reported as 0
- on rare occasions an uninitialized variable could be used
- vsync counts per connection were accessed unthreadsafely

we now have 2 lists of connections in the main loop, one just
keeps a list of strong refs to the connections because once
we have a strong ref we're not allowed to release it while
holding the lock.

the 2nd list holds the connections that have a vsync event to
be reported. all the calculations are made with the lock held.

Change-Id: Iacfad3745b05df79d9ece3719bd4c34ddbfd5b83
2012-08-20 21:41:29 -07:00
Mathias Agopian
9cf3b93bc7 am 1648d4c1: put back the unused virtuals in Vector<>
* commit '1648d4c13ba2eff3ea14cd87ee94028458a39f97':
  put back the unused virtuals in Vector<>
2012-08-20 21:27:55 -07:00
Mathias Agopian
1648d4c13b put back the unused virtuals in Vector<>
some binaries are using these private APIs and broke
(as they should!) with this change. Temporarily restore the
virtuals to work around this.

Bug: 6977550
Change-Id: I7c37f24b16e4d586b89205c493db5169cf87e024
2012-08-20 21:23:15 -07:00
Mathias Agopian
186e2bd064 am 317357fd: Merge "get rid of mirrorItemAt() which isn\'t used anywhere" into jb-mr1-dev
* commit '317357fdf7a2b542dfdaa06f42ff7f5f0153f9a3':
  get rid of mirrorItemAt() which isn't used anywhere
2012-08-20 16:49:41 -07:00
Mathias Agopian
317357fdf7 Merge "get rid of mirrorItemAt() which isn't used anywhere" into jb-mr1-dev 2012-08-20 16:48:07 -07:00
Eino-Ville Talvala
cd3028dc0b am 84a9a3c0: Merge "CpuConsumer: inherit from ConsumerBase" into jb-mr1-dev
* commit '84a9a3c0ec35915d3cc40e9e889d4032e189894a':
  CpuConsumer: inherit from ConsumerBase
2012-08-20 16:19:53 -07:00
Eino-Ville Talvala
84a9a3c0ec Merge "CpuConsumer: inherit from ConsumerBase" into jb-mr1-dev 2012-08-20 16:18:11 -07:00
Eino-Ville Talvala
f57e7540d4 CpuConsumer: inherit from ConsumerBase
Change-Id: I55178b1d673ffa0fbc6e63ef47642c64d4d03228
2012-08-20 15:44:40 -07:00