am 71e83e12: the visibleRegion was never set in hwcomposer

* commit '71e83e1202dc87afde9c0c31f31c129f3f99263f':
  the visibleRegion was never set in hwcomposer
This commit is contained in:
Mathias Agopian 2012-09-04 20:29:59 -07:00 committed by Android Git Automerger
commit 3266cdac8a

View File

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