Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Issue 1037513002: Move early outs to the top of View::Paint and OnPaintLayer (Closed)

Created:
5 years, 9 months ago by danakj
Modified:
5 years, 9 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, tdanderson+views_chromium.org, sadrul, piman, enne (OOO)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/dfc1488dea1301d4656e2a5c73b586a5058c4ce6 Cr-Commit-Position: refs/heads/master@{#322220}

Patch Set 1 #

Patch Set 2 : paint-visible-earlyouts: . #

Total comments: 2

Patch Set 3 : paint-visible-earlyouts: onpaintlayer #

Patch Set 4 : paint-visible-earlyouts: rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -53 lines) Patch
M ui/views/view.cc View 1 2 3 3 chunks +54 lines, -53 lines 0 comments Download

Messages

Total messages: 23 (12 generated)
danakj
This patch looks big due to moving the if() { .... } to a if(!) ...
5 years, 9 months ago (2015-03-24 21:07:00 UTC) #4
sky
https://codereview.chromium.org/1037513002/diff/60001/ui/views/view.cc File ui/views/view.cc (right): https://codereview.chromium.org/1037513002/diff/60001/ui/views/view.cc#newcode1467 ui/views/view.cc:1467: if (!visible_) I'm tempted to say this should be ...
5 years, 9 months ago (2015-03-24 22:11:22 UTC) #5
danakj
PTAL https://codereview.chromium.org/1037513002/diff/60001/ui/views/view.cc File ui/views/view.cc (right): https://codereview.chromium.org/1037513002/diff/60001/ui/views/view.cc#newcode1467 ui/views/view.cc:1467: if (!visible_) On 2015/03/24 22:11:21, sky wrote: > ...
5 years, 9 months ago (2015-03-24 22:15:20 UTC) #7
sky
LGTM
5 years, 9 months ago (2015-03-24 22:27:51 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1037513002/110001
5 years, 9 months ago (2015-03-24 22:31:14 UTC) #11
danakj
Oops, I dropped the early-out change for the cullset in that last patchset, put it ...
5 years, 9 months ago (2015-03-24 22:31:46 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1037513002/130001
5 years, 9 months ago (2015-03-24 22:32:43 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/46806)
5 years, 9 months ago (2015-03-25 04:01:24 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1037513002/130001
5 years, 9 months ago (2015-03-25 18:36:26 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:130001)
5 years, 9 months ago (2015-03-25 19:55:29 UTC) #22
commit-bot: I haz the power
5 years, 9 months ago (2015-03-25 19:56:11 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/dfc1488dea1301d4656e2a5c73b586a5058c4ce6
Cr-Commit-Position: refs/heads/master@{#322220}

Powered by Google App Engine
This is Rietveld 408576698