@@ -67,37 +67,6 @@ public void Process_NoCpuFrame_WithReadbackCapability_MatchesReference<TPixel>(T
6767 target . CompareToReferenceOutput ( provider , appendSourceFileOrDescription : false ) ;
6868 }
6969
70- [ Theory ]
71- [ WithBlankImage ( 220 , 160 , PixelTypes . Rgba32 ) ]
72- public void Process_NoCpuFrame_WithoutReadbackCapability_MatchesReference < TPixel > ( TestImageProvider < TPixel > provider )
73- where TPixel : unmanaged, IPixel < TPixel >
74- {
75- using Image < TPixel > target = provider . GetImage ( ) ;
76- IPath blurPath = CreateBlurEllipsePath ( ) ;
77- IPath pixelatePath = CreatePixelateTrianglePath ( ) ;
78-
79- Buffer2DRegion < TPixel > targetRegion = new ( target . Frames . RootFrame . PixelBuffer , target . Bounds ) ;
80- CpuCanvasFrame < TPixel > proxyFrame = new ( targetRegion ) ;
81- MirroringCpuReadbackTestBackend < TPixel > mirroringBackend = new ( proxyFrame ) ;
82- NativeSurface nativeSurface = new ( TPixel . GetPixelTypeInfo ( ) ) ;
83- Configuration configuration = provider . Configuration . Clone ( ) ;
84- configuration . SetDrawingBackend ( mirroringBackend ) ;
85-
86- using ( DrawingCanvas < TPixel > canvas = new (
87- configuration ,
88- new NativeSurfaceOnlyFrame < TPixel > ( target . Bounds , nativeSurface ) ,
89- new DrawingOptions ( ) ) )
90- {
91- DrawProcessScenario ( canvas ) ;
92- canvas . Process ( blurPath , ctx => ctx . GaussianBlur ( 6F ) ) ;
93- canvas . Process ( pixelatePath , ctx => ctx . Pixelate ( 10 ) ) ;
94- canvas . Flush ( ) ;
95- }
96-
97- target . DebugSave ( provider , appendSourceFileOrDescription : false ) ;
98- target . CompareToReferenceOutput ( provider , appendSourceFileOrDescription : false ) ;
99- }
100-
10170 [ Fact ]
10271 public void Process_UsesCanvasConfigurationForOperationContext ( )
10372 {
0 commit comments