Use the event args instead of individual parameters
This commit is contained in:
Родитель
83b2c00550
Коммит
c87f8eeb4f
|
@ -32,9 +32,9 @@ namespace SkiaSharp.Views.Tizen
|
|||
|
||||
protected override SKSizeI GetSurfaceSize() => info.Size;
|
||||
|
||||
protected virtual void OnDrawFrame(SKSurface surface, SKImageInfo info)
|
||||
protected virtual void OnDrawFrame(SKPaintSurfaceEventArgs e)
|
||||
{
|
||||
PaintSurface?.Invoke(this, new SKPaintSurfaceEventArgs(surface, info));
|
||||
PaintSurface?.Invoke(this, e);
|
||||
}
|
||||
|
||||
protected sealed override void OnDrawFrame()
|
||||
|
@ -43,7 +43,7 @@ namespace SkiaSharp.Views.Tizen
|
|||
using (var surface = SKSurface.Create(info, Evas.evas_object_image_data_get(evasImage, true), info.RowBytes))
|
||||
{
|
||||
// draw using SkiaSharp
|
||||
OnDrawFrame(surface, info);
|
||||
OnDrawFrame(new SKPaintSurfaceEventArgs(surface, info));
|
||||
surface.Canvas.Flush();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,9 +44,9 @@ namespace SkiaSharp.Views.Tizen
|
|||
|
||||
protected override SKSizeI GetSurfaceSize() => renderTarget.Size;
|
||||
|
||||
protected virtual void OnDrawFrame(SKSurface surface, GRBackendRenderTargetDesc renderTarget)
|
||||
protected virtual void OnDrawFrame(SKPaintGLSurfaceEventArgs e)
|
||||
{
|
||||
PaintSurface?.Invoke(this, new SKPaintGLSurfaceEventArgs(surface, renderTarget));
|
||||
PaintSurface?.Invoke(this, e);
|
||||
}
|
||||
|
||||
protected sealed override void CreateNativeResources(EvasObject parent)
|
||||
|
@ -69,7 +69,7 @@ namespace SkiaSharp.Views.Tizen
|
|||
using (var surface = SKSurface.Create(context, renderTarget))
|
||||
{
|
||||
// draw using SkiaSharp
|
||||
OnDrawFrame(surface, renderTarget);
|
||||
OnDrawFrame(new SKPaintGLSurfaceEventArgs(surface, renderTarget));
|
||||
|
||||
surface.Canvas.Flush();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче