Commit b58f77f
Don't wrap lambdas pointlessly (#9138)
repeat_edge(imageparam) has *two* wrapper Funcs around it. The
imageparam comes with one (accessible via its implicit cast to Func
operator), and then because it's not exactly a Func, the boundary
condition helper adds another one. This commit changes the boundary
condition helper to use a class's existing implicit conversion to a Func
if there is one, avoiding the pointless extra Func.
The else case is still necessary because a Halide::Buffer can be
accessed like a Func, but not implicitly cast to a Func.
Co-authored-by: Alex Reinking <areinking@adobe.com>1 parent 0232209 commit b58f77f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
0 commit comments