Merge change 4737 into donut

* changes:
  Add prepareToDraw() to Bitmap for fixing http://b/issue?id=1907995.