-
Notifications
You must be signed in to change notification settings - Fork 546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the GPU views for Uno Platform #1429
Conversation
source/SkiaSharp.Views.Uno/SkiaSharp.Views.Uno.Android/SKSwapChainPanel.Android.cs
Outdated
Show resolved
Hide resolved
public int Depth { get; set; } | ||
} | ||
|
||
private class SKSwapChainPanelJsInterop : IJSObject, IJSObjectMetadata |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is the correct way to do things in v2, not so sure about v3.
source/SkiaSharp.Views.Uno/SkiaSharp.Views.Uno.Wasm/WasmScripts/SkiaSharp.Views.Uno.Wasm.js
Show resolved
Hide resolved
[NotImplemented] | ||
public bool DrawInBackground | ||
{ | ||
get => throw new NotImplementedException(); | ||
set => throw new NotImplementedException(); | ||
} | ||
|
||
[NotImplemented] | ||
public bool EnableRenderLoop | ||
{ | ||
get => throw new NotImplementedException(); | ||
set => throw new NotImplementedException(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a TODO for v1.
loadUnloadCounter++; | ||
if (loadUnloadCounter != 1) | ||
return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not actually sure Uno also has the "feature-bug" #1118
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks amazing :)
source/SkiaSharp.Views.Uno/SkiaSharp.Views.Uno.Android/SKSwapChainPanel.Android.cs
Outdated
Show resolved
Hide resolved
private SKSizeI lastSize; | ||
|
||
public SKSwapChainPanel() | ||
: base("canvas") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will change with Uno 3 (HtmlElementAttribute
)
Description of Change
Add the GPU views for the Uno Platform.
Bugs Fixed
API Changes
Adding
SKSwapChainPanel
to Uno PlatformBehavioral Changes
New views.
PR Checklist