replicant-frameworks_native/libs/gui
Dan Stoza ec4cb38750 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
2015-06-10 10:24:51 -07:00
..
tests libgui/SurfaceFlinger: Add getConsumerName 2015-06-08 09:40:49 -07:00
Android.mk
BitTube.cpp
BufferItem.cpp fix BufferItem flatten/unflatten alignment 2015-05-22 10:54:25 -07:00
BufferItemConsumer.cpp Refactor ConsumerBase and it's derived classes. 2015-05-18 14:29:18 -07:00
BufferQueue.cpp libgui: Hook up onFrameReplaced 2015-05-11 15:33:01 -07:00
BufferQueueConsumer.cpp libgui: Add generation numbers to BufferQueue 2015-06-03 11:09:33 -07:00
BufferQueueCore.cpp libgui: Add generation numbers to BufferQueue 2015-06-03 11:09:33 -07:00
BufferQueueProducer.cpp libgui/SurfaceFlinger: Add getConsumerName 2015-06-08 09:40:49 -07:00
BufferSlot.cpp
CleanSpec.mk
ConsumerBase.cpp Merge "Refactor ConsumerBase and it's derived classes." into mnc-dev 2015-05-18 21:29:39 +00:00
CpuConsumer.cpp Refactor ConsumerBase and it's derived classes. 2015-05-18 14:29:18 -07:00
DisplayEventReceiver.cpp
GLConsumer.cpp GLConsumer: Fix crop math 2015-06-10 10:24:51 -07:00
GraphicBufferAlloc.cpp
GuiConfig.cpp
IConsumerListener.cpp
IDisplayEventConnection.cpp
IGraphicBufferAlloc.cpp libgui: Propagate error by clearing sp<GB> 2015-06-01 13:59:15 -07:00
IGraphicBufferConsumer.cpp Fix PTS handling for buffer replacement 2015-05-12 13:10:17 -07:00
IGraphicBufferProducer.cpp libgui/SurfaceFlinger: Add getConsumerName 2015-06-08 09:40:49 -07:00
IProducerListener.cpp
ISensorEventConnection.cpp
ISensorServer.cpp Add body sensors app op - framework native 2015-05-01 13:51:45 -07:00
ISurfaceComposer.cpp
ISurfaceComposerClient.cpp
LayerState.cpp
Sensor.cpp Add body sensors app op - framework native 2015-05-01 13:51:45 -07:00
SensorEventQueue.cpp Build fix SensorEventQueue. 2015-04-24 20:30:09 -07:00
SensorManager.cpp Add body sensors app op - framework native 2015-05-01 13:51:45 -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-08 09:40:49 -07:00
SurfaceComposerClient.cpp
SurfaceControl.cpp
SyncFeatures.cpp