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

Unified Diff: cc/output/overlay_strategy_single_on_top.cc

Issue 1304303002: Mac Overlays: Add sandwich strategy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@overlay_debug
Patch Set: One more time Created 5 years, 4 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
Index: cc/output/overlay_strategy_single_on_top.cc
diff --git a/cc/output/overlay_strategy_single_on_top.cc b/cc/output/overlay_strategy_single_on_top.cc
index fd47e0f3b721096f55b0a531f47e75233b3926ff..5670a37f93de2dd06b023a377608406f11b05875 100644
--- a/cc/output/overlay_strategy_single_on_top.cc
+++ b/cc/output/overlay_strategy_single_on_top.cc
@@ -11,18 +11,15 @@
namespace cc {
-OverlayStrategySingleOnTop::OverlayStrategySingleOnTop(
- OverlayCandidateValidator* capability_checker)
- : OverlayStrategyCommon(capability_checker) {
-}
+OverlayStrategySingleOnTop::~OverlayStrategySingleOnTop() {}
bool OverlayStrategySingleOnTop::TryOverlay(
OverlayCandidateValidator* capability_checker,
-
RenderPassList* render_passes_in_draw_order,
OverlayCandidateList* candidate_list,
const OverlayCandidate& candidate,
- QuadList::Iterator candidate_iterator) {
+ QuadList::Iterator candidate_iterator,
+ float device_scale_factor) {
RenderPass* root_render_pass = render_passes_in_draw_order->back();
QuadList& quad_list = root_render_pass->quad_list;
const DrawQuad* draw_quad = *candidate_iterator;
@@ -35,7 +32,8 @@ bool OverlayStrategySingleOnTop::TryOverlay(
gfx::RectF overlap_rect = overlap_iter->rect;
overlap_iter->shared_quad_state->quad_to_target_transform.TransformRect(
&overlap_rect);
- if (rect.Intersects(overlap_rect) && !IsInvisibleQuad(*overlap_iter))
+ if (rect.Intersects(overlap_rect) &&
+ !OverlayStrategyCommon::IsInvisibleQuad(*overlap_iter))
return false;
}

Powered by Google App Engine
This is Rietveld 408576698