Disable paint optimization as incompatible to noneon

(cherry picked from commit 4f70fb9a9de71157c05406db84ead83e7a777400)