replicant-frameworks_native/libs
Dan Stoza 68efa84e7e GLConsumer: Fix crop math
When we have excess pixels that need to be removed from (for example)
the left and right sides, we currently do something like:

  left += excess / 2;
  right -= excess / 2;

If excess is odd, however, this removes 1 too few pixels since the odd
pixel gets rounded down twice. This changes the math to effectively:

  left += excess / 2;
  right -= (excess - excess / 2);

Which removes the correct total number of pixels.

Bug: 19611086
Change-Id: I8d1ad9fe7ba67c149794c148663d12acbccccef0
(cherry picked from commit ec4cb38750)
2015-06-11 10:20:23 -07:00
..
binder binder: add uint64 support to Parcel. 2015-05-13 09:43:35 -07:00
diskusage Add missing <unistd.h> include for close. 2015-02-19 16:58:44 -08:00
gui GLConsumer: Fix crop math 2015-06-11 10:20:23 -07:00
input am e1e3d278: Merge "Clean cruft out of makefiles." 2014-09-12 16:22:03 +00:00
ui libgui: Add generation numbers to BufferQueue 2015-06-08 11:18:16 -07:00