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

Unified Diff: cc/output/overlay_strategy_common.cc

Issue 1384583003: Revert of Mac Overlays: Clip display and UV rects (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2490
Patch Set: Created 5 years, 3 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 | cc/output/overlay_strategy_sandwich.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/overlay_strategy_common.cc
diff --git a/cc/output/overlay_strategy_common.cc b/cc/output/overlay_strategy_common.cc
index 96d1a0b4193ccca3b315af16fddeda3a77917ea9..b9cf25d58995f3debdce593356ce5b63792fab18 100644
--- a/cc/output/overlay_strategy_common.cc
+++ b/cc/output/overlay_strategy_common.cc
@@ -160,7 +160,7 @@
quad_info->resource_id = quad.io_surface_resource_id();
quad_info->resource_size_in_pixels = quad.io_surface_size;
quad_info->transform = overlay_transform;
- quad_info->uv_rect = gfx::RectF(1.f, 1.f);
+ quad_info->uv_rect = gfx::Rect(0, 0, 1, 1);
return true;
}
@@ -194,10 +194,6 @@
quad_info->format = RGBA_8888;
quad_info->display_rect = OverlayCandidate::GetOverlayRect(
draw_quad.shared_quad_state->quad_to_target_transform, draw_quad.rect);
- quad_info->quad_rect_in_target_space = MathUtil::MapEnclosingClippedRect(
- draw_quad.shared_quad_state->quad_to_target_transform, draw_quad.rect);
- quad_info->clip_rect = draw_quad.shared_quad_state->clip_rect;
- quad_info->is_clipped = draw_quad.shared_quad_state->is_clipped;
return true;
}
« no previous file with comments | « no previous file | cc/output/overlay_strategy_sandwich.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698