diff options
author | enne <enne@chromium.org> | 2015-06-04 16:11:02 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-04 23:12:11 +0000 |
commit | c4deb32db87082dc7f0f9a925826c84ad496d2b4 (patch) | |
tree | 9b29812f6beb837221bb3626fef40f5a5c01a0e5 /cc/output/overlay_strategy_single_on_top.cc | |
parent | 89964db39730523d2dbc50c918c947f5ba5b6a0c (diff) | |
download | chromium_src-c4deb32db87082dc7f0f9a925826c84ad496d2b4.zip chromium_src-c4deb32db87082dc7f0f9a925826c84ad496d2b4.tar.gz chromium_src-c4deb32db87082dc7f0f9a925826c84ad496d2b4.tar.bz2 |
Fix function name style issues in cc::DrawQuad
As the TODO suggests, rather than fixing quadTransform->quad_transform,
just remove the helpers and access everything off the SharedQuadState.
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1153273003
Cr-Commit-Position: refs/heads/master@{#332954}
Diffstat (limited to 'cc/output/overlay_strategy_single_on_top.cc')
-rw-r--r-- | cc/output/overlay_strategy_single_on_top.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cc/output/overlay_strategy_single_on_top.cc b/cc/output/overlay_strategy_single_on_top.cc index 7cb0dca..921dba7 100644 --- a/cc/output/overlay_strategy_single_on_top.cc +++ b/cc/output/overlay_strategy_single_on_top.cc @@ -36,11 +36,13 @@ bool OverlayStrategySingleOnTop::Attempt( // Check that no prior quads overlap it. bool intersects = false; gfx::RectF rect = draw_quad->rect; - draw_quad->quadTransform().TransformRect(&rect); + draw_quad->shared_quad_state->content_to_target_transform.TransformRect( + &rect); for (auto overlap_iter = quad_list.cbegin(); overlap_iter != it; ++overlap_iter) { gfx::RectF overlap_rect = overlap_iter->rect; - overlap_iter->quadTransform().TransformRect(&overlap_rect); + overlap_iter->shared_quad_state->content_to_target_transform + .TransformRect(&overlap_rect); if (rect.Intersects(overlap_rect) && !IsInvisibleQuad(*overlap_iter)) { intersects = true; break; |