OSDN Git Service

android-x86/frameworks-native.git
11 years agoam d69097f9: libgui: add some error checks
Jamie Gennis [Fri, 31 Aug 2012 19:57:30 +0000 (12:57 -0700)]
am d69097f9: libgui: add some error checks

* commit 'd69097f936d9780957a51ce77335ae409b32aaa3':
  libgui: add some error checks

11 years agoam 5e5efde7: BufferQueue: add a check for the max acquired bufs
Jamie Gennis [Fri, 31 Aug 2012 19:57:29 +0000 (12:57 -0700)]
am 5e5efde7: BufferQueue: add a check for the max acquired bufs

* commit '5e5efde7874a9fab650fd4b724ceef46db850470':
  BufferQueue: add a check for the max acquired bufs

11 years agolibgui: add some error checks
Jamie Gennis [Thu, 30 Aug 2012 20:28:23 +0000 (13:28 -0700)]
libgui: add some error checks

This change adds a few error checks both in the framework and in some tests.

Change-Id: I2baf2676942a0dc15866e75852a775a0091ed16d

11 years agoBufferQueue: add a check for the max acquired bufs
Jamie Gennis [Wed, 29 Aug 2012 00:18:50 +0000 (17:18 -0700)]
BufferQueue: add a check for the max acquired bufs

This change adds an error check to ensure that consumers don't acquire more
buffers than the maximum that they set.

Change-Id: I026643564bde52732e4ee6146972b207ddbbba77

11 years agoam 72f096fb: BufferQueue: use max acquired buffer count
Jamie Gennis [Fri, 31 Aug 2012 01:28:31 +0000 (18:28 -0700)]
am 72f096fb: BufferQueue: use max acquired buffer count

* commit '72f096fb1ad0a0deadbfac5f88627461905d38e8':
  BufferQueue: use max acquired buffer count

11 years agoBufferQueue: use max acquired buffer count
Jamie Gennis [Tue, 28 Aug 2012 01:48:37 +0000 (18:48 -0700)]
BufferQueue: use max acquired buffer count

This change makes BufferQueue derive the min undequeued buffer count from a max
acquired buffer count that is set by the consumer.  This value may be set at
any time that a producer is not connected to the BufferQueue rather than at
BufferQueue construction time.

Change-Id: Icf9f1d91ec612a079968ba0a4621deffe48f4e22

11 years agoam 1847f7fd: Merge "BufferQueue: simplify max buffer count handling" into jb-mr1-dev
Jamie Gennis [Fri, 31 Aug 2012 01:24:37 +0000 (18:24 -0700)]
am 1847f7fd: Merge "BufferQueue: simplify max buffer count handling" into jb-mr1-dev

* commit '1847f7fd799f92300b3786e49f5883eaa03f4507':
  BufferQueue: simplify max buffer count handling

11 years agoMerge "BufferQueue: simplify max buffer count handling" into jb-mr1-dev
Jamie Gennis [Fri, 31 Aug 2012 01:23:26 +0000 (18:23 -0700)]
Merge "BufferQueue: simplify max buffer count handling" into jb-mr1-dev

11 years agoam 2b977698: Merge "BufferQueue: clean up buffer counting" into jb-mr1-dev
Jamie Gennis [Fri, 31 Aug 2012 01:23:14 +0000 (18:23 -0700)]
am 2b977698: Merge "BufferQueue: clean up buffer counting" into jb-mr1-dev

* commit '2b9776982360a234803665cb79e8abcfeb0e3c79':
  BufferQueue: clean up buffer counting

11 years agoMerge "BufferQueue: clean up buffer counting" into jb-mr1-dev
Jamie Gennis [Fri, 31 Aug 2012 01:21:10 +0000 (18:21 -0700)]
Merge "BufferQueue: clean up buffer counting" into jb-mr1-dev

11 years agoam f196b56d: Merge "Revert "A vendor ril depends on a native screen shot code.""...
Wink Saville [Fri, 31 Aug 2012 00:34:11 +0000 (17:34 -0700)]
am f196b56d: Merge "Revert "A vendor ril depends on a native screen shot code."" into jb-mr1-dev

* commit 'f196b56d70df6af753cb08bbb68e52498f0f37f1':
  Revert "A vendor ril depends on a native screen shot code."

11 years agoMerge "Revert "A vendor ril depends on a native screen shot code."" into jb-mr1-dev
Wink Saville [Fri, 31 Aug 2012 00:31:47 +0000 (17:31 -0700)]
Merge "Revert "A vendor ril depends on a native screen shot code."" into jb-mr1-dev

11 years agoam ec34af41: Merge "Handle new device api version encoding" into jb-mr1-dev
Jesse Hall [Thu, 30 Aug 2012 21:27:03 +0000 (14:27 -0700)]
am ec34af41: Merge "Handle new device api version encoding" into jb-mr1-dev

* commit 'ec34af4144c0f990513fe58b0754b20f94b36d6f':
  Handle new device api version encoding

11 years agoMerge "Handle new device api version encoding" into jb-mr1-dev
Jesse Hall [Thu, 30 Aug 2012 21:24:52 +0000 (14:24 -0700)]
Merge "Handle new device api version encoding" into jb-mr1-dev

11 years agoRevert "A vendor ril depends on a native screen shot code."
Wink Saville [Thu, 30 Aug 2012 18:53:55 +0000 (11:53 -0700)]
Revert "A vendor ril depends on a native screen shot code."

This reverts commit 9b5782baf0a8a2d7afc7129453beb5df7abe7650.

A new ril for toro, hack no longer needed.

11 years agoam 93997a8a: fix a crasher when setting a display to a null surface
Mathias Agopian [Thu, 30 Aug 2012 01:24:58 +0000 (18:24 -0700)]
am 93997a8a: fix a crasher when setting a display to a null surface

* commit '93997a8a75942b4d06cf50925de5bede489cc134':
  fix a crasher when setting a display to a null surface

11 years agofix a crasher when setting a display to a null surface
Mathias Agopian [Thu, 30 Aug 2012 00:30:36 +0000 (17:30 -0700)]
fix a crasher when setting a display to a null surface

Bug: 7076303
Change-Id: I843dd4ee4a603b8ad51bc1ad14e429db15050bec

11 years agoam c9ea4c8b: Merge "we were sometimes not setting fences properly" into jb-mr1-dev
Mathias Agopian [Thu, 30 Aug 2012 00:26:45 +0000 (17:26 -0700)]
am c9ea4c8b: Merge "we were sometimes not setting fences properly" into jb-mr1-dev

* commit 'c9ea4c8b580e73a89984641ed37a3eb417cc86c5':
  we were sometimes not setting fences properly

11 years agoMerge "we were sometimes not setting fences properly" into jb-mr1-dev
Mathias Agopian [Thu, 30 Aug 2012 00:24:53 +0000 (17:24 -0700)]
Merge "we were sometimes not setting fences properly" into jb-mr1-dev

11 years agowe were sometimes not setting fences properly
Mathias Agopian [Wed, 29 Aug 2012 23:59:24 +0000 (16:59 -0700)]
we were sometimes not setting fences properly

this would happen when the composition was handled
entirely in h/w composer, in this case, we would
not set the fences for any involved layers.

Bug: 7049373
Change-Id: I1439dc156ce23c24041cdfbbebfe8ff4fdf790f8

11 years agoBufferQueue: simplify max buffer count handling
Jamie Gennis [Sat, 25 Aug 2012 03:26:34 +0000 (20:26 -0700)]
BufferQueue: simplify max buffer count handling

This change reworks how the maximum buffer count is computed.

Change-Id: I7d3745814b9bd6f6f447f86bfea8eb7729914ebf

11 years agoBufferQueue: clean up buffer counting
Jamie Gennis [Sat, 25 Aug 2012 00:25:13 +0000 (17:25 -0700)]
BufferQueue: clean up buffer counting

This change is a clean up of some of the handling of the maximum number of
buffers that are allowed at once.  It mostly renames a few member variables and
methods, but it includes a couple small refactorings.

Change-Id: I9959310f563d09583548d4291e1050a7bbc7d87d

11 years agoam c1396dd1: Merge "initial checkin of a preliminary HDCP API for vendors to implemen...
Andreas Huber [Wed, 29 Aug 2012 20:34:01 +0000 (13:34 -0700)]
am c1396dd1: Merge "initial checkin of a preliminary HDCP API for vendors to implement." into jb-mr1-dev

* commit 'c1396dd14506d29e92fc047141d62b3d9246a72d':
  initial checkin of a preliminary HDCP API for vendors to implement.

11 years agoMerge "initial checkin of a preliminary HDCP API for vendors to implement." into...
Andreas Huber [Wed, 29 Aug 2012 20:32:15 +0000 (13:32 -0700)]
Merge "initial checkin of a preliminary HDCP API for vendors to implement." into jb-mr1-dev

11 years agoinitial checkin of a preliminary HDCP API for vendors to implement.
Andreas Huber [Wed, 29 Aug 2012 20:26:55 +0000 (13:26 -0700)]
initial checkin of a preliminary HDCP API for vendors to implement.

Change-Id: If98277efdec1bc8f1e9f4af1ca73324e4c3d469b

11 years agoHandle new device api version encoding
Jesse Hall [Wed, 29 Aug 2012 17:39:38 +0000 (10:39 -0700)]
Handle new device api version encoding

Change-Id: I3d36058bd5d31c23b3cc4a7eb5aa033b6f3c1955

11 years agoam b82af2a8: Merge "A vendor ril depends on a native screen shot code." into jb-mr1-dev
Wink Saville [Tue, 28 Aug 2012 23:25:13 +0000 (16:25 -0700)]
am b82af2a8: Merge "A vendor ril depends on a native screen shot code." into jb-mr1-dev

* commit 'b82af2a8aec99faf6fd37d202b98224cee461a12':
  A vendor ril depends on a native screen shot code.

11 years agoMerge "A vendor ril depends on a native screen shot code." into jb-mr1-dev
Wink Saville [Tue, 28 Aug 2012 23:22:55 +0000 (16:22 -0700)]
Merge "A vendor ril depends on a native screen shot code." into jb-mr1-dev

11 years agoA vendor ril depends on a native screen shot code.
Wink Saville [Tue, 28 Aug 2012 23:20:50 +0000 (16:20 -0700)]
A vendor ril depends on a native screen shot code.

Add a temporary shim until the vendor fixes the ril.

Bug: 7073467
Change-Id: Ia95a58bd90677c03406c988d1c29ae785f8662f2

11 years agoam 7e7ed7f7: the layer list per display could contain non-visible layers
Mathias Agopian [Tue, 28 Aug 2012 22:15:12 +0000 (15:15 -0700)]
am 7e7ed7f7: the layer list per display could contain non-visible layers

* commit '7e7ed7f77a3963a3542bde529d2797a239e2798b':
  the layer list per display could contain non-visible layers

11 years agothe layer list per display could contain non-visible layers
Mathias Agopian [Tue, 28 Aug 2012 21:20:00 +0000 (14:20 -0700)]
the layer list per display could contain non-visible layers

this happened because we didn't check that the visible
region was within the bounds of the display.

Bug: 7064121
Change-Id: I2e81850a3dc3d1474253520ad7f9e559c26d5a96

11 years agoam 55801e41: we were not always clearing the screen properly
Mathias Agopian [Tue, 28 Aug 2012 19:54:28 +0000 (12:54 -0700)]
am 55801e41: we were not always clearing the screen properly

* commit '55801e41e6d7306d75d8134dd69d7d8cbbfbc63c':
  we were not always clearing the screen properly

11 years agowe were not always clearing the screen properly
Mathias Agopian [Tue, 28 Aug 2012 01:54:24 +0000 (18:54 -0700)]
we were not always clearing the screen properly

Change-Id: I269dd866e965aebd9b3c4667095818202982f4a3

11 years agoam 525705c8: Merge "Eradicate DisplayID." into jb-mr1-dev
Mathias Agopian [Tue, 28 Aug 2012 01:47:35 +0000 (18:47 -0700)]
am 525705c8: Merge "Eradicate DisplayID." into jb-mr1-dev

* commit '525705c88f91e46099970491282944d4ef0041d4':
  Eradicate DisplayID.

11 years agoMerge "Eradicate DisplayID." into jb-mr1-dev
Mathias Agopian [Tue, 28 Aug 2012 01:45:34 +0000 (18:45 -0700)]
Merge "Eradicate DisplayID." into jb-mr1-dev

11 years agoam 25e234f1: am f456d32d: (-s ours) am d7007cd4: Merge "Forward compatibility patch."
Jeff Brown [Tue, 28 Aug 2012 01:06:09 +0000 (18:06 -0700)]
am 25e234f1: am f456d32d: (-s ours) am d7007cd4: Merge "Forward compatibility patch."

* commit '25e234f11ae93b3c882694f0d7ec1d4526ed7526':
  Forward compatibility patch.

11 years agoam f456d32d: (-s ours) am d7007cd4: Merge "Forward compatibility patch."
Jeff Brown [Tue, 28 Aug 2012 01:03:45 +0000 (18:03 -0700)]
am f456d32d: (-s ours) am d7007cd4: Merge "Forward compatibility patch."

* commit 'f456d32d3c3aea966b5fba43e6d34f72df06c60d':
  Forward compatibility patch.

11 years agoam d7007cd4: Merge "Forward compatibility patch."
Jeff Brown [Tue, 28 Aug 2012 00:57:26 +0000 (17:57 -0700)]
am d7007cd4: Merge "Forward compatibility patch."

* commit 'd7007cd4bb2016a09ae8e8f746118f81fdd27f02':
  Forward compatibility patch.

11 years agoEradicate DisplayID.
Mathias Agopian [Mon, 27 Aug 2012 23:28:24 +0000 (16:28 -0700)]
Eradicate DisplayID.

DisplayDevices are now keyed of the wp<IBinder> the client uses.
DisplayID has now become DisplayType which is just used to identify
physical displays (as opposed to virtual displays such as wifi displays).

Change-Id: I0c5968f2c902dcd699a7e0afacf833ff070c12ea

11 years agoMerge "Forward compatibility patch."
Jeff Brown [Tue, 28 Aug 2012 00:26:05 +0000 (17:26 -0700)]
Merge "Forward compatibility patch."

11 years agoam a50b51c0: Compatibility work around for bad graphics driver dependency.
Jeff Brown [Tue, 28 Aug 2012 00:23:44 +0000 (17:23 -0700)]
am a50b51c0: Compatibility work around for bad graphics driver dependency.

* commit 'a50b51c03aca449920fc8581a738032a7bce7150':
  Compatibility work around for bad graphics driver dependency.

11 years agoCompatibility work around for bad graphics driver dependency.
Jeff Brown [Tue, 28 Aug 2012 00:06:39 +0000 (17:06 -0700)]
Compatibility work around for bad graphics driver dependency.

This is a compatibility shim for one product whose drivers
are depending on SurfaceComposerClient::getDisplayInfo(
int, DisplayInfo*) when it really shouldn't.

Revert this patch when the problem has been resolved.

Bug: 7065398
Change-Id: I6542691b81fd1b1e1d79500a62e82d40a3d51db7

11 years agoam 1ae49e3f: Merge "Remove unused "layer" argument from show()." into jb-mr1-dev
Jeff Brown [Tue, 28 Aug 2012 00:19:35 +0000 (17:19 -0700)]
am 1ae49e3f: Merge "Remove unused "layer" argument from show()." into jb-mr1-dev

* commit '1ae49e3fef34ee38f8dfeb08b5914e3362af3b2f':
  Remove unused "layer" argument from show().

11 years agoam e310c394: Merge "Banish DisplayID from the SurfaceFlinger API." into jb-mr1-dev
Jeff Brown [Tue, 28 Aug 2012 00:19:34 +0000 (17:19 -0700)]
am e310c394: Merge "Banish DisplayID from the SurfaceFlinger API." into jb-mr1-dev

* commit 'e310c3949f7de7183ef43e751526a5dc4cf0d74c':
  Banish DisplayID from the SurfaceFlinger API.

11 years agoMerge "Remove unused "layer" argument from show()." into jb-mr1-dev
Jeff Brown [Tue, 28 Aug 2012 00:17:08 +0000 (17:17 -0700)]
Merge "Remove unused "layer" argument from show()." into jb-mr1-dev

11 years agoMerge "Banish DisplayID from the SurfaceFlinger API." into jb-mr1-dev
Jeff Brown [Tue, 28 Aug 2012 00:16:36 +0000 (17:16 -0700)]
Merge "Banish DisplayID from the SurfaceFlinger API." into jb-mr1-dev

11 years agoForward compatibility patch.
Jeff Brown [Mon, 27 Aug 2012 23:12:46 +0000 (16:12 -0700)]
Forward compatibility patch.

Change-Id: I8e8af0c6035aaac5e5097f1cfb198250475627ee

11 years agoRemove unused "layer" argument from show().
Jeff Brown [Mon, 27 Aug 2012 05:49:35 +0000 (22:49 -0700)]
Remove unused "layer" argument from show().

Change-Id: I8944a9f4a27c330b11e5e837c69b88c8f84145ba

11 years agoBanish DisplayID from the SurfaceFlinger API.
Jeff Brown [Sat, 25 Aug 2012 03:00:51 +0000 (20:00 -0700)]
Banish DisplayID from the SurfaceFlinger API.

Use only display tokens in the API to refer to new displays.

Don't require the caller to specify the display when creating
a surface (since in general a surface could be shown on
any display).

This is intended to be a minimum change just to update the API.
Note that SurfaceFlinger still uses DisplayID in a few places
internally that might cause some features not to work properly
when there are multiple displays (LayerScreenshot, for example).

Change-Id: I3d91eec2da406eefd97bcd53655d403ad865a7e6

11 years agoam f671385e: am 9801575a: am 908c8ff5: Merge "Fixed clang build error for libgui"
Jean-Baptiste Queru [Mon, 27 Aug 2012 15:20:05 +0000 (08:20 -0700)]
am f671385e: am 9801575a: am 908c8ff5: Merge "Fixed clang build error for libgui"

* commit 'f671385e71644b6f34a06f425aff8dd16ffc0105':
  Fixed clang build error for libgui

11 years agoam 9801575a: am 908c8ff5: Merge "Fixed clang build error for libgui"
Jean-Baptiste Queru [Mon, 27 Aug 2012 15:17:48 +0000 (08:17 -0700)]
am 9801575a: am 908c8ff5: Merge "Fixed clang build error for libgui"

* commit '9801575a65f2f9d0bdc924ec0a4bbfb6ef071bbe':
  Fixed clang build error for libgui

11 years agoam 908c8ff5: Merge "Fixed clang build error for libgui"
Jean-Baptiste Queru [Mon, 27 Aug 2012 15:15:12 +0000 (08:15 -0700)]
am 908c8ff5: Merge "Fixed clang build error for libgui"

* commit '908c8ff55482b723eddec54c6308e54a136a3e49':
  Fixed clang build error for libgui

11 years agoMerge "Fixed clang build error for libgui"
Jean-Baptiste Queru [Mon, 27 Aug 2012 14:55:26 +0000 (07:55 -0700)]
Merge "Fixed clang build error for libgui"

11 years agoReconcile with jb-mr1-release - do not merge
The Android Open Source Project [Sat, 25 Aug 2012 14:16:24 +0000 (07:16 -0700)]
Reconcile with jb-mr1-release - do not merge

Change-Id: I30ec4fc48ccc2a81fd0e5510514ba26a5d85840c

11 years agoam 225c66a4: Revert "put back the unused virtuals in Vector<>"
Mathias Agopian [Sat, 25 Aug 2012 00:24:54 +0000 (17:24 -0700)]
am 225c66a4: Revert "put back the unused virtuals in Vector<>"

* commit '225c66a48cdc3acef21ee380dc134449749d3cb3':
  Revert "put back the unused virtuals in Vector<>"

11 years agoRevert "put back the unused virtuals in Vector<>"
Mathias Agopian [Fri, 24 Aug 2012 23:55:29 +0000 (16:55 -0700)]
Revert "put back the unused virtuals in Vector<>"

This reverts commit 1648d4c13ba2eff3ea14cd87ee94028458a39f97.

Bug: 6977192

Change-Id: Idbb6b239aaed4fb1c054ce943f6ba06ede3492bb

11 years agoam 13a082e1: Added display initialization method
Andy McFadden [Fri, 24 Aug 2012 21:18:11 +0000 (14:18 -0700)]
am 13a082e1: Added display initialization method

* commit '13a082e160c2d1d8006b93a555a57035213d568b':
  Added display initialization method

11 years agoAdded display initialization method
Andy McFadden [Fri, 24 Aug 2012 17:16:42 +0000 (10:16 -0700)]
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

11 years agoam 0bceb847: surfaceflinger: fix display id selection
Jamie Gennis [Fri, 24 Aug 2012 18:18:35 +0000 (11:18 -0700)]
am 0bceb847: surfaceflinger: fix display id selection

* commit '0bceb84773882b796d9dacbaf96167cb15928d78':
  surfaceflinger: fix display id selection

11 years agoam 490aee0f: Merge "SurfaceTexture: inherit from ConsumerBase (try 2)" into jb-mr1-dev
Jamie Gennis [Fri, 24 Aug 2012 18:13:34 +0000 (11:13 -0700)]
am 490aee0f: Merge "SurfaceTexture: inherit from ConsumerBase (try 2)" into jb-mr1-dev

* commit '490aee0fc5012acf2bf0b1dfe9c09e6fcca606fc':
  SurfaceTexture: inherit from ConsumerBase (try 2)

11 years agosurfaceflinger: fix display id selection
Jamie Gennis [Fri, 24 Aug 2012 03:19:38 +0000 (20:19 -0700)]
surfaceflinger: fix display id selection

This change fixes display ID selection so that it never chooses negative
numbers as display IDs.

Change-Id: I5af1acc7b1270b371595e096b18e2a6ad250c7ba

11 years agoMerge "SurfaceTexture: inherit from ConsumerBase (try 2)" into jb-mr1-dev
Jamie Gennis [Fri, 24 Aug 2012 18:11:06 +0000 (11:11 -0700)]
Merge "SurfaceTexture: inherit from ConsumerBase (try 2)" into jb-mr1-dev

11 years agoam 9b6a395e: Revert "Added display initialization method"
Andy McFadden [Fri, 24 Aug 2012 17:16:43 +0000 (10:16 -0700)]
am 9b6a395e: Revert "Added display initialization method"

* commit '9b6a395e65ff88ab79fe92d6f112c434441ca606':
  Revert "Added display initialization method"

11 years agoRevert "Added display initialization method"
Andy McFadden [Fri, 24 Aug 2012 17:12:22 +0000 (10:12 -0700)]
Revert "Added display initialization method"

Something doesn't seem right (again).

This reverts commit 53ade0853ca003c9e917b5e7d34e1b1338d7b87d.

Change-Id: Id5786997ca9dd2a447363e8ac95213ea37468504

11 years agoam 53ade085: Added display initialization method
Andy McFadden [Fri, 24 Aug 2012 16:31:42 +0000 (09:31 -0700)]
am 53ade085: Added display initialization method

* commit '53ade0853ca003c9e917b5e7d34e1b1338d7b87d':
  Added display initialization method

11 years agoAdded display initialization method
Andy McFadden [Fri, 24 Aug 2012 00:36:41 +0000 (17:36 -0700)]
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.)

11 years agoam f4358634: teach HWC about multiple displays
Mathias Agopian [Fri, 24 Aug 2012 01:23:05 +0000 (18:23 -0700)]
am f4358634: teach HWC about multiple displays

* commit 'f435863467ab407f2a482604beed5fa6f0144c62':
  teach HWC about multiple displays

11 years agoam 30bcc614: remove support for HWC < 1.0
Mathias Agopian [Fri, 24 Aug 2012 01:23:05 +0000 (18:23 -0700)]
am 30bcc614: remove support for HWC < 1.0

* commit '30bcc61431d8e3bef779472dd52a7b156dcaba09':
  remove support for HWC < 1.0

11 years agoam e60b0687: HWComposer now has its own concept of display IDs
Mathias Agopian [Fri, 24 Aug 2012 01:23:04 +0000 (18:23 -0700)]
am e60b0687: HWComposer now has its own concept of display IDs

* commit 'e60b0687c8d49871d0c8786cabe6851f7a7783b5':
  HWComposer now has its own concept of display IDs

11 years agoteach HWC about multiple displays
Mathias Agopian [Thu, 23 Aug 2012 00:16:19 +0000 (17:16 -0700)]
teach HWC about multiple displays

Change-Id: I5e72a83d419a729835cb0e1ec45557b4d3fb56b1

11 years agoremove support for HWC < 1.0
Mathias Agopian [Wed, 22 Aug 2012 22:39:48 +0000 (15:39 -0700)]
remove support for HWC < 1.0

Change-Id: If7e676a6e3524afeb9af3875125d2131d95db38b

11 years agoHWComposer now has its own concept of display IDs
Mathias Agopian [Wed, 22 Aug 2012 06:34:09 +0000 (23:34 -0700)]
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

11 years agoam 7c9e8263: Merge "simplify further vsync handling" into jb-mr1-dev
Mathias Agopian [Thu, 23 Aug 2012 22:28:11 +0000 (15:28 -0700)]
am 7c9e8263: Merge "simplify further vsync handling" into jb-mr1-dev

* commit '7c9e82633c5c4f85b896a5879bdb25cdf659646e':
  simplify further vsync handling

11 years agoMerge "simplify further vsync handling" into jb-mr1-dev
Mathias Agopian [Thu, 23 Aug 2012 22:27:09 +0000 (15:27 -0700)]
Merge "simplify further vsync handling" into jb-mr1-dev

11 years agosimplify further vsync handling
Mathias Agopian [Tue, 21 Aug 2012 22:47:28 +0000 (15:47 -0700)]
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

11 years agoFixed clang build error for libgui
Tareq A. Siraj [Thu, 26 Jul 2012 20:04:24 +0000 (16:04 -0400)]
Fixed clang build error for libgui

Fixed the order of the statements in ANDROID_SINGLETON_STATIC_INSTANCE
macro so that the templated static member variable initialization
comes before the instantiation of the Singleton class. This
fixes the clang compile error.

Change-Id: Ic47d17e152b657f2dff3191ccc3770753fdf002b
Author: Tareq A. Siraj <tareq.a.siraj@intel.com>
Reviewed-by: Edwin Vane <edwin.vane@intel.com>
11 years agoam d12780ed: Merge "Update for cleanups in hwc interface" into jb-mr1-dev
Jesse Hall [Thu, 23 Aug 2012 16:16:49 +0000 (09:16 -0700)]
am d12780ed: Merge "Update for cleanups in hwc interface" into jb-mr1-dev

* commit 'd12780ed123b54687fea534b34f54ef9c678cdcd':
  Update for cleanups in hwc interface

11 years agoMerge "Update for cleanups in hwc interface" into jb-mr1-dev
Jesse Hall [Thu, 23 Aug 2012 16:15:53 +0000 (09:15 -0700)]
Merge "Update for cleanups in hwc interface" into jb-mr1-dev

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Thu, 23 Aug 2012 13:33:50 +0000 (06:33 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agoReconcile with jb-mr1-release - do not merge
The Android Open Source Project [Wed, 22 Aug 2012 22:35:30 +0000 (15:35 -0700)]
Reconcile with jb-mr1-release - do not merge

Change-Id: Ida7b9f23f8deb451a9e6e9f2714d7a677fb6ca1c

11 years agoRevert "Added display initialization method"
Ramanan Rajeswaran [Wed, 22 Aug 2012 21:23:50 +0000 (14:23 -0700)]
Revert "Added display initialization method"

This reverts commit 3f3956236aac97b6aa25fa89f0983d5e9d065fdb

Change-Id: Ia2a15d9a5db88add6019edf9d955cef1f73d432d

11 years agoam bc46e0ad: Merge "Revert "Added display initialization method"" into jb-mr1-dev
Ramanan Rajeswaran [Wed, 22 Aug 2012 21:27:52 +0000 (14:27 -0700)]
am bc46e0ad: Merge "Revert "Added display initialization method"" into jb-mr1-dev

* commit 'bc46e0ad869befcfa97f6272615cdeae2135008f':
  Revert "Added display initialization method"

11 years agoMerge "Revert "Added display initialization method"" into jb-mr1-dev
Ramanan Rajeswaran [Wed, 22 Aug 2012 21:25:48 +0000 (14:25 -0700)]
Merge "Revert "Added display initialization method"" into jb-mr1-dev

11 years agoRevert "Added display initialization method"
Ramanan Rajeswaran [Wed, 22 Aug 2012 21:23:50 +0000 (14:23 -0700)]
Revert "Added display initialization method"

This reverts commit 3f3956236aac97b6aa25fa89f0983d5e9d065fdb

Change-Id: Ia2a15d9a5db88add6019edf9d955cef1f73d432d

11 years agoam 8f971ff6: Pass the correct number of displays based on HWC version
Jesse Hall [Wed, 22 Aug 2012 21:19:12 +0000 (14:19 -0700)]
am 8f971ff6: Pass the correct number of displays based on HWC version

* commit '8f971ff6661c875e7adb3f14731e1579c3c80c62':
  Pass the correct number of displays based on HWC version

11 years agoUpdate for cleanups in hwc interface
Jesse Hall [Tue, 21 Aug 2012 19:05:09 +0000 (12:05 -0700)]
Update for cleanups in hwc interface

Change-Id: I363fd8b085167a1af6c14b68012bda5c62bfe59f

11 years agoPass the correct number of displays based on HWC version
Jesse Hall [Wed, 22 Aug 2012 18:50:00 +0000 (11:50 -0700)]
Pass the correct number of displays based on HWC version

Change-Id: I27372f5d3102ad56f6d67722d631ae18d37f8330

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Wed, 22 Aug 2012 13:33:48 +0000 (06:33 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agoam 9f54ac38: ui/Fence: change the TIMEOUT_NEVER value to -1
Jamie Gennis [Wed, 22 Aug 2012 02:11:06 +0000 (19:11 -0700)]
am 9f54ac38: ui/Fence: change the TIMEOUT_NEVER value to -1

* commit '9f54ac38860761ef62d9bb8282d54ff51a1a68a3':
  ui/Fence: change the TIMEOUT_NEVER value to -1

11 years agoui/Fence: change the TIMEOUT_NEVER value to -1
Jamie Gennis [Wed, 22 Aug 2012 00:03:18 +0000 (17:03 -0700)]
ui/Fence: change the TIMEOUT_NEVER value to -1

Change-Id: I3ef0a4c06f80990b53a8bf2eda6edbfcbefd0f34

11 years agoam 04930445: Merge "Add BufferItemConsumer, a simple BufferQueue consumer." into...
Eino-Ville Talvala [Tue, 21 Aug 2012 23:48:11 +0000 (16:48 -0700)]
am 04930445: Merge "Add BufferItemConsumer, a simple BufferQueue consumer." into jb-mr1-dev

* commit '04930445031c5f41707806182bb7a152e64ddede':
  Add BufferItemConsumer, a simple BufferQueue consumer.

11 years agoMerge "Add BufferItemConsumer, a simple BufferQueue consumer." into jb-mr1-dev
Eino-Ville Talvala [Tue, 21 Aug 2012 23:46:05 +0000 (16:46 -0700)]
Merge "Add BufferItemConsumer, a simple BufferQueue consumer." into jb-mr1-dev

11 years agoSurfaceTexture: inherit from ConsumerBase (try 2)
Jamie Gennis [Wed, 8 Aug 2012 01:03:04 +0000 (18:03 -0700)]
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

11 years agoReconcile with jb-mr1-release - do not merge
The Android Open Source Project [Tue, 21 Aug 2012 23:05:59 +0000 (16:05 -0700)]
Reconcile with jb-mr1-release - do not merge

Change-Id: Idb96902f4272f83b3ebc1081ace5d2511d4281b7

11 years agoam 3f395623: Added display initialization method
Andy McFadden [Tue, 21 Aug 2012 23:00:32 +0000 (16:00 -0700)]
am 3f395623: Added display initialization method

* commit '3f3956236aac97b6aa25fa89f0983d5e9d065fdb':
  Added display initialization method

11 years agoAdd BufferItemConsumer, a simple BufferQueue consumer.
Eino-Ville Talvala [Tue, 21 Aug 2012 20:37:35 +0000 (13:37 -0700)]
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

11 years agoAdded display initialization method
Andy McFadden [Mon, 20 Aug 2012 22:39:23 +0000 (15:39 -0700)]
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

11 years agofix various issues in SF's EventThread
Mathias Agopian [Tue, 21 Aug 2012 03:07:34 +0000 (20:07 -0700)]
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

11 years agoam a4cb35a2: fix various issues in SF\'s EventThread
Mathias Agopian [Tue, 21 Aug 2012 19:09:42 +0000 (12:09 -0700)]
am a4cb35a2: fix various issues in SF\'s EventThread

* commit 'a4cb35a2864d58e9a764a17623e15ab25a9964a0':
  fix various issues in SF's EventThread

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Tue, 21 Aug 2012 13:34:25 +0000 (06:34 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev