Remove uses of SkCanvas::flush

afaict the perf surprises associated with: (Remove SkBaseDevice::flush)

were bc Ganesh resolves MSAA buffers for SkCanvas::flush but doesn't do so for GrDirectContext::flush.

Where possible this CL switches SkCanvas::flush to SkSurface::flush (which will also resolve MSAA buffers) so that when relands there should not be any performance surprises.

Change-Id: I705ad6219f0f625a88cf3f9e8b2418a3182d298c
Commit-Queue: Robert Phillips <>
Reviewed-by: Adlai Holler <>
10 files changed