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

Unified Diff: cc/output/direct_renderer.cc

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
« no previous file with comments | « no previous file | content/common/gpu/image_transport_surface_overlay_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/direct_renderer.cc
diff --git a/cc/output/direct_renderer.cc b/cc/output/direct_renderer.cc
index f98151833e040baeeb7b81076c53d949d0307a2c..098137740bae2da2684bbf1ce196fae1492968a8 100644
--- a/cc/output/direct_renderer.cc
+++ b/cc/output/direct_renderer.cc
@@ -241,6 +241,12 @@ void DirectRenderer::DrawFrame(RenderPassList* render_passes_in_draw_order,
if (root_render_pass->copy_requests.empty()) {
overlay_processor_->ProcessForOverlays(render_passes_in_draw_order,
&frame.overlay_list);
+ for (const OverlayCandidate& overlay : frame.overlay_list) {
+ if (overlay.plane_z_order <= 0)
+ continue;
+
+ frame.root_damage_rect.Subtract(ToNearestRect(overlay.display_rect));
piman 2015/10/08 22:51:31 That's only true if the overlay is opaque. Also, T
kalyank 2015/10/12 22:58:45 Moved this to processor now. I have added a bool t
kalyank 2015/10/12 22:58:45 Acknowledged.
piman 2015/10/20 01:49:19 Whatever damage you remove must be fully covered b
+ }
}
for (size_t i = 0; i < render_passes_in_draw_order->size(); ++i) {
« no previous file with comments | « no previous file | content/common/gpu/image_transport_surface_overlay_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698