Change-Id: I2c3e6daa10eb9eb651be52bf9387008f154b176d
http://b/
2650954
return false;
}
+ // the surface may have expanded the dirty region so we must to pass that
+ // information back to the plugin.
+ if (dirtyRect) {
+ Rect dirtyBounds = dirtyRegion.getBounds();
+ dirtyRect->left = dirtyBounds.left;
+ dirtyRect->right = dirtyBounds.right;
+ dirtyRect->top = dirtyBounds.top;
+ dirtyRect->bottom = dirtyBounds.bottom;
+ }
+
ssize_t bpr = info.s * bytesPerPixel(info.format);
bitmap->format = convertPixelFormat(info.format);