Lines Matching refs:viewport
40 Rect viewport(1920, 1200);
41 bool snapped = SnapTransform(&result, transform, viewport);
53 Rect viewport(kOffset, kOffset, 1920, 1200);
54 bool snapped = SnapTransform(&result, transform, viewport);
56 EXPECT_FALSE(snapped) << "Distant viewport shouldn't snap by more than 1px.";
66 Rect viewport(kOffset, kOffset, 1920, 1200);
67 bool snapped = SnapTransform(&result, transform, viewport);
81 Rect viewport(1920, 1200);
82 bool snapped = SnapTransform(&result, transform, viewport);
95 Rect viewport(kOffset, kOffset, 1920, 1200);
96 bool snapped = SnapTransform(&result, transform, viewport);
99 << "Distant viewport should still snap by less than 1px.";
109 Rect viewport(1920, 1200);
110 bool snapped = SnapTransform(&result, transform, viewport);
121 Rect viewport(1920, 1200);
122 bool snapped = SnapTransform(&result, transform, viewport);
138 Rect viewport(1920, 1200);
139 bool snapped = SnapTransform(&result, transform, viewport);
144 point = Point3F(viewport.origin());
148 point = Point3F(viewport.top_right());
152 point = Point3F(viewport.bottom_left());
156 point = Point3F(viewport.bottom_right());
174 Rect viewport(1920, 1200);
175 bool snapped = SnapTransform(&result, transform, viewport);
176 EXPECT_FALSE(snapped) << "Skewed viewport should not snap.";