File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
sparse_strips/vello_cpu/src/dispatch Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -258,7 +258,10 @@ impl MultiThreadedDispatcher {
258
258
let clip_path = self
259
259
. clip_context
260
260
. get ( )
261
- . map ( |c| ( c. strips . into ( ) , c. alphas . into ( ) ) ) ;
261
+ . map ( |c| OwnedClip {
262
+ strips : c. strips . into ( ) ,
263
+ alphas : c. alphas . into ( ) ,
264
+ } ) ;
262
265
let task = RenderTask {
263
266
idx : task_idx,
264
267
clip_path,
@@ -631,10 +634,16 @@ impl Debug for MultiThreadedDispatcher {
631
634
}
632
635
}
633
636
637
+ #[ derive( Debug ) ]
638
+ struct OwnedClip {
639
+ strips : Box < [ Strip ] > ,
640
+ alphas : Box < [ u8 ] >
641
+ }
642
+
634
643
#[ derive( Debug ) ]
635
644
pub ( crate ) struct RenderTask {
636
645
pub ( crate ) idx : u32 ,
637
- pub ( crate ) clip_path : Option < ( Box < [ Strip ] > , Box < [ u8 ] > ) > ,
646
+ pub ( crate ) clip_path : Option < OwnedClip > ,
638
647
pub ( crate ) path : Box < [ PathEl ] > ,
639
648
pub ( crate ) tasks : Box < [ RenderTaskType ] > ,
640
649
}
Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ impl Worker {
51
51
let mut task_buf = Vec :: with_capacity ( render_task. tasks . len ( ) ) ;
52
52
let task_idx = render_task. idx ;
53
53
let path_clip = render_task. clip_path . as_ref ( ) . map ( |c| PathDataRef {
54
- strips : c. 0 . as_ref ( ) ,
55
- alphas : c. 1 . as_ref ( ) ,
54
+ strips : c. strips . as_ref ( ) ,
55
+ alphas : c. alphas . as_ref ( ) ,
56
56
} ) ;
57
57
58
58
for task in render_task. tasks {
You can’t perform that action at this time.
0 commit comments