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

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

Issue 1406643002: Stash: Alternate prototype for NativeLayer renderer with GL fallback Base URL: https://chromium.googlesource.com/chromium/src.git@solid
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/surfaces/display.cc ('k') | gpu/command_buffer/client/context_support.h » ('j') | 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 c920301afc60a59bfc884b7c3dd7d48207b21847..2e0a8e6d76a502631e2438e2cc3cf9045e192598 100644
--- a/content/common/gpu/image_transport_surface_overlay_mac.mm
+++ b/content/common/gpu/image_transport_surface_overlay_mac.mm
@@ -160,7 +160,7 @@ class ImageTransportSurfaceOverlayMac::OverlayPlane {
// Red represents damaged contents.
color.reset(CGColorCreateGenericRGB(1, 0, 0, 1));
}
- [ca_layer setBorderWidth:2];
+ [ca_layer setBorderWidth:1];
[ca_layer setBorderColor:color];
}
layer_needs_update = false;
@@ -371,8 +371,6 @@ void ImageTransportSurfaceOverlayMac::DisplayFirstPendingSwapImmediately() {
// damage rect.
gfx::RectF dip_damage_rect = ConvertRectToDIPF(
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);
« no previous file with comments | « cc/surfaces/display.cc ('k') | gpu/command_buffer/client/context_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698