Move early outs to the top of View::Paint and OnPaintLayer
This makes the CullSet check into an early out instead of an if-block wrapping a whole function. It also moves the |visible_| early out to the same place from PaintCommon(). This hints at combining Paint() and PaintCommont(). This also moves the |visible_| early out to the other caller of PaintCommon() which is OnPaintLayer(), and can early out before doing the solid color clear. BUG=466426 Review URL: https://codereview.chromium.org/1037513002 Cr-Commit-Position: refs/heads/master@{#322220}
Showing
Please register or sign in to comment