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

Issue 79173005: Improve DamageTracker performance. (Closed)

Created:
7 years, 1 month ago by ostap
Modified:
7 years ago
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Improve DamageTracker performance. Use single rect_history_ map for layer damage computation with extra boolean per region to mark regions for layers that were deleted. Reduces number of map search ~3 times and insertions/deletions ~5 times (on the mobile.pcmag.com page). DamageTracker unit test passes. BUG=316180 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=237174

Patch Set 1 #

Total comments: 15

Patch Set 2 : Update by review comments. #

Patch Set 3 : hash_map is replaced by sorted vector #

Total comments: 6

Patch Set 4 : Updated by review comments. #

Patch Set 5 : Fix typos in comments. #

Patch Set 6 : Fix clang compile issues. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -56 lines) Patch
M cc/trees/damage_tracker.h View 1 2 3 4 5 2 chunks +23 lines, -10 lines 0 comments Download
M cc/trees/damage_tracker.cc View 1 2 3 4 7 chunks +65 lines, -46 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
ostap
Don't know who should review this. Git cl script suggested David or Dana.
7 years, 1 month ago (2013-11-20 23:02:29 UTC) #1
enne (OOO)
+shawnsingh
7 years, 1 month ago (2013-11-20 23:13:30 UTC) #2
danakj
some style nits, but shawnsingh is the right person to review this https://codereview.chromium.org/79173005/diff/1/cc/trees/damage_tracker.cc File cc/trees/damage_tracker.cc ...
7 years, 1 month ago (2013-11-21 00:13:40 UTC) #3
shawnsingh
Two main comments - one about mailboxing, the other about template containers. Other comments are ...
7 years, 1 month ago (2013-11-21 09:56:02 UTC) #4
ostap
https://codereview.chromium.org/79173005/diff/1/cc/trees/damage_tracker.cc File cc/trees/damage_tracker.cc (right): https://codereview.chromium.org/79173005/diff/1/cc/trees/damage_tracker.cc#newcode106 cc/trees/damage_tracker.cc:106: // - To correctly manage exposed rects, two RectMaps ...
7 years, 1 month ago (2013-11-21 17:06:23 UTC) #5
ostap
I have played a bit more with this and it appears that for small number ...
7 years, 1 month ago (2013-11-22 21:15:57 UTC) #6
shawnsingh
On 2013/11/22 21:15:57, ostap wrote: > I have played a bit more with this and ...
7 years, 1 month ago (2013-11-22 21:19:55 UTC) #7
ostap
On 2013/11/22 21:19:55, shawnsingh wrote: > On 2013/11/22 21:15:57, ostap wrote: > > I have ...
7 years, 1 month ago (2013-11-22 21:47:07 UTC) #8
ostap
On 2013/11/22 21:19:55, shawnsingh wrote: > On 2013/11/22 21:15:57, ostap wrote: > Will take a ...
7 years, 1 month ago (2013-11-22 22:07:56 UTC) #9
shawnsingh
Looking really great, and it's very satisfying to see the perf improvements =) I'm predicting ...
7 years, 1 month ago (2013-11-23 01:32:01 UTC) #10
ostap
https://codereview.chromium.org/79173005/diff/180001/cc/trees/damage_tracker.cc File cc/trees/damage_tracker.cc (right): https://codereview.chromium.org/79173005/diff/180001/cc/trees/damage_tracker.cc#newcode164 cc/trees/damage_tracker.cc:164: SortedRectMap::iterator it = lower_bound(rect_history_.begin(), On 2013/11/23 01:32:01, shawnsingh wrote: ...
7 years ago (2013-11-25 16:11:38 UTC) #11
shawnsingh
LGTM I understand the loop now, thanks for all the adjustments.
7 years ago (2013-11-25 17:40:30 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sl.ostapenko@samsung.com/79173005/290001
7 years ago (2013-11-25 19:52:44 UTC) #13
commit-bot: I haz the power
Retried try job too often on android_clang_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_clang_dbg&number=95572
7 years ago (2013-11-25 20:34:08 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sl.ostapenko@samsung.com/79173005/310001
7 years ago (2013-11-25 21:06:11 UTC) #15
commit-bot: I haz the power
7 years ago (2013-11-25 23:19:01 UTC) #16
Message was sent while issue was closed.
Change committed as 237174

Powered by Google App Engine
This is Rietveld 408576698