Reset the FrameNumber for dropped frame in async mode

In Async, reset the framenumber of frames dropped by the BufferQueue.
This allows the client to dequeue buffers based on when they were put in
FREE state i.e. released by the consumer or dropped from the queue.

Change-Id: Id2e54385ea7ea4ceff472532015872f5466228d6
fix valgrind ioctl warning.

Initialize local variable to avoid syscall ioctl warning.

Change-Id: I33a90917856018a8527305bb362948ef03bd734c
Origin-Change-Id: I022ebce40b3774a815639a5af34bc7aeb2489936
Signed-off-by: Jin Wei <wei.a.jin@intel.com>
Signed-off-by: Jian Luo <jian.luo@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 62797
egl: Use absolute /system/lib path

Don't use a relative system/lib path to libGLES* libraries.  Relative
path leads to an assert when starting a GLES using application from
a non-root directory.

Change-Id: I97b0472657ae98e14679d5bf51c8d76b34cb45a0
Fix aliasing violations
surfaceflinger: Don't crash on missing functions in hwcomposers

Some hwcomposers -- most notably hwcomposer.default.so -- don't
implement blank() or eventControl().
Don't crash when trying to use them.

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
surfaceflinger: Handle screen timeout on hw without vsync

timeout currently at 1 second waiting for vsync. With
this change timeout happens at 16ms.

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>