改用原生画布HSL吸管与当前帧显示取样,准备139宿主验收

这个提交包含在:
mac 于 2026-11-16 15:41:11 +08:00 提交
1 父节点 2d7feb5aa2
当前提交 e6fecdad7b
11 个文件已更改
+65 -20

没有与搜索条件相匹配的文件

@@ -7,6 +7,7 @@
NSMutableDictionary *pickDoc=DYMutablePlist([[[DYToolDocument alloc]init]autorelease].document);NSDictionary *pickLayer=DYInsertTool(pickDoc,@"hsl",@"base:hsl");DYWriteTools(pickHost,pickDoc,kCMTimeZero);
DYToolManager *pickProxy=[[[DYToolManager alloc]initWithHost:pickHost node:pickLayer]autorelease];
NSArray *pickEditors=@[[[[DYInspector alloc]initWithAPIManager:pickHost]autorelease],[[[DYInspector alloc]initWithAPIManager:pickProxy]autorelease],[[[DYInspector alloc]initWithAPIManager:pickHost renderer:nil workspaceType:@"hsl"]autorelease]];
// Selection delivery is token-bound; a result for another editor is ignored.
NSDictionary *pickBefore=[[pickHost->_values copy]autorelease];NSData *pickTools=[NSKeyedArchiver archivedDataWithRootObject:DYReadTools(pickHost,kCMTimeZero) requiringSecureCoding:YES error:nil];
for(NSUInteger editorIndex=0;editorIndex<pickEditors.count;editorIndex++){
DYInspector *editor=pickEditors[editorIndex];editor.frame=NSMakeRect(0,0,424,780);[editor refresh];[editor layoutSubtreeIfNeeded];
@@ -23,6 +24,13 @@
}
run.record([NSString stringWithFormat:@"hsl-picker-native-editor-%lu",(unsigned long)editorIndex],blue&&skin&&retained&&button&&swatch);
}
DYInspector *firstPicker=pickEditors[0],*otherPicker=pickEditors[1];
[firstPicker performSelector:@selector(sampleHSLLane:) withObject:nil];
NSString *pickToken=[[[firstPicker valueForKey:@"hslPickerToken"]copy]autorelease];
[NSNotificationCenter.defaultCenter postNotificationName:@"DYHSLPickerResult" object:pickHost userInfo:@{@"token":@"unrelated",@"color":NSColor.blueColor}];
BOOL unrelated=[[(NSDictionary*)[firstPicker valueForKey:@"tabs"]objectForKey:@"hsl"]integerValue]==1&&[[firstPicker valueForKey:@"hslPickerToken"]isEqual:pickToken];
[NSNotificationCenter.defaultCenter postNotificationName:@"DYHSLPickerResult" object:pickHost userInfo:@{@"token":pickToken,@"color":NSColor.blueColor}];
run.record(@"hsl-picker-result-only-routes-to-requesting-editor",unrelated&&[[(NSDictionary*)[firstPicker valueForKey:@"tabs"]objectForKey:@"hsl"]integerValue]==5&&[[(NSDictionary*)[otherPicker valueForKey:@"tabs"]objectForKey:@"hsl"]integerValue]==1&&![firstPicker valueForKey:@"hslPickerToken"]);
NSData *pickAfter=[NSKeyedArchiver archivedDataWithRootObject:DYReadTools(pickHost,kCMTimeZero) requiringSecureCoding:YES error:nil];
run.record(@"hsl-picker-only-selects-no-grading-or-undo-write",[pickBefore isEqual:pickHost->_values]&&[pickTools isEqual:pickAfter]&&pickHost->_undoStarts==0);
}