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

Issue 2632463005: cc: Ensure that large damage doesn't register as "frame has no damage" (Closed)

Created:
3 years, 11 months ago by vmpstr
Modified:
3 years, 11 months ago
Reviewers:
danakj, enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews, posciak+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Ensure that large damage doesn't register as "frame has no damage" When we have accumulating damage from really large or really far rects we can't union them correctly. So instead, introduce a DamageAccumulator that detects this and an additional function ShouldDamageEverything that ensures that if we run into this situation, we just damage everything we can. R=danakj@chromium.org, enne@chromium.org BUG=678432 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2632463005 Cr-Commit-Position: refs/heads/master@{#445208} Committed: https://chromium.googlesource.com/chromium/src/+/efb8e7ef70d18b7380210e7244113653ab41cf42

Patch Set 1 #

Total comments: 16

Patch Set 2 : update #

Total comments: 6

Patch Set 3 : update #

Total comments: 2

Patch Set 4 : update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+609 lines, -250 lines) Patch
M cc/debug/debug_rect_history.cc View 1 2 3 1 chunk +3 lines, -4 lines 0 comments Download
M cc/layers/render_surface_impl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/render_surface_impl.cc View 1 2 2 chunks +11 lines, -3 lines 0 comments Download
M cc/trees/damage_tracker.h View 1 3 chunks +51 lines, -12 lines 0 comments Download
M cc/trees/damage_tracker.cc View 1 2 12 chunks +97 lines, -58 lines 0 comments Download
M cc/trees/damage_tracker_unittest.cc View 1 2 60 chunks +427 lines, -159 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_damage.cc View 1 5 chunks +15 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_video.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
vmpstr
Please take a look.
3 years, 11 months ago (2017-01-13 22:01:50 UTC) #2
enne (OOO)
https://codereview.chromium.org/2632463005/diff/1/cc/trees/damage_tracker.cc File cc/trees/damage_tracker.cc (right): https://codereview.chromium.org/2632463005/diff/1/cc/trees/damage_tracker.cc#newcode406 cc/trees/damage_tracker.cc:406: target_damage->SetInvalid(); Should you use the render surface content rect ...
3 years, 11 months ago (2017-01-13 22:21:38 UTC) #3
danakj
https://codereview.chromium.org/2632463005/diff/1/cc/trees/damage_tracker.cc File cc/trees/damage_tracker.cc (right): https://codereview.chromium.org/2632463005/diff/1/cc/trees/damage_tracker.cc#newcode145 cc/trees/damage_tracker.cc:145: return !current_damage_.GetAsRect(&rect); I thot it a bit odd this ...
3 years, 11 months ago (2017-01-13 23:17:59 UTC) #4
vmpstr
Please take another look. https://codereview.chromium.org/2632463005/diff/1/cc/trees/damage_tracker.cc File cc/trees/damage_tracker.cc (right): https://codereview.chromium.org/2632463005/diff/1/cc/trees/damage_tracker.cc#newcode145 cc/trees/damage_tracker.cc:145: return !current_damage_.GetAsRect(&rect); On 2017/01/13 23:17:58, ...
3 years, 11 months ago (2017-01-19 23:08:27 UTC) #5
enne (OOO)
Two more small comments: https://codereview.chromium.org/2632463005/diff/20001/cc/debug/debug_rect_history.cc File cc/debug/debug_rect_history.cc (right): https://codereview.chromium.org/2632463005/diff/20001/cc/debug/debug_rect_history.cc#newcode130 cc/debug/debug_rect_history.cc:130: render_surface->damage_tracker()->GetDamageRectIfValid(&damage_rect); Maybe encapsulate this conditional ...
3 years, 11 months ago (2017-01-19 23:23:39 UTC) #6
danakj
LGTM % enne https://codereview.chromium.org/2632463005/diff/20001/cc/debug/debug_rect_history.cc File cc/debug/debug_rect_history.cc (right): https://codereview.chromium.org/2632463005/diff/20001/cc/debug/debug_rect_history.cc#newcode130 cc/debug/debug_rect_history.cc:130: render_surface->damage_tracker()->GetDamageRectIfValid(&damage_rect); On 2017/01/19 23:23:39, enne wrote: ...
3 years, 11 months ago (2017-01-20 17:03:04 UTC) #7
vmpstr
Please take another look. https://codereview.chromium.org/2632463005/diff/20001/cc/debug/debug_rect_history.cc File cc/debug/debug_rect_history.cc (right): https://codereview.chromium.org/2632463005/diff/20001/cc/debug/debug_rect_history.cc#newcode130 cc/debug/debug_rect_history.cc:130: render_surface->damage_tracker()->GetDamageRectIfValid(&damage_rect); On 2017/01/19 23:23:39, enne ...
3 years, 11 months ago (2017-01-20 21:38:18 UTC) #8
enne (OOO)
lgtm https://codereview.chromium.org/2632463005/diff/40001/cc/debug/debug_rect_history.cc File cc/debug/debug_rect_history.cc (right): https://codereview.chromium.org/2632463005/diff/40001/cc/debug/debug_rect_history.cc#newcode130 cc/debug/debug_rect_history.cc:130: render_surface->damage_tracker()->GetDamageRectIfValid(&damage_rect); Maybe use RenderSurfaceImpl::GetDamageRect here?
3 years, 11 months ago (2017-01-20 22:15:13 UTC) #9
vmpstr
https://codereview.chromium.org/2632463005/diff/40001/cc/debug/debug_rect_history.cc File cc/debug/debug_rect_history.cc (right): https://codereview.chromium.org/2632463005/diff/40001/cc/debug/debug_rect_history.cc#newcode130 cc/debug/debug_rect_history.cc:130: render_surface->damage_tracker()->GetDamageRectIfValid(&damage_rect); On 2017/01/20 22:15:13, enne wrote: > Maybe use ...
3 years, 11 months ago (2017-01-20 22:41:51 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2632463005/60001
3 years, 11 months ago (2017-01-20 22:42:31 UTC) #13
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 23:36:54 UTC) #16
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/efb8e7ef70d18b7380210e724411...

Powered by Google App Engine
This is Rietveld 408576698