Add support for custom buffer sizes.

Add native window properties NATIVE_WINDOW_SET_BUFFERS_SIZE to the
perform function of SurfaceTextureClient to set the user defined size
of graphic buffers.

(cherry picked from commit b320f1692cb3be1b18e1224ec591a9de5a3fe45d)

Change-Id: I35ef6e4f60522220dad026220f1777eb55a9d230
Merge "Add support for custom buffer sizes."
Merge commit 'android-4.2.2_r1' into merge_branch

* commit 'android-4.2.2_r1':
  [DO NOT MERGE] GraphicBufferAllocator: stall alloc for async frees
  Revert "ConsumerBase: free buffers outside the lock"
  DO NOT MERGE GraphicBufferAllocator: make frees async
  ConsumerBase: free buffers outside the lock
  DO NOT MERGE - native_fence_sync: fix an enum name
  make transform hint multi-display aware
  gltrace: Make sure device is debuggable.
  fix typo that broke all the builds
  workaround: don't reset compositionType to HWC_FRAMEBUFFER [DO NOT MERGE]
  workaround: don't reset compositionType to HWC_FRAMEBUFFER [DO NOT MERGE]
  fix an out-of-bounds memory access
  Reset compositionType to HWC_FRAMEBUFFER before calling prepare()
  Reduce emulator logspam
  bugreport: Add /proc/interrupts dump
  bugreport: Add wlan FW counters dump for bcmdhd
  Always set vertex alpha when drawing screenshot layers
  SurfaceFlinger: add animation transactions

Conflicts:
	libs/ui/GraphicBufferAllocator.cpp

Change-Id: Iafc42b99071fbc65f211d7a671ef40c74264d9cc
Merge "Merge commit 'android-4.2.2_r1' into merge_branch"
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 and use this frame before the other
queued frames which may be with the MDP.

CRs-fixed: 448606
Change-Id: Icaabf77b55a7275dc98ba1fdfba89508feb92145
Merge "Reset the FrameNumber for dropped frame in async mode"