Add reference counting to omap_bo

Add reference counting to omap_bo to avoid freeing a buffer object
during page flip.

BUG=chrome-os-partner:12889
TEST=Tested on snow, could hotplug & resize while flipping

Change-Id: I7b65e9553427ce1668d2838712e1e18e47a80f79
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/31771
Reviewed-by: St├ęphane Marchesin <marcheu@chromium.org>
5 files changed