viz: Extract Root Color Filter from Filter DAT to Improve Performance

From the DAG of SkImageFilter, extract the root filter out if it is a
color filter, and apply that using SkPaint.

Bug: 919885, 823182
Change-Id: Ia248d4390eeeba8a6e6581b2eaa800f7262800a9
Commit-Queue: weiliangc <>
Reviewed-by: Robert Phillips <>
Reviewed-by: Peng Huang <>
Cr-Commit-Position: refs/heads/master@{#625328}
1 file changed