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

Unified Diff: content/common/gpu/image_transport_surface_overlay_mac.mm

Issue 1414923006: Revert of Avoid Copying damage rect when using Overlays (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 | « cc/output/overlay_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/image_transport_surface_overlay_mac.mm
diff --git a/content/common/gpu/image_transport_surface_overlay_mac.mm b/content/common/gpu/image_transport_surface_overlay_mac.mm
index 413e545bbe46afad47fa6ed16729922222ad4d8a..d0e140675902c7d73b2a7d9cf37358f92ff6a5fd 100644
--- a/content/common/gpu/image_transport_surface_overlay_mac.mm
+++ b/content/common/gpu/image_transport_surface_overlay_mac.mm
@@ -358,6 +358,8 @@
swap->scale_factor, swap->pixel_damage_rect);
std::sort(swap->overlay_planes.begin(), swap->overlay_planes.end(),
OverlayPlane::Compare);
+ for (auto& plane : swap->overlay_planes)
+ dip_damage_rect.Subtract(plane->dip_frame_rect);
ScopedCAActionDisabler disabler;
UpdateRootAndPartialDamagePlanes(swap->root_plane, dip_damage_rect);
« no previous file with comments | « cc/output/overlay_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698