History log of /hardware/libhardware/include/hardware/hwcomposer.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4a6788b02fb2bd174ac9e2386029785f084b7fdd 01-Jul-2014 Riley Andrews <riandrews@google.com> Add interface for doing asynchonous cursor layer updates to hwcomposer

Change-Id: If2ab523b400cfb586c8e1fed98f2ebe3538c0419
/hardware/libhardware/include/hardware/hwcomposer.h
842b906dd44bf874e17334d0343ede76d3e87c50 18-Jul-2014 Jeff Brown <jeffbrown@google.com> Add new HWC_POWER_MODE_DOZE_SUSPEND power state.

Change-Id: Ice194315bc51ca25732c9e30c809bd6b39f3718f
/hardware/libhardware/include/hardware/hwcomposer.h
e83d10c1fc61ac7921d58d8818a9ad4926a207ad 07-May-2014 Dan Stoza <stoza@google.com> hwcomposer: Allow display configuration selection

Adds two functions to the HWC interface: one for querying the current
display configuration, and one for setting a new configuration. This
will enable DisplayManager to change the mode on demand.

Bug: 14320401
Change-Id: I556c509192b877b38b2103a78f937b3687f35546
/hardware/libhardware/include/hardware/hwcomposer.h
0f0b6d5ccb65f69c775accd2c2eada79c369c456 12-Jun-2014 Prashant Malani <pmalani@google.com> Merge "hwcomposer: Add function pointer for setPowerMode() callback"
02b31986cba2cd1612155a1bb72d0fb17b55b219 26-May-2014 Prashant Malani <pmalani@google.com> hwcomposer: Add function pointer for setPowerMode() callback

The blank HWC call is being replaced by a setPowerMode() call.
This incorporates all of the blank functionality, but provides added
support for display low power modes, if they are available in hardware.

Currently there are three supported modes:
- HWC_POWER_MODE_OFF : Turn screen off.
- HWC_POWER_MODE_DOZE : Put screen in low power mode.
- HWC_POWER_MODE_NORMAL : Turn screen on, and exit low power mode (if
display was previously in low power mode).

Where applicable, the device driver is expected to retain and restore
the low power mode state of the display during entry and exit from
suspend, respectively.

Bug: 13472578
Change-Id: I743ea3a2cb58247d14d7c47158b09a5309cca710
Signed-off-by: Prashant Malani <pmalani@google.com>
/hardware/libhardware/include/hardware/hwcomposer.h
91699a82eb3cf382c78a6c5ba73405f86bc394c7 05-Jun-2014 Dan Stoza <stoza@google.com> hwcomposer: Correct padding for 32/64-bit

The size of hwc_layer_1_t varies depending on whether we're building
for a 32- or 64-bit target. This change splits the padding into two
sections so that we can add more fields without changing the overall
size on either bitness.

Change-Id: Ib7c960a9feb0061586dc6398211d7d3dc012d573
/hardware/libhardware/include/hardware/hwcomposer.h
84d35492b145cebc000f8fd72818eb25b8e65c04 01-May-2014 Stewart Miles <smiles@google.com> Described restrictions for common HAL object methods.

Inheritance of HAL object is performed by composing a child structure of a
single parent structure located at offset 0 followed by new data members
and function pointers in the child structure.

For example,

struct child {
struct parent common;
int a_data_member;
void (*a_method)(struct child *c, int v);
};

HAL code assumes this layout when accessing child structures given a pointer
to a parent structure such that users write code like the following...

void child_method(struct *parent, int v) {
struct child * c = (struct child*)parent;
// do stuff with c
}

Code above will break if a member is added before "common" in "struct child".

This change adds comments that describe the restriction on the location of
parent HAL objects within a derived HAL object. HAL objects that already
have comments that describe the required location of parent objects are not
modified.

Change-Id: Ibe4300275286ef275b2097534c84f1029d761d87
/hardware/libhardware/include/hardware/hwcomposer.h
8c79c08578b51a1385759eddf25b0ec5f03e5198 14-Feb-2014 Jesse Hall <jessehall@google.com> Add HWC 1.4 with support for sideband video layers

Change-Id: Ie40668a8667e26f1d570a2f756f1178d0dcbbf5c
/hardware/libhardware/include/hardware/hwcomposer.h
4c2aa4c223963d4f5cbb3605974fbc11ca2a7a6e 21-Nov-2013 Rom Lemarchand <romlem@google.com> HAL test: statically test the size of HAL structs

Ensure none of the HAL structs change size over time.
Issues might arise when making changes without taking the different
pointer sizes for specific architectures into account.

Change-Id: I63f00004a23f09b2f46df01e7c69296766a5d03f
/hardware/libhardware/include/hardware/hwcomposer.h
7ccf148f5066ceb1a161f0d7a7d66f75c6e8d420 13-Nov-2013 Jesse Hall <jessehall@google.com> Update HWC documentation for virtual displays

Bug: 8316155
Change-Id: I56598551b07082bfff90df160b103a4158e8c8c9
/hardware/libhardware/include/hardware/hwcomposer.h
fc0ff2a8700eb11aef7a961b279d846c8a1c04c5 16-Aug-2013 Jesse Hall <jessehall@google.com> Add HWC_DISPLAY_VIRTUAL and adjust display count constants

Both surfaceflinger and HWC implementations have been defining these
themselves, making future changes more difficult. Better to define
them centrally, where they can be updated easily.

Change-Id: I793158b858c84b2470b05f9ea77cc5a0c7e247f1
/hardware/libhardware/include/hardware/hwcomposer.h
3b4732c9d5462daf52a2ee1a42410bb0220fd28f 10-Jul-2013 Mathias Agopian <mathias@google.com> bump HWC version to 1.3, add support for float crop rectangle

Change-Id: I8601ecc9f39052000b872805be1637ee73b0d3e1
/hardware/libhardware/include/hardware/hwcomposer.h
380f45dade4a917e6e72c4ce756a20f6242f14fd 20-Mar-2013 Jesse Hall <jessehall@google.com> Move virtual displays out of HWC 1.2, mark experimental

Bug: 8384764
Change-Id: I388ff3f46893b395e5c4187242f51ad7bb58da24
/hardware/libhardware/include/hardware/hwcomposer.h
e3e0a570a85ea40ce215e80679ba4ae1b014664f 30-Jan-2013 Mathias Agopian <mathias@google.com> add support for plane-alpha in HWC

Change-Id: Ied228e689ca892c505fbd811fd2b8579287e4ac6
/hardware/libhardware/include/hardware/hwcomposer.h
af05c912e1afa1f7d7b3f4b1d8b3034427abc37b 14-Jan-2013 Jesse Hall <jessehall@google.com> am a8c06116: Merge "Remove remnants of HWC 0.x"

* commit 'a8c061169752cbaf335a35e49568b7fe7d7e83cd':
Remove remnants of HWC 0.x
71b9c1fab92727b1463226681d7bd61aac85291b 11-Jan-2013 Jesse Hall <jessehall@google.com> Remove remnants of HWC 0.x

Change-Id: I85f4b95e8db44998abc07686a554d3e802a6a4a9
/hardware/libhardware/include/hardware/hwcomposer.h
48697f6dc249d1238243677de77d3a0eb6a17b3f 21-Nov-2012 Mathias Agopian <mathias@google.com> Fix HWC documentation.

Specify more clearly the behavior of compositionType
and hints.

Change-Id: I9abdccedd904b2fba783381bf9e2f8975ede8d67
/hardware/libhardware/include/hardware/hwcomposer.h
c7545189c8b260bbaf09653407450418a3d1860b 09-Oct-2012 Jamie Gennis <jgennis@google.com> hwcomposer: Specify set() call error behavior.

Bug: 7308829
Change-Id: Ibab6f0d2929860f02c17d6ffadb326fc0c333c4d
/hardware/libhardware/include/hardware/hwcomposer.h
d91697ab8fee9b4c55170230f355f5a25eceefaf 20-Sep-2012 Jesse Hall <jessehall@google.com> Document reentrancy and error conditions

The hotplug callback is non-reentrant. The display config functions
return an error if called for a disconnected display type.

Change-Id: I52d11a53f9b30a7c39e98b0a9b07eb97a3d2becd
/hardware/libhardware/include/hardware/hwcomposer.h
6b01e2eaf7fb7f167730c0bde1b55ae7ac928060 15-Sep-2012 Jesse Hall <jessehall@google.com> Layer flags won't change between prepare and set

Change-Id: I0f25766976e4f783066e5b6fd917d1769906e43e
/hardware/libhardware/include/hardware/hwcomposer.h
7cb03d79b3040d9b43ffc81414e9853e8a57adb1 07-Sep-2012 Jesse Hall <jessehall@google.com> Add outbuf fields for HWC 1.2 virtual displays

Also rename HWC_DISPLAY_RESOLUTION_* to HWC_DISPLAY_WIDTH and
HWC_DISPLAY_HEIGHT for consistency.

Change-Id: Iabe6db0816f6f6eaaac24c3c9ae554177bcabf1d
/hardware/libhardware/include/hardware/hwcomposer.h
2c13759c61dd111efc9509ddf37330f50f706f64 29-Aug-2012 Jesse Hall <jessehall@google.com> Add new HWC 1.1 queries and hotplug callback

Change-Id: I40164e60b33174e98a3843ec99f1680b1bb1c675
/hardware/libhardware/include/hardware/hwcomposer.h
0a0a41653d82552e601980c8793fcb07e3863044 21-Aug-2012 Jesse Hall <jessehall@google.com> Simplify and clean up legacy decisions

During the HWC 0.x evolution, some fields were left optional or
organized strangely to avoid breaking backwards compatibility. Since
we're breaking it in the transition to HWC 1.0 anyway, we can clean
these up a little.

* The current callbacks are now registered immediately after the
device is opened and guaranteed to be present, so the implementation
can rely on them being present.

* The hwc_methods_t structure is gone, with its two methods folded
into the main hwc_composer_device_1_t.

* All methods and callbacks are now required except dump(). New
methods and callbacks we add in the future will still be optional
for backwards compatibility.

Change-Id: I5d58774a5144016993c12df3dd6ad2a5d746bee9
/hardware/libhardware/include/hardware/hwcomposer.h
43b51d9fdd7a447c9de7bf30960a1963c93ff5c3 22-Aug-2012 Jesse Hall <jessehall@google.com> Add NUM_DISPLAY_TYPES query and refine display list semantics

Change-Id: I740859bfa2b126edcdf06f7b2c8208770bc864f9
/hardware/libhardware/include/hardware/hwcomposer.h
43923defb76b01a84e10f72de80e79a31ad68365 21-Aug-2012 Jesse Hall <jessehall@google.com> Merge "HWC 1.1: add FRAMEBUFFER_TARGET layer type" into jb-mr1-dev
d18c83fc044a5f1d74ebe59bea7763b75c4d00d7 17-Aug-2012 Jesse Hall <jessehall@google.com> HWC 1.1: add FRAMEBUFFER_TARGET layer type

Change-Id: I61965c343dceb4137bc439b49ea90ec13183b719
/hardware/libhardware/include/hardware/hwcomposer.h
705d2912b70ae0dc8d035d475cf75f64c1a4c4b6 16-Aug-2012 Colin Cross <ccross@android.com> hwc: update blank documentation to specify that blank is synchronous

Change the documentation of the blank function in the hw composer to
specify that the screen state transition must be complete when the
function returns.

Change-Id: Ibd0a9cdef13991c36cabada5fc0e4f7bb8fa7af9
/hardware/libhardware/include/hardware/hwcomposer.h
ac3f7e195cadcf1f826340976a228fd5bbcdb807 01-Aug-2012 Jesse Hall <jessehall@google.com> Simplify prepare and set semantics (comments only)

Documentation updated for semantic changes vs. HWC 0.x:

* Prepare won't be called with NULL pointers. This used to be used to
disable hardware composition, though that wasn't documented. Now
we'll call prepare with non-NULL pointers but the layer list will
have zero layers.

* Set won't be called with NULL pointers. This used to cause the
display to turn off; that is now done by calling the blank() method,
which is no longer optional.

Change-Id: I9c69dc34f64e499a5ba5f8729836e7c216f8c733
/hardware/libhardware/include/hardware/hwcomposer.h
f9d6cd7dee62789b220033c926c87deab8991bde 31-Jul-2012 Jesse Hall <jessehall@google.com> Add multi-display and flip fence to HWC

Change-Id: I3b0446050648e2b386ffb32976c9943b6fd9793d
/hardware/libhardware/include/hardware/hwcomposer.h
85ab59a147eb67cd17a9348949d5a365bf702a5f 31-Jul-2012 Jesse Hall <jessehall@google.com> Revert "Add multi-display and flip fence to HWC"

This reverts commit 1d51b2b9fc713da6de18117bc19508ecdfde4f23

Change-Id: I1ae46d8cae1cb3064800cd24df56347b05eb6059
/hardware/libhardware/include/hardware/hwcomposer.h
65bed1f947ad9eb992c02a3563bd64ef05c4e268 26-Jul-2012 Jesse Hall <jessehall@google.com> Add multi-display and flip fence to HWC

Change-Id: I31b4fc293220bc51169971df93347dd35fdc30ef
/hardware/libhardware/include/hardware/hwcomposer.h
38fccf483b19a0dd2431cb8515e7a2cc5546b373 13-Jul-2012 Colin Cross <ccross@android.com> hwcomposer: add a new blank operation

Add a new blank operation to be called by surfaceflinger when the screen
turns on or off. Also rev the API version to 1.1 for the new field.

Change-Id: I266fb33f66184538e34cfc319f63cf809dcb2f18
/hardware/libhardware/include/hardware/hwcomposer.h
d479ad22a0254fa0b5358fe82fa404e3e96c631a 06-Jun-2012 Jesse Hall <jessehall@google.com> Introduce HWC_DEVICE_API_VERSION_1_0

The new version adds an acquire and release fence to each layer,
providing explicit producer->hwc and hwc->producer synchronization.

Change-Id: Ibd6e3c7b3515c012c767246e6d6514274fdef01d
/hardware/libhardware/include/hardware/hwcomposer.h
e291f71e0a25ac9bb39fb754c599b710ab8f59d5 14-May-2012 Mathias Agopian <mathias@google.com> split hwcomposer.h

hwcomposer_defs.h now contains enums, which are essentially names.
This won't change when we rev the h/w composer API (new ones will be added instead).

we do this to avoid having to abstract all these constants in higher
level APIs; instead hwcomposer_defs.h can be included without exposing
the hwcomposer's data structures (which are a lot more fragile wrt.
backward compatibility)

Change-Id: Ifb514f64de02a599fdd2d31c188327209ccb0ffc
/hardware/libhardware/include/hardware/hwcomposer.h
6b7adef0ef38f568099eab38d6865f402c92235b 30-Apr-2012 Jamie Gennis <jgennis@google.com> hwcomposer: clarify vsync timestamp meaning

This change clarifies the meaning of the HWC vsync timestamp to specify that
the timestamp must be relative to the system monotonic clock.

Change-Id: I4386ce90511fd5b8f8e988917da637d84d86f026
/hardware/libhardware/include/hardware/hwcomposer.h
eb67160b995a504dd70a8f29d228ec837341eb07 25-Apr-2012 Mathias Agopian <mathias@google.com> fix typo in documentation

Change-Id: I2c55034c25edd466180cd9c5718c2ad568aeedff
/hardware/libhardware/include/hardware/hwcomposer.h
6d3fec70d86fe8e8fb71b233d2de727fee3f6f3f 11-Apr-2012 Mathias Agopian <mathias@google.com> improve hwc VSYNC documentation

Change-Id: I5820d8fa183701ebbc0a825cf27bd0004b47d62e
/hardware/libhardware/include/hardware/hwcomposer.h
b08d45dff634673e6dc5901a65f4c04bfdabf76e 24-Mar-2012 Mathias Agopian <mathias@google.com> add support for VSYNC events in h/w composer HAL

Change-Id: Ic19a41ae522a236f45957e50c792934d987b116a
/hardware/libhardware/include/hardware/hwcomposer.h
81c323dd54d5f0ea1e75ab392187608049b2326c 25-Mar-2012 Mathias Agopian <mathias@google.com> improve HWC versioning

Change-Id: Ieb50629f23c0d2b7af12c5541a8278a0979d2ee4
/hardware/libhardware/include/hardware/hwcomposer.h
eb8fb508148d809166a30783a14e186fda0e31c9 04-Feb-2012 Mathias Agopian <mathias@google.com> add support for setting the background color

this is a revision of the h/w composer API. This change
is binary backward compatible.

Change-Id: Id4cf43447594db9049f7e2c44ea08157ca725129
/hardware/libhardware/include/hardware/hwcomposer.h
9c5466b6167a773eb4a313a59fddbcd986973120 20-Dec-2011 Jamie Gennis <jgennis@google.com> HWComposer: update the hwc_layer::handle docs

Change-Id: I3c1211146b2e5f84546724c86f344bd2e63bd55c
/hardware/libhardware/include/hardware/hwcomposer.h
71212e3fca328630aba1ebfa1299a8719b80f476 22-Nov-2011 Mathias Agopian <mathias@google.com> improve h/w composer documentation

Change-Id: Ia3f47c1750f5a436037e4391d6744d63639ee099
/hardware/libhardware/include/hardware/hwcomposer.h
fb410365ca67d36d4c81d7826712c6a05437612f 16-Nov-2011 Mathias Agopian <mathias@google.com> improve hw composer documentation

Change-Id: I39363e37417991b9853309154d6691240e706acf
/hardware/libhardware/include/hardware/hwcomposer.h
d6afef62ff8ea1fde3a060ac5c5d887c7523b359 02-Aug-2011 Mathias Agopian <mathias@google.com> Add a h/w composer HAL API to allow the HAL to trigger a redraw

This is useful in various situations, for instance if the HAL
wants to change its compositing strategy.

Bug: 4488017
Change-Id: Idc410c689af30a2c9613dc3141e323d6e02a5648
/hardware/libhardware/include/hardware/hwcomposer.h
158549c89405186d9ecaefd3811cfae3949056ee 02-Dec-2010 Erik Gilling <konkers@android.com> gralloc: add dump hooks to gralloc/hwcomposer

Change-Id: I27bf46103b4d1d547c42a6de4f3270a6dfd7b7ec
/hardware/libhardware/include/hardware/hwcomposer.h
e99520400f228e45b1feff28eb4105b8e5599196 08-Dec-2010 Erik Gilling <konkers@android.com> gralloc: add padding to alloc_device_t and hwc_composer_device_t

also adds version #defines

Change-Id: I89f19fc7811ea9c9efb579a9f6abb4c3d9011bbf
/hardware/libhardware/include/hardware/hwcomposer.h
45e2371cb954a8f8e0aee16d1ee8bec7eae9b897 01-Dec-2010 Louis Huemiller <lhuemill@google.com> const native_handle_t* -> buffer_handle_t

Change-Id: If4ac1bcfba7192ac1339039cac75f76a5c09f4c6
/hardware/libhardware/include/hardware/hwcomposer.h
38476faf8f4ed38d6b591613a416b2fe14d327b1 23-Nov-2010 Louis Huemiller <lhuemill@google.com> Hardware Composer add const for handle pointer

Change-Id: Icf53be12ed43bce19b152fa7f1dee104d713b8da
/hardware/libhardware/include/hardware/hwcomposer.h
871815b5f144048b63a18ef764f82e89394899fa 26-Oct-2010 Louis Huemiller <lhuemill@google.com> hwcomposer.h - Add comment that buffer handles in a list must be unique

Change-Id: Iaa4984258572b46d6ded4c74b616b842003031c8
/hardware/libhardware/include/hardware/hwcomposer.h
cdd44a0db36749af5036e903e4867b279ef420df 13-Aug-2010 Mathias Agopian <mathias@google.com> added a new hint to tell SF it should clear the FB for some layers

Change-Id: I784e7c5be2eab84c321773dc53b4cb657ca9a457
/hardware/libhardware/include/hardware/hwcomposer.h
5d3de309f44f6a72f2a46db792f3865088897039 06-Aug-2010 Mathias Agopian <mathias@google.com> first stab at hwcomposer HAL and default implementation.

Change-Id: I7ff47b94a6b34a8f61031bd94e936a088dcea6ab
/hardware/libhardware/include/hardware/hwcomposer.h