Lines Matching refs:path
24 SkPath path;
25 path.moveTo(100, 0);
26 path.lineTo(200, 200);
27 path.lineTo(100, 150);
28 path.lineTo(0, 200);
29 path.close();
30 return path;
35 const SkPath& path,
45 GrStyledShape shape(path, style);
94 SkPath path = createPath();
99 // Draw the path, check that new resource count matches expectations
100 draw_path(dContext.get(), sdc.get(), path, pathRenderer.get(), aaType, style);
108 // Reset the path to change the GenID, which should invalidate one resource in the cache.
109 // Some path renderers may leave other unique-keyed resources in the cache, though.
110 path.reset();
118 // Test that purging the cache of masks also removes listeners from the path.
119 path = createPath();
120 REPORTER_ASSERT(reporter, SkPathPriv::GenIDChangeListenersCount(path) == 0);
123 draw_path(dContext.get(), sdc.get(), path, pathRenderer.get(), aaType, style, scaleX);
126 REPORTER_ASSERT(reporter, SkPathPriv::GenIDChangeListenersCount(path) == 20);
129 draw_path(dContext.get(), sdc.get(), path, pathRenderer.get(), aaType, style);
130 REPORTER_ASSERT(reporter, SkPathPriv::GenIDChangeListenersCount(path) == 1);
133 // Test that deleting the original path invalidates the VBs cached by the tessellating path renderer
139 // Triangulating path renderer creates a single vertex buffer for non-AA paths. No other
145 // Test with a style that alters the path geometry. This needs to attach the invalidation logic
146 // to the original path, not the modified path produced by the style.
155 // Test that deleting the original path invalidates the textures cached by the SW path renderer
161 // Software path renderer creates a mask texture and renders with a non-AA rect, but the flush
168 // Test with a style that alters the path geometry. This needs to attach the invalidation logic
169 // to the original path, not the modified path produced by the style.