Merge change 3701 into donut

* changes:
  Fix the way gestures are rasterized to bitmaps.