replicant-frameworks_native/libs/gui
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
..
tests libgui/SurfaceFlinger: Add getConsumerName 2015-06-09 11:28:37 -07:00
Android.mk libgui: Enable -Weverything and -Werror 2015-03-18 15:57:27 -07:00
BitTube.cpp libgui: Enable -Weverything and -Werror 2015-03-18 15:57:27 -07:00
BufferItem.cpp fix BufferItem flatten/unflatten alignment 2015-05-28 13:32:48 -07:00
BufferItemConsumer.cpp Refactor ConsumerBase and it's derived classes. 2015-05-28 13:32:18 -07:00
BufferQueue.cpp libgui: Hook up onFrameReplaced 2015-05-12 09:35:29 -07:00
BufferQueueConsumer.cpp libgui: Add generation numbers to BufferQueue 2015-06-08 11:18:16 -07:00
BufferQueueCore.cpp libgui: Add generation numbers to BufferQueue 2015-06-08 11:18:16 -07:00
BufferQueueProducer.cpp libgui/SurfaceFlinger: Add getConsumerName 2015-06-09 11:28:37 -07:00
BufferSlot.cpp libgui: Enable -Weverything and -Werror 2015-03-18 15:57:27 -07:00
CleanSpec.mk Fix missing parens in CleanSpec.mk. 2012-10-04 20:05:19 -07:00
ConsumerBase.cpp Refactor ConsumerBase and it's derived classes. 2015-05-28 13:32:18 -07:00
CpuConsumer.cpp Refactor ConsumerBase and it's derived classes. 2015-05-28 13:32:18 -07:00
DisplayEventReceiver.cpp use a socketpair instead of a pipe in BitTube 2012-04-02 18:41:10 -07:00
GLConsumer.cpp GLConsumer: Fix crop math 2015-06-11 10:20:23 -07:00
GraphicBufferAlloc.cpp libgui: Enable -Weverything and -Werror 2015-03-18 15:57:27 -07:00
GuiConfig.cpp don't use compile-time configuration of libgui as much as possible 2013-03-29 15:33:47 -07:00
IConsumerListener.cpp libgui: Enable -Weverything and -Werror 2015-03-18 15:57:27 -07:00
IDisplayEventConnection.cpp libgui: Enable -Weverything and -Werror 2015-03-18 15:57:27 -07:00
IGraphicBufferAlloc.cpp libgui: Propagate error by clearing sp<GB> 2015-06-01 14:58:35 -07:00
IGraphicBufferConsumer.cpp Fix PTS handling for buffer replacement 2015-05-13 09:43:35 -07:00
IGraphicBufferProducer.cpp libgui/SurfaceFlinger: Add getConsumerName 2015-06-09 11:28:37 -07:00
IProducerListener.cpp libgui: Enable -Weverything and -Werror 2015-03-18 15:57:27 -07:00
ISensorEventConnection.cpp libgui: Enable -Weverything and -Werror 2015-03-18 15:57:27 -07:00
ISensorServer.cpp libgui: Enable -Weverything and -Werror 2015-03-18 15:57:27 -07:00
ISurfaceComposer.cpp libgui: Enable -Weverything and -Werror 2015-03-18 15:57:27 -07:00
ISurfaceComposerClient.cpp libgui: Enable -Weverything and -Werror 2015-03-18 15:57:27 -07:00
LayerState.cpp libgui: Enable -Weverything and -Werror 2015-03-18 15:57:27 -07:00
Sensor.cpp libgui: Enable -Weverything and -Werror 2015-03-18 15:57:27 -07:00
SensorEventQueue.cpp libgui: Enable -Weverything and -Werror 2015-03-18 15:57:27 -07:00
SensorManager.cpp libgui: Enable -Weverything and -Werror 2015-03-18 15:57:27 -07:00
StreamSplitter.cpp DO NOT MERGE libgui: Prepare for IGBC::BufferItem removal 2015-03-19 13:58:07 -07:00
Surface.cpp libgui/SurfaceFlinger: Add getConsumerName 2015-06-09 11:28:37 -07:00
SurfaceComposerClient.cpp libgui: Enable -Weverything and -Werror 2015-03-18 15:57:27 -07:00
SurfaceControl.cpp libgui: Enable -Weverything and -Werror 2015-03-18 15:57:27 -07:00
SyncFeatures.cpp libgui: Only allow one return from useFenceSync 2015-03-19 10:32:51 -07:00