am 3b277c70: Merge change 3702 into donut

Merge commit '3b277c700e6907ee0813839604ac60df2141c557'

* commit '3b277c700e6907ee0813839604ac60df2141c557':
  Change exceptions to RuntimeException.
  Fix the way gestures are rasterized to bitmaps.