dc: add gradient rect support