Lines Matching refs:area
33 ClipArea area; in createClipArea() local
34 area.setViewportDimensions(kViewportBounds.getWidth(), kViewportBounds.getHeight()); in createClipArea()
35 return area; in createClipArea()
89 ClipArea area(createClipArea()); in TEST() local
90 EXPECT_FALSE(area.isEmpty()); in TEST()
94 ClipArea area(createClipArea()); in TEST() local
98 area.clipPathWithTransform(path, &Matrix4::identity(), SkRegion::kIntersect_Op); in TEST()
99 EXPECT_FALSE(area.isEmpty()); in TEST()
100 EXPECT_FALSE(area.isSimple()); in TEST()
101 EXPECT_FALSE(area.isRectangleList()); in TEST()
103 Rect clipRect(area.getClipRect()); in TEST()
106 SkRegion clipRegion(area.getClipRegion()); in TEST()
114 ClipArea area(createClipArea()); in TEST() local
115 area.setClip(0, 0, 100, 100); in TEST()
118 area.clipRectWithTransform(expected, &Matrix4::identity(), SkRegion::kReplace_Op); in TEST()
119 EXPECT_EQ(expected, area.getClipRect()); in TEST()
123 ClipArea area(createClipArea()); in TEST() local
127 EXPECT_EQ(nullptr, area.serializeClip(allocator)); in TEST()
130 area.setClip(0, 0, 200, 200); in TEST()
132 auto serializedClip = area.serializeClip(allocator); in TEST()
137 EXPECT_EQ(serializedClip, area.serializeClip(allocator)) in TEST()
144 area.clipRectWithTransform(Rect(50, 50, 150, 150), &rotate, SkRegion::kIntersect_Op); in TEST()
146 auto serializedClip = area.serializeClip(allocator); in TEST()
153 EXPECT_EQ(serializedClip, area.serializeClip(allocator)) in TEST()
160 area.clipPathWithTransform(circlePath, &Matrix4::identity(), SkRegion::kReplace_Op); in TEST()
162 auto serializedClip = area.serializeClip(allocator); in TEST()
170 EXPECT_EQ(serializedClip, area.serializeClip(allocator)) in TEST()
176 ClipArea area(createClipArea()); in TEST() local
180 area.clipPathWithTransform(circlePath, &Matrix4::identity(), SkRegion::kIntersect_Op); in TEST()
182 auto serializedClip = area.serializeClip(allocator); in TEST()
188 ClipArea area(createClipArea()); in TEST() local
192 EXPECT_EQ(nullptr, area.serializeIntersectedClip(allocator, nullptr, Matrix4::identity())); in TEST()
193 area.setClip(0, 0, 200, 200); in TEST()
195 auto origRectClip = area.serializeClip(allocator); in TEST()
197 … EXPECT_EQ(origRectClip, area.serializeIntersectedClip(allocator, nullptr, Matrix4::identity())); in TEST()
206 auto resolvedClip = area.serializeIntersectedClip(allocator, &recordedClip, translateScale); in TEST()
211 … EXPECT_EQ(resolvedClip, area.serializeIntersectedClip(allocator, &recordedClip, translateScale)) in TEST()
215 … EXPECT_NE(resolvedClip, area.serializeIntersectedClip(allocator, &recordedClip2, translateScale)) in TEST()
222 area.clipRectWithTransform(Rect(200, 200), &rotate, SkRegion::kIntersect_Op); in TEST()
225 … auto resolvedClip = area.serializeIntersectedClip(allocator, &recordedClip, Matrix4::identity()); in TEST()
235 area.clipPathWithTransform(circlePath, &Matrix4::identity(), SkRegion::kReplace_Op); in TEST()
246 auto resolvedClip = area.serializeIntersectedClip(allocator, &recordedClip, in TEST()
256 ClipArea area(createClipArea()); in TEST() local
257 area.setClip(100.2, 100.4, 500.6, 500.8); in TEST()
262 auto resolvedClip = area.serializeIntersectedClip(allocator, nullptr, Matrix4::identity()); in TEST()
271 auto resolvedClip = area.serializeIntersectedClip(allocator, &recordedClip, translateScale); in TEST()
279 ClipArea area(createClipArea()); in TEST() local
280 area.setClip(0, 0, 400, 400); in TEST()
293 auto resolvedClip = area.serializeIntersectedClip(allocator, &recordedClip, translateScale); in TEST()