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

Unified Diff: cc/test/layer_test_common.cc

Issue 546993002: Apply the correct transform_to_root_target DelegatedRendererLayerImpl::AppendRenderPassQuads(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 6 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 | « cc/test/layer_test_common.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_test_common.cc
diff --git a/cc/test/layer_test_common.cc b/cc/test/layer_test_common.cc
index b7c415b7c6e5ee77f1efc8365a6bd813f4f192cf..685c0fbc7e8466761976cd5f3e0480865cd7cdf9 100644
--- a/cc/test/layer_test_common.cc
+++ b/cc/test/layer_test_common.cc
@@ -64,14 +64,14 @@ void LayerTestCommon::VerifyQuadsExactlyCoverRect(const QuadList& quads,
}
// static
-void LayerTestCommon::VerifyQuadsCoverRectWithOcclusion(
- const QuadList& quads,
- const gfx::Rect& rect,
- const gfx::Rect& occluded,
- size_t* partially_occluded_count) {
+void LayerTestCommon::VerifyQuadsAreOccluded(const QuadList& quads,
+ const gfx::Rect& occluded,
+ size_t* partially_occluded_count) {
// No quad should exist if it's fully occluded.
for (size_t i = 0; i < quads.size(); ++i) {
- EXPECT_FALSE(occluded.Contains(quads[i]->visible_rect));
+ gfx::Rect target_visible_rect = MathUtil::MapEnclosingClippedRect(
+ quads[i]->quadTransform(), quads[i]->visible_rect);
+ EXPECT_FALSE(occluded.Contains(target_visible_rect));
}
// Quads that are fully occluded on one axis only should be shrunken.
« no previous file with comments | « cc/test/layer_test_common.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698