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

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

Issue 1330563004: Avoid Copying damage rect when using Overlays (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update ImageSurface 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
« cc/output/direct_renderer.cc ('K') | « cc/output/direct_renderer.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 1a18d0b717594da0fb51796777f085c514a35e62..16100e1501c9c9a91edf82131c03b889e5788aff 100644
--- a/content/common/gpu/image_transport_surface_overlay_mac.mm
+++ b/content/common/gpu/image_transport_surface_overlay_mac.mm
@@ -358,8 +358,6 @@ void ImageTransportSurfaceOverlayMac::DisplayFirstPendingSwapImmediately() {
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;
if (swap->root_plane.get())
« cc/output/direct_renderer.cc ('K') | « cc/output/direct_renderer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698