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

Unified Diff: cc/test/layer_test_common.cc

Issue 2673813002: Changes the bounds being sent for occlusion from physical pixels to DIP (Closed)
Patch Set: Use gfx::ScaleToEnclosingRect instead of gfx::ScaleToEnclosedRect Created 3 years, 10 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/test/layer_test_common.cc
diff --git a/cc/test/layer_test_common.cc b/cc/test/layer_test_common.cc
index a6753ce9f528179e7f340af03182e9ca2924a140..30fad17f7872e821a6a7a813ca2f052d4e1cf8d9 100644
--- a/cc/test/layer_test_common.cc
+++ b/cc/test/layer_test_common.cc
@@ -50,7 +50,7 @@ void LayerTestCommon::VerifyQuadsExactlyCoverRect(const QuadList& quads,
for (auto iter = quads.cbegin(); iter != quads.cend(); ++iter) {
gfx::RectF quad_rectf = MathUtil::MapClippedRect(
iter->shared_quad_state->quad_to_target_transform,
- gfx::RectF(iter->rect));
+ gfx::RectF(iter->visible_rect));
danakj 2017/02/10 16:32:22 Should this verify quad rect /and/ visible rect?
malaykeshav 2017/02/10 20:24:58 Done
// Before testing for exact coverage in the integer world, assert that
// rounding will not round the rect incorrectly.
« cc/layers/surface_layer_impl_unittest.cc ('K') | « cc/layers/surface_layer_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698