libgralloc: remove pid checks

These pid checks seem to have been left over from PMEM days.

Change-Id: I1e504bc889b90d8fed6e0be47fd21d1e3f42c50b
merge in jb-mr1-release history after reset to jb-mr1-dev
hwc: Add non-zero checks. Move warning log.

Add check for presence of non-zero number of layers.
Move the "composition after powerdown" log under that check.
Move the caching of dpy under list non-null check.

Change-Id: I99b9293e671a15ba1fb31692e30413d2bbd97867
liboverlay: close all the opened pipes after framework reboot.

b/7147557

Add initOverlay() function to close all the opened pipes when
Surfaceflinger process gets killed.

Change-Id: I9c65a61c81f9c81198f1076d6cbd27933b164c05
Signed-off-by: Iliyan Malchev <malchev@google.com>
merge in jb-mr1-release history after reset to jb-mr1-dev
merge in jb-mr1-release history after reset to jb-mr1-dev
merge in jb-mr1-release history after reset to jb-mr1-dev
hwc: Fix dpi values reported

HWC 1.1 expects DPI multiplied by 1000

Bug 7241591

Change-Id: I680da8769f53f8a18d942a3b292d96a16885ebfa
hwc: Check for the validity of the fb layer

Need to check if this is valid before doing anything
Extra NULL checks all around to prevent any invalid
lists from SurfaceFlinger

Change-Id: I57ca97167e469910bcaaa68672ae70b41a061ded
hwc: Fix tearing on HDMI. Call glFinish()

When rotator is rotating GPU writes into it causing tearing.  With hwc1.1,
framework doesnt use fbDev, which had a call to glFinish().  Consequently, this
was missed out. Adding this missing code to hwc1.1

Related-to-Bug: 7227220
Change-Id: I7287d3d73b839fef818e31c1c8a783f1fb96d9f1
Signed-off-by: Iliyan Malchev <malchev@google.com>
hwc: Call sync before draw.

Call sync before draw since draw could use rotator which reads out of the
buffer.  For that to happen cleanly, the buffer should not be in use.  Calling
sync before draw makes sure, the buffer is free to be used.

[TEMP]
Enable rotator for external video, since sync-pt is not used for external yet.

Bug: 7227220
Change-Id: I25fec8ecc158e28801f238d2829af4d635f3e2c9
Signed-off-by: Iliyan Malchev <malchev@google.com>
hwc: Close unused pipes before PAN

If the pipes are closed after PAN a blank screen is
seen when when we transition from MDP composition
to GLES composition.
We close the unused pipes at the beginning of the set
since the decision has already been made in prepare.

Bug: 7188473
Change-Id: I6f946fa3d02f1c84fb2bb8d3b8e5c823c1151fd5
Signed-off-by: Iliyan Malchev <malchev@google.com>
merge in jb-mr1-release history after reset to jb-mr1-dev
merge in jb-mr1-release history after reset to jb-mr1-dev
Reconcile with jb-mr1-release - do not merge

Change-Id: Idd2734614a14461f536f96cb09060ba7ae6cf1cf
am b35cdfaa: (-s ours) Reconcile with jb-mr1-release - do not merge

* commit 'b35cdfaac392c4d2ca73f21d69cffdd5d8dc52f7':
  hwc: Close unused pipes before PAN
  hwc: Call sync before draw.
  hwc: Fix tearing on HDMI. Call glFinish()
  hwc: Check for the validity of the fb layer
  hwc: Fix dpi values reported
  liboverlay: close all the opened pipes after framework reboot.
  hwc: Add non-zero checks. Move warning log.
  libgralloc: remove pid checks
am 68b88cf2: hwc: Handle non secure buffers

* commit '68b88cf211873e6f2cef0111c500697cd690266e':
  hwc: Handle non secure buffers
am f05c6cf5: am 68b88cf2: hwc: Handle non secure buffers

* commit 'f05c6cf5a4c9f0a84e84ffb1bb80256dee1b3d0f':
  hwc: Handle non secure buffers
am ff4f0254: hwcomposer : Use sysfs to read vysnc information

* commit 'ff4f0254be575a264504687c407e0db2fd5573d7':
  hwcomposer : Use sysfs to read vysnc information
am f9763221: am ff4f0254: hwcomposer : Use sysfs to read vysnc information

* commit 'f976322199240e3a3368550c23ac34c4c84d32b1':
  hwcomposer : Use sysfs to read vysnc information