Flush text contexts before drawing text as path

BUG=416289

Review URL: https://codereview.chromium.org/636233008
2 files changed