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

Issue 958843004: Fix for 424682: Draw correct repaint regions instead of a conservative bounding box (Closed)

Created:
5 years, 10 months ago by daplatz
Modified:
5 years, 9 months ago
Reviewers:
danakj, enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Draw correct repaint regions instead of a conservative bounding box Previously, the update_rect() of the LayerImpl was used for the repaint regions in the DebugRectHistory; now the base LayerImpl class defines a virtual method giving back an invalidation Region that is overwritten by PictureLayerImpl to use the already existent invalidations_ Region. Regions give a more tighter bound on the invalidations than the single conservative rect that was used before on a per-layer basis. BUG=424682 Committed: https://crrev.com/350219ee4e5d02ca86f2f898172411f7da3d6902 Cr-Commit-Position: refs/heads/master@{#319094}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Refactoring according to suggestions by danakj #

Patch Set 3 : reverted twin-layer check as it does not solve it #

Total comments: 2

Patch Set 4 : Updated PictureLayerImpl::GetInvalidationRegion to calculate intersection of invalidation_ and upda… #

Total comments: 7

Patch Set 5 : ran git cl format and improved comment #

Patch Set 6 : added name to AUTHORS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -7 lines) Patch
M AUTHORS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/debug/debug_rect_history.cc View 1 2 3 4 1 chunk +11 lines, -7 lines 0 comments Download
M cc/layers/layer_impl.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M cc/layers/picture_layer_impl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (15 generated)
daplatz
hi danakj, attached my fix for 424682. cheers, daniel
5 years, 10 months ago (2015-02-26 18:20:23 UTC) #2
danakj
I updated your CL description a little (fixed class names and some typos). A few ...
5 years, 10 months ago (2015-02-26 23:53:05 UTC) #3
daplatz
made the changed according to your suggestions. https://codereview.chromium.org/958843004/diff/1/cc/debug/debug_rect_history.cc File cc/debug/debug_rect_history.cc (left): https://codereview.chromium.org/958843004/diff/1/cc/debug/debug_rect_history.cc#oldcode71 cc/debug/debug_rect_history.cc:71: if (!layer->update_rect().IsEmpty() ...
5 years, 9 months ago (2015-02-27 11:04:56 UTC) #4
daplatz
please not that in patch-set 2 i forgot to check in the change in debug_rect_history ...
5 years, 9 months ago (2015-02-27 12:06:55 UTC) #5
danakj
On 2015/02/27 12:06:55, daplatz wrote: > please not that in patch-set 2 i forgot to ...
5 years, 9 months ago (2015-02-27 19:07:36 UTC) #7
enne (OOO)
I have vague perf worries about proliferating region everywhere. What about intersecting the invalidation region ...
5 years, 9 months ago (2015-02-27 19:25:27 UTC) #8
danakj
On 2015/02/27 19:25:27, enne wrote: > I have vague perf worries about proliferating region everywhere. ...
5 years, 9 months ago (2015-02-27 19:30:48 UTC) #9
daplatz
Just to confirm i got this right: Do you mean that the intersection should be ...
5 years, 9 months ago (2015-02-27 21:09:58 UTC) #10
danakj
https://codereview.chromium.org/958843004/diff/40001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/958843004/diff/40001/cc/layers/picture_layer_impl.cc#newcode609 cc/layers/picture_layer_impl.cc:609: return invalidation_; you can intersect it here
5 years, 9 months ago (2015-02-27 21:10:48 UTC) #11
danakj
https://codereview.chromium.org/958843004/diff/40001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/958843004/diff/40001/cc/layers/picture_layer_impl.cc#newcode609 cc/layers/picture_layer_impl.cc:609: return invalidation_; On 2015/02/27 21:10:48, danakj wrote: > you ...
5 years, 9 months ago (2015-02-27 21:25:35 UTC) #12
daplatz
On 2015/02/27 21:25:35, danakj wrote: > https://codereview.chromium.org/958843004/diff/40001/cc/layers/picture_layer_impl.cc > File cc/layers/picture_layer_impl.cc (right): > > https://codereview.chromium.org/958843004/diff/40001/cc/layers/picture_layer_impl.cc#newcode609 > ...
5 years, 9 months ago (2015-02-28 18:04:57 UTC) #13
danakj
LGTM w/ a few comments https://codereview.chromium.org/958843004/diff/60001/cc/debug/debug_rect_history.cc File cc/debug/debug_rect_history.cc (right): https://codereview.chromium.org/958843004/diff/60001/cc/debug/debug_rect_history.cc#newcode79 cc/debug/debug_rect_history.cc:79: it.has_rect(); this doesn't look ...
5 years, 9 months ago (2015-03-02 20:10:53 UTC) #14
daplatz
as always: thanks for helpful comments. i did not know about git cl format yet. ...
5 years, 9 months ago (2015-03-02 20:28:02 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/958843004/80001
5 years, 9 months ago (2015-03-02 21:21:42 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/46735)
5 years, 9 months ago (2015-03-02 21:40:42 UTC) #24
daplatz
On 2015/03/02 21:40:42, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 9 months ago (2015-03-02 22:35:20 UTC) #25
enne (OOO)
From http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/46745/steps/presubmit/logs/stdio: ** Presubmit Warnings ** daplatz@googlemail.com is not in AUTHORS file. If you are ...
5 years, 9 months ago (2015-03-02 22:48:06 UTC) #26
daplatz
On 2015/03/02 22:48:06, enne wrote: > From > http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/46745/steps/presubmit/logs/stdio: > > ** Presubmit Warnings ** ...
5 years, 9 months ago (2015-03-03 19:51:53 UTC) #27
danakj
On 2015/03/03 19:51:53, daplatz wrote: > On 2015/03/02 22:48:06, enne wrote: > > From > ...
5 years, 9 months ago (2015-03-03 19:55:33 UTC) #28
daplatz
Ok, now i did. Sorry, should read more careful... On Mar 3, 2015 8:55 PM, ...
5 years, 9 months ago (2015-03-03 20:11:11 UTC) #29
enne (OOO)
lgtm
5 years, 9 months ago (2015-03-03 20:49:44 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/958843004/100001
5 years, 9 months ago (2015-03-03 20:50:22 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/1698)
5 years, 9 months ago (2015-03-03 20:57:18 UTC) #35
daplatz
On 2015/03/03 20:57:18, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 9 months ago (2015-03-04 07:54:43 UTC) #36
danakj
On 2015/03/04 07:54:43, daplatz wrote: > On 2015/03/03 20:57:18, I haz the power (commit-bot) wrote: ...
5 years, 9 months ago (2015-03-04 16:51:47 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/958843004/100001
5 years, 9 months ago (2015-03-04 16:52:30 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/2044)
5 years, 9 months ago (2015-03-04 17:02:18 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/958843004/100001
5 years, 9 months ago (2015-03-04 19:00:50 UTC) #43
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 9 months ago (2015-03-04 19:04:51 UTC) #44
commit-bot: I haz the power
5 years, 9 months ago (2015-03-04 19:05:34 UTC) #45
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/350219ee4e5d02ca86f2f898172411f7da3d6902
Cr-Commit-Position: refs/heads/master@{#319094}

Powered by Google App Engine
This is Rietveld 408576698