-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathGRContext.xml
More file actions
721 lines (721 loc) · 37.9 KB
/
Copy pathGRContext.xml
File metadata and controls
721 lines (721 loc) · 37.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
<Type Name="GRContext" FullName="SkiaSharp.GRContext">
<TypeSignature Language="C#" Value="public class GRContext : SkiaSharp.GRRecordingContext" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit GRContext extends SkiaSharp.GRRecordingContext" />
<TypeSignature Language="DocId" Value="T:SkiaSharp.GRContext" />
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>SkiaSharp.GRRecordingContext</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>Represents an underlying backend 3D API context.</summary>
<remarks />
</Docs>
<Members>
<Member MemberName="AbandonContext">
<MemberSignature Language="C#" Value="public void AbandonContext (bool releaseResources = false);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void AbandonContext(bool releaseResources) cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.AbandonContext(System.Boolean)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="releaseResources" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="releaseResources">Use true to indicate that the underlying 3D context is not yet lost and the <see cref="T:SkiaSharp.GRContext" /> will cleanup all allocated resources before returning. Using false will ensure that the destructors of the <see cref="T:SkiaSharp.GRContext" /> and any of its created resource objects will not make backend 3D API calls.</param>
<summary>Abandons all GPU resources and assumes the underlying backend 3D API context is no longer usable. After returning it will assume that the underlying context may no longer be valid.</summary>
<remarks />
</Docs>
</Member>
<Member MemberName="Backend">
<MemberSignature Language="C#" Value="public override SkiaSharp.GRBackend Backend { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype SkiaSharp.GRBackend Backend" />
<MemberSignature Language="DocId" Value="P:SkiaSharp.GRContext.Backend" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>SkiaSharp.GRBackend</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the backend that this context is wrapping.</summary>
<value>The backend type.</value>
<remarks />
</Docs>
</Member>
<Member MemberName="CheckAsyncWorkCompletion">
<MemberSignature Language="C#" Value="public void CheckAsyncWorkCompletion ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void CheckAsyncWorkCompletion() cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.CheckAsyncWorkCompletion" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Polls for completion of pending asynchronous GPU work submitted through this context and dispatches any callbacks that are ready.</summary>
<remarks>Callbacks queued by operations such as <see cref="M:SkiaSharp.SKImage.RequestReadPixels(SkiaSharp.SKImageInfo,SkiaSharp.SKRectI,System.Action{SkiaSharp.SKImageReadPixelsResult})" /> only fire when the context is given a chance to observe that the GPU has finished; call this method (typically once per frame) to drive that dispatch.</remarks>
</Docs>
</Member>
<Member MemberName="CreateDirect3D">
<MemberSignature Language="C#" Value="public static SkiaSharp.GRContext CreateDirect3D (SkiaSharp.GRD3DBackendContext backendContext);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class SkiaSharp.GRContext CreateDirect3D(class SkiaSharp.GRD3DBackendContext backendContext) cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.CreateDirect3D(SkiaSharp.GRD3DBackendContext)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>SkiaSharp.GRContext</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="backendContext" Type="SkiaSharp.GRD3DBackendContext" />
</Parameters>
<Docs>
<param name="backendContext">The Direct3D backend context to use.</param>
<summary>Creates a <see cref="T:SkiaSharp.GRContext" /> for a Direct3D context.</summary>
<returns>Returns the new <see cref="T:SkiaSharp.GRContext" /> if one was created, otherwise <see langword="null" />.</returns>
<remarks />
</Docs>
</Member>
<Member MemberName="CreateDirect3D">
<MemberSignature Language="C#" Value="public static SkiaSharp.GRContext CreateDirect3D (SkiaSharp.GRD3DBackendContext backendContext, SkiaSharp.GRContextOptions options);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class SkiaSharp.GRContext CreateDirect3D(class SkiaSharp.GRD3DBackendContext backendContext, class SkiaSharp.GRContextOptions options) cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.CreateDirect3D(SkiaSharp.GRD3DBackendContext,SkiaSharp.GRContextOptions)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>SkiaSharp.GRContext</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="backendContext" Type="SkiaSharp.GRD3DBackendContext" />
<Parameter Name="options" Type="SkiaSharp.GRContextOptions" />
</Parameters>
<Docs>
<param name="backendContext">The Direct3D backend context to use.</param>
<param name="options">The context-creation options.</param>
<summary>Creates a <see cref="T:SkiaSharp.GRContext" /> for a Direct3D context.</summary>
<returns>Returns the new <see cref="T:SkiaSharp.GRContext" /> if one was created, otherwise <see langword="null" />.</returns>
<remarks />
</Docs>
</Member>
<Member MemberName="CreateGl">
<MemberSignature Language="C#" Value="public static SkiaSharp.GRContext CreateGl ();" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class SkiaSharp.GRContext CreateGl() cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.CreateGl" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>SkiaSharp.GRContext</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Creates a <see cref="T:SkiaSharp.GRContext" /> for an OpenGL context.</summary>
<returns>Returns the new <see cref="T:SkiaSharp.GRContext" /> if one was created, otherwise <see langword="null" />.</returns>
<remarks />
</Docs>
</Member>
<Member MemberName="CreateGl">
<MemberSignature Language="C#" Value="public static SkiaSharp.GRContext CreateGl (SkiaSharp.GRContextOptions options);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class SkiaSharp.GRContext CreateGl(class SkiaSharp.GRContextOptions options) cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.CreateGl(SkiaSharp.GRContextOptions)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>SkiaSharp.GRContext</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="options" Type="SkiaSharp.GRContextOptions" />
</Parameters>
<Docs>
<param name="options">The context-creation options.</param>
<summary>Creates a <see cref="T:SkiaSharp.GRContext" /> for an OpenGL context.</summary>
<returns>Returns the new <see cref="T:SkiaSharp.GRContext" /> if one was created, otherwise <see langword="null" />.</returns>
<remarks />
</Docs>
</Member>
<Member MemberName="CreateGl">
<MemberSignature Language="C#" Value="public static SkiaSharp.GRContext CreateGl (SkiaSharp.GRGlInterface backendContext);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class SkiaSharp.GRContext CreateGl(class SkiaSharp.GRGlInterface backendContext) cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.CreateGl(SkiaSharp.GRGlInterface)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>SkiaSharp.GRContext</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="backendContext" Type="SkiaSharp.GRGlInterface" />
</Parameters>
<Docs>
<param name="backendContext">The OpenGL interface to use.</param>
<summary>Creates a <see cref="T:SkiaSharp.GRContext" /> for an OpenGL context.</summary>
<returns>Returns the new <see cref="T:SkiaSharp.GRContext" /> if one was created, otherwise <see langword="null" />.</returns>
<remarks />
</Docs>
</Member>
<Member MemberName="CreateGl">
<MemberSignature Language="C#" Value="public static SkiaSharp.GRContext CreateGl (SkiaSharp.GRGlInterface backendContext, SkiaSharp.GRContextOptions options);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class SkiaSharp.GRContext CreateGl(class SkiaSharp.GRGlInterface backendContext, class SkiaSharp.GRContextOptions options) cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.CreateGl(SkiaSharp.GRGlInterface,SkiaSharp.GRContextOptions)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>SkiaSharp.GRContext</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="backendContext" Type="SkiaSharp.GRGlInterface" />
<Parameter Name="options" Type="SkiaSharp.GRContextOptions" />
</Parameters>
<Docs>
<param name="backendContext">The OpenGL interface to use.</param>
<param name="options">The context-creation options.</param>
<summary>Creates a <see cref="T:SkiaSharp.GRContext" /> for an OpenGL context.</summary>
<returns>Returns the new <see cref="T:SkiaSharp.GRContext" /> if one was created, otherwise <see langword="null" />.</returns>
<remarks />
</Docs>
</Member>
<Member MemberName="CreateMetal">
<MemberSignature Language="C#" Value="public static SkiaSharp.GRContext CreateMetal (SkiaSharp.GRMtlBackendContext backendContext);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class SkiaSharp.GRContext CreateMetal(class SkiaSharp.GRMtlBackendContext backendContext) cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.CreateMetal(SkiaSharp.GRMtlBackendContext)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>SkiaSharp.GRContext</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="backendContext" Type="SkiaSharp.GRMtlBackendContext" />
</Parameters>
<Docs>
<param name="backendContext">The Metal backend context to use.</param>
<summary>Creates a <see cref="T:SkiaSharp.GRContext" /> for a Metal context.</summary>
<returns>Returns the new <see cref="T:SkiaSharp.GRContext" /> if one was created, otherwise <see langword="null" />.</returns>
<remarks />
</Docs>
</Member>
<Member MemberName="CreateMetal">
<MemberSignature Language="C#" Value="public static SkiaSharp.GRContext CreateMetal (SkiaSharp.GRMtlBackendContext backendContext, SkiaSharp.GRContextOptions options);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class SkiaSharp.GRContext CreateMetal(class SkiaSharp.GRMtlBackendContext backendContext, class SkiaSharp.GRContextOptions options) cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.CreateMetal(SkiaSharp.GRMtlBackendContext,SkiaSharp.GRContextOptions)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>SkiaSharp.GRContext</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="backendContext" Type="SkiaSharp.GRMtlBackendContext" />
<Parameter Name="options" Type="SkiaSharp.GRContextOptions" />
</Parameters>
<Docs>
<param name="backendContext">The Metal backend context to use.</param>
<param name="options">The context-creation options.</param>
<summary>Creates a <see cref="T:SkiaSharp.GRContext" /> for a Metal context.</summary>
<returns>Returns the new <see cref="T:SkiaSharp.GRContext" /> if one was created, otherwise <see langword="null" />.</returns>
<remarks />
</Docs>
</Member>
<Member MemberName="CreateVulkan">
<MemberSignature Language="C#" Value="public static SkiaSharp.GRContext CreateVulkan (SkiaSharp.GRVkBackendContext backendContext);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class SkiaSharp.GRContext CreateVulkan(class SkiaSharp.GRVkBackendContext backendContext) cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.CreateVulkan(SkiaSharp.GRVkBackendContext)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>SkiaSharp.GRContext</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="backendContext" Type="SkiaSharp.GRVkBackendContext" />
</Parameters>
<Docs>
<param name="backendContext">The Vulkan backend context to use.</param>
<summary>Creates a <see cref="T:SkiaSharp.GRContext" /> for a Vulkan context.</summary>
<returns>Returns the new <see cref="T:SkiaSharp.GRContext" /> if one was created, otherwise <see langword="null" />.</returns>
<remarks />
</Docs>
</Member>
<Member MemberName="CreateVulkan">
<MemberSignature Language="C#" Value="public static SkiaSharp.GRContext CreateVulkan (SkiaSharp.GRVkBackendContext backendContext, SkiaSharp.GRContextOptions options);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class SkiaSharp.GRContext CreateVulkan(class SkiaSharp.GRVkBackendContext backendContext, class SkiaSharp.GRContextOptions options) cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.CreateVulkan(SkiaSharp.GRVkBackendContext,SkiaSharp.GRContextOptions)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>SkiaSharp.GRContext</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="backendContext" Type="SkiaSharp.GRVkBackendContext" />
<Parameter Name="options" Type="SkiaSharp.GRContextOptions" />
</Parameters>
<Docs>
<param name="backendContext">The Vulkan backend context to use.</param>
<param name="options">The context-creation options.</param>
<summary>Creates a <see cref="T:SkiaSharp.GRContext" /> for a Vulkan context.</summary>
<returns>Returns the new <see cref="T:SkiaSharp.GRContext" /> if one was created, otherwise <see langword="null" />.</returns>
<remarks />
</Docs>
</Member>
<Member MemberName="Dispose">
<MemberSignature Language="C#" Value="protected override void Dispose (bool disposing);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void Dispose(bool disposing) cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.Dispose(System.Boolean)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="disposing" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="disposing">
<see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
<summary>Releases the unmanaged resources used by the <see cref="T:SkiaSharp.GRContext" /> and optionally releases the managed resources.</summary>
<remarks>Always dispose the object before you release your last reference to the <see cref="T:SkiaSharp.GRContext" />. Otherwise, the resources it is using will not be freed until the garbage collector calls the finalizer.</remarks>
</Docs>
</Member>
<Member MemberName="DisposeNative">
<MemberSignature Language="C#" Value="protected override void DisposeNative ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void DisposeNative() cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.DisposeNative" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Releases the native resources used by the <see cref="T:SkiaSharp.GRContext" />.</summary>
<remarks />
</Docs>
</Member>
<Member MemberName="DumpMemoryStatistics">
<MemberSignature Language="C#" Value="public void DumpMemoryStatistics (SkiaSharp.SKTraceMemoryDump dump);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void DumpMemoryStatistics(class SkiaSharp.SKTraceMemoryDump dump) cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.DumpMemoryStatistics(SkiaSharp.SKTraceMemoryDump)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="dump" Type="SkiaSharp.SKTraceMemoryDump" />
</Parameters>
<Docs>
<param name="dump">The memory dump object to populate with statistics.</param>
<summary>Dumps memory statistics for the context to the specified dump object.</summary>
<remarks />
</Docs>
</Member>
<Member MemberName="Flush">
<MemberSignature Language="C#" Value="public void Flush ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Flush() cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.Flush" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Call to ensure all drawing to the context has been issued to the underlying 3D API.</summary>
<remarks />
</Docs>
</Member>
<Member MemberName="Flush">
<MemberSignature Language="C#" Value="public void Flush (SkiaSharp.SKImage image);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Flush(class SkiaSharp.SKImage image) cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.Flush(SkiaSharp.SKImage)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="image" Type="SkiaSharp.SKImage" />
</Parameters>
<Docs>
<param name="image">The image whose associated GPU work should be flushed.</param>
<summary>Flushes any pending GPU drawing work associated with the specified image.</summary>
<remarks></remarks>
</Docs>
</Member>
<Member MemberName="Flush">
<MemberSignature Language="C#" Value="public void Flush (SkiaSharp.SKSurface surface);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Flush(class SkiaSharp.SKSurface surface) cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.Flush(SkiaSharp.SKSurface)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="surface" Type="SkiaSharp.SKSurface" />
</Parameters>
<Docs>
<param name="surface">The surface whose associated GPU work should be flushed.</param>
<summary>Flushes any pending GPU drawing work associated with the specified surface.</summary>
<remarks></remarks>
</Docs>
</Member>
<Member MemberName="Flush">
<MemberSignature Language="C#" Value="public void Flush (bool submit, bool synchronous = false);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Flush(bool submit, bool synchronous) cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.Flush(System.Boolean,System.Boolean)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="submit" Type="System.Boolean" />
<Parameter Name="synchronous" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="submit">
<see langword="true" /> to submit the work to the GPU after flushing; otherwise, <see langword="false" />.</param>
<param name="synchronous">
<see langword="true" /> to wait for the GPU to complete the work; otherwise, <see langword="false" />.</param>
<summary>Flushes all pending drawing operations to the underlying 3D API, optionally submitting work to the GPU.</summary>
<remarks />
</Docs>
</Member>
<Member MemberName="GetMaxSurfaceSampleCount">
<MemberSignature Language="C#" Value="public int GetMaxSurfaceSampleCount (SkiaSharp.SKColorType colorType);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance int32 GetMaxSurfaceSampleCount(valuetype SkiaSharp.SKColorType colorType) cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.GetMaxSurfaceSampleCount(SkiaSharp.SKColorType)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="colorType" Type="SkiaSharp.SKColorType" />
</Parameters>
<Docs>
<param name="colorType">The color type.</param>
<summary>Gets the maximum supported sample count for the specified color type.</summary>
<returns>Returns the maximum supported sample count.</returns>
<remarks>1 is returned if only non-MSAA rendering is supported for the color type. 0 is returned if rendering to this color type is not supported at all.</remarks>
</Docs>
</Member>
<Member MemberName="GetResourceCacheLimit">
<MemberSignature Language="C#" Value="public long GetResourceCacheLimit ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance int64 GetResourceCacheLimit() cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.GetResourceCacheLimit" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int64</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Returns the maximum number of bytes of video memory that can be held in the cache.</summary>
<returns>The maximum number of bytes of video memory that can be held in the cache.</returns>
<remarks />
</Docs>
</Member>
<Member MemberName="GetResourceCacheUsage">
<MemberSignature Language="C#" Value="public void GetResourceCacheUsage (out int maxResources, out long maxResourceBytes);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void GetResourceCacheUsage([out] int32& maxResources, [out] int64& maxResourceBytes) cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.GetResourceCacheUsage(System.Int32@,System.Int64@)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="maxResources" Type="System.Int32" RefType="out" />
<Parameter Name="maxResourceBytes" Type="System.Int64" RefType="out" />
</Parameters>
<Docs>
<param name="maxResources">The number of resources that are held in the cache.</param>
<param name="maxResourceBytes">The total number of bytes of video memory held in the cache.</param>
<summary>Returns the current GPU resource cache usage.</summary>
<remarks />
</Docs>
</Member>
<Member MemberName="IsAbandoned">
<MemberSignature Language="C#" Value="public override bool IsAbandoned { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool IsAbandoned" />
<MemberSignature Language="DocId" Value="P:SkiaSharp.GRContext.IsAbandoned" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a value indicating whether the context has been abandoned.</summary>
<value>
<see langword="true" /> if the context has been abandoned; otherwise, <see langword="false" />.</value>
<remarks />
</Docs>
</Member>
<Member MemberName="PurgeResources">
<MemberSignature Language="C#" Value="public void PurgeResources ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void PurgeResources() cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.PurgeResources" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Frees all GPU resources held by the context.</summary>
<remarks />
</Docs>
</Member>
<Member MemberName="PurgeUnlockedResources">
<MemberSignature Language="C#" Value="public void PurgeUnlockedResources (bool scratchResourcesOnly);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void PurgeUnlockedResources(bool scratchResourcesOnly) cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.PurgeUnlockedResources(System.Boolean)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="scratchResourcesOnly" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="scratchResourcesOnly">
<see langword="true" /> to purge only scratch resources; otherwise, <see langword="false" /> to purge all unlocked resources.</param>
<summary>Purges unlocked resources from the cache.</summary>
<remarks />
</Docs>
</Member>
<Member MemberName="PurgeUnlockedResources">
<MemberSignature Language="C#" Value="public void PurgeUnlockedResources (long bytesToPurge, bool preferScratchResources);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void PurgeUnlockedResources(int64 bytesToPurge, bool preferScratchResources) cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.PurgeUnlockedResources(System.Int64,System.Boolean)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="bytesToPurge" Type="System.Int64" />
<Parameter Name="preferScratchResources" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="bytesToPurge">The number of bytes to attempt to purge.</param>
<param name="preferScratchResources">
<see langword="true" /> to prefer purging scratch resources first; otherwise, <see langword="false" />.</param>
<summary>Purges unlocked resources from the cache until the specified number of bytes have been freed.</summary>
<remarks />
</Docs>
</Member>
<Member MemberName="PurgeUnusedResources">
<MemberSignature Language="C#" Value="public void PurgeUnusedResources (long milliseconds);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void PurgeUnusedResources(int64 milliseconds) cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.PurgeUnusedResources(System.Int64)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="milliseconds" Type="System.Int64" />
</Parameters>
<Docs>
<param name="milliseconds">The time period in milliseconds. Resources that have not been used within this time period will be purged.</param>
<summary>Purges resources that have not been used within the specified time period.</summary>
<remarks />
</Docs>
</Member>
<Member MemberName="ResetContext">
<MemberSignature Language="C#" Value="public void ResetContext (SkiaSharp.GRBackendState state = SkiaSharp.GRBackendState.All);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void ResetContext(valuetype SkiaSharp.GRBackendState state) cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.ResetContext(SkiaSharp.GRBackendState)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="state" Type="SkiaSharp.GRBackendState" />
</Parameters>
<Docs>
<param name="state">Flags to control what is reset.</param>
<summary>Informs the context that the state was modified and should resend.</summary>
<remarks>The context normally assumes that no outsider is setting state within the underlying 3D API's context/device/whatever. This method shouldn't be called frequently for good performance.</remarks>
</Docs>
</Member>
<Member MemberName="ResetContext">
<MemberSignature Language="C#" Value="public void ResetContext (SkiaSharp.GRGlBackendState state);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void ResetContext(valuetype SkiaSharp.GRGlBackendState state) cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.ResetContext(SkiaSharp.GRGlBackendState)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="state" Type="SkiaSharp.GRGlBackendState" />
</Parameters>
<Docs>
<param name="state">Flags to control what is reset.</param>
<summary>Informs the context that the state was modified and should resend.</summary>
<remarks>The context normally assumes that no outsider is setting state within the underlying 3D API's context/device/whatever. This method shouldn't be called frequently for good performance.</remarks>
</Docs>
</Member>
<Member MemberName="ResetContext">
<MemberSignature Language="C#" Value="public void ResetContext (uint state);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void ResetContext(unsigned int32 state) cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.ResetContext(System.UInt32)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="state" Type="System.UInt32" />
</Parameters>
<Docs>
<param name="state">Flags to control what is reset.</param>
<summary>Informs the context that the state was modified and should resend.</summary>
<remarks>The context normally assumes that no outsider is setting state within the underlying 3D API's context/device/whatever. This method shouldn't be called frequently for good performance.</remarks>
</Docs>
</Member>
<Member MemberName="SetResourceCacheLimit">
<MemberSignature Language="C#" Value="public void SetResourceCacheLimit (long maxResourceBytes);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SetResourceCacheLimit(int64 maxResourceBytes) cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.SetResourceCacheLimit(System.Int64)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="maxResourceBytes" Type="System.Int64" />
</Parameters>
<Docs>
<param name="maxResourceBytes">The maximum number of bytes of video memory that can be held in the cache.</param>
<summary>Specifies the GPU resource cache limit.</summary>
<remarks>If the current cache exceeds this limit, it will be purged (LRU) to keep the cache within this limit.</remarks>
</Docs>
</Member>
<Member MemberName="Submit">
<MemberSignature Language="C#" Value="public void Submit (bool synchronous = false);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Submit(bool synchronous) cil managed" />
<MemberSignature Language="DocId" Value="M:SkiaSharp.GRContext.Submit(System.Boolean)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>SkiaSharp</AssemblyName>
<AssemblyVersion>4.151.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="synchronous" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="synchronous">
<see langword="true" /> to wait for the GPU to complete all outstanding work; otherwise, <see langword="false" />.</param>
<summary>Submits outstanding work to the GPU.</summary>
<remarks />
</Docs>
</Member>
</Members>
</Type>