OSDN Git Service

Merge commit 'ec41d55b8d018f349f7687cfe491651db600b51d'
authorChad Jones <chadj@google.com>
Thu, 29 Jan 2015 18:32:25 +0000 (10:32 -0800)
committerChad Jones <chadj@google.com>
Thu, 29 Jan 2015 18:32:25 +0000 (10:32 -0800)
1  2 
include/gui/CpuConsumer.h
libs/gui/CpuConsumer.cpp

Simple merge
@@@ -170,9 -190,10 +190,10 @@@ status_t CpuConsumer::lockNextBuffer(Lo
              reinterpret_cast<uint8_t*>(bufferPointer);
      nativeBuffer->width  = mSlots[buf].mGraphicBuffer->getWidth();
      nativeBuffer->height = mSlots[buf].mGraphicBuffer->getHeight();
-     nativeBuffer->format = mSlots[buf].mGraphicBuffer->getPixelFormat();
+     nativeBuffer->format = format;
+     nativeBuffer->flexFormat = flexFormat;
      nativeBuffer->stride = (ycbcr.y != NULL) ?
 -            ycbcr.ystride :
 +            static_cast<uint32_t>(ycbcr.ystride) :
              mSlots[buf].mGraphicBuffer->getStride();
  
      nativeBuffer->crop        = b.mCrop;