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

Unified Diff: cc/trees/occlusion_tracker.cc

Issue 2892073002: cc: Correct inverted directions in occlusion tracker background filter logic (Closed)
Patch Set: rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/occlusion_tracker.cc
diff --git a/cc/trees/occlusion_tracker.cc b/cc/trees/occlusion_tracker.cc
index 523b01f830f4a52408dbfb401a4f82ccbdaa4197..4cc21a8bec5422d4fc5022e31bfa7ade0f19a1fa 100644
--- a/cc/trees/occlusion_tracker.cc
+++ b/cc/trees/occlusion_tracker.cc
@@ -221,16 +221,16 @@ static void ReduceOcclusionBelowSurface(
if (affected_area_in_target.IsEmpty())
return;
- int outset_top, outset_right, outset_bottom, outset_left;
- contributing_surface->BackgroundFilters().GetOutsets(
- &outset_top, &outset_right, &outset_bottom, &outset_left);
-
// The filter can move pixels from outside of the clip, so allow affected_area
// to expand outside the clip. Notably the content we're concerned with here
// is not the affected area, but rather stuff slightly outside it. Thus the
danakj 2017/05/19 19:28:54 I think this comment doesn't explain what we have
// directions of the outsets are reversed from normal.
- affected_area_in_target.Inset(-outset_right, -outset_bottom, -outset_left,
- -outset_top);
+ int outset_top, outset_right, outset_bottom, outset_left;
+ contributing_surface->BackgroundFilters().GetOutsets(
+ &outset_bottom, &outset_left, &outset_top, &outset_right);
+
+ affected_area_in_target.Inset(-outset_left, -outset_top, -outset_right,
+ -outset_bottom);
SimpleEnclosedRegion affected_occlusion = *occlusion_from_inside_target;
affected_occlusion.Intersect(affected_area_in_target);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698