the visibleRegion was never set in hwcomposer

Bug: 7089478
Change-Id: I13b031b23ce908d33f431a04e1cf87831b551260
This commit is contained in:
Mathias Agopian 2012-09-04 20:25:39 -07:00
parent da8d0a5c0c
commit 71e83e1202

View File

@ -276,10 +276,10 @@ void Layer::setGeometry(
void Layer::setPerFrameData(const sp<const DisplayDevice>& hw, void Layer::setPerFrameData(const sp<const DisplayDevice>& hw,
HWComposer::HWCLayerInterface& layer) { HWComposer::HWCLayerInterface& layer) {
const sp<GraphicBuffer>& buffer(mActiveBuffer); LayerBaseClient::setPerFrameData(hw, layer);
// NOTE: buffer can be NULL if the client never drew into this // NOTE: buffer can be NULL if the client never drew into this
// layer yet, or if we ran out of memory // layer yet, or if we ran out of memory
layer.setBuffer(buffer); layer.setBuffer(mActiveBuffer);
} }
void Layer::setAcquireFence(const sp<const DisplayDevice>& hw, void Layer::setAcquireFence(const sp<const DisplayDevice>& hw,