static void end_oplist_flush_if_not_unique(const sk_sp<GrOpList>& opList) { if (!opList->unique()) { // TODO: Eventually this should be guaranteed unique: http://skbug.com/7111 opList->endFlush(); } }