Lines Matching full:clip
33 ClipRect clip(Rect(100, 200));
34 RectOp recordedOp(Rect(30, 40, 100, 200), translate10x20, &clip, &paint);
53 // intersection of parent & transformed child clip
68 ClipRect clip(Rect(100, 200));
69 RectOp recordedOp(Rect(1000, 1000), translate10x20, &clip, &paint);
75 << "Local clip rect should be 100x200, offset by -10,-20";
82 << "Local clip rect should be 90x190, offset by -10,-20";
165 ClipRect clip(Rect(200, 200));
167 Matrix4::identity(), &clip, &strokedPaint);
183 ClipRect clip(Rect(100, 200));
186 RectOp successOp(Rect(30, 40, 100, 200), Matrix4::identity(), &clip, &paint);
189 << "successOp NOT rejected by clip, so should be constructed";
193 RectOp rejectOp(Rect(30, 40, 100, 200), translate100x0, &clip, &paint);
195 << "rejectOp rejected by clip, so should not be constructed";
197 // NOTE: this relies on the clip having already been serialized by the op above
207 auto snapshot = TestUtils::makeSnapshot(translate10x20, Rect()); // Note: empty clip
210 EXPECT_EQ(nullptr, bakedState) << "op should be rejected by clip, so not constructed";
211 EXPECT_EQ(0u, allocator.usedSize()) << "no serialization, even for clip,"
212 "since op is quick rejected based on snapshot clip";
218 ASSERT_NE(nullptr, bakedState) << "NOT rejected by clip, so op should be constructed";
233 ClipRect clip(Rect(100, 200));
234 RectOp rejectOp(Rect(100, 200), Matrix4::identity(), &clip, &paint);
235 auto snapshot = TestUtils::makeSnapshot(Matrix4::identity(), Rect()); // Note: empty clip
247 ClipRect clip(Rect(200, 200));
248 RectOp rejectOp(Rect(50, 50, 150, 150), Matrix4::identity(), &clip, &paint);
262 ClipRect clip(Rect(200, 200));
263 RectOp rejectOp(Rect(50, 50, 150, 150), Matrix4::identity(), &clip, &paint);