Skip to content
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

Merged
merged 10 commits into from
Jul 27, 2020
Merged

Add the GPU views for Uno Platform #1429

merged 10 commits into from
Jul 27, 2020

Conversation

mattleibow
Copy link
Contributor

@mattleibow mattleibow commented Jul 24, 2020

Description of Change

Add the GPU views for the Uno Platform.

  • Android
    • Draw
    • Render Loop
  • iOS
    • Draw
    • Render Loop
  • macOS
    • Draw
    • Render Loop
  • WASM
    • Draw
    • Render Loop

Bugs Fixed

API Changes

Adding SKSwapChainPanel to Uno Platform

Behavioral Changes

New views.

PR Checklist

  • Has tests (if omitted, state reason in description)
  • Rebased on top of master at time of PR
  • Changes adhere to coding standard
  • Updated documentation

@mattleibow mattleibow marked this pull request as draft July 24, 2020 19:31
public int Depth { get; set; }
}

private class SKSwapChainPanelJsInterop : IJSObject, IJSObjectMetadata
Copy link
Contributor Author

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.

Comment on lines 53 to 65
[NotImplemented]
public bool DrawInBackground
{
get => throw new NotImplementedException();
set => throw new NotImplementedException();
}

[NotImplemented]
public bool EnableRenderLoop
{
get => throw new NotImplementedException();
set => throw new NotImplementedException();
}
Copy link
Contributor Author

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.

Comment on lines +105 to +107
loadUnloadCounter++;
if (loadUnloadCounter != 1)
return;
Copy link
Contributor Author

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

Copy link
Contributor

@jeromelaban jeromelaban left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks amazing :)

private SKSizeI lastSize;

public SKSwapChainPanel()
: base("canvas")
Copy link
Contributor

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)

@mattleibow mattleibow marked this pull request as ready for review July 27, 2020 08:19
@mattleibow mattleibow merged commit b3f5975 into master Jul 27, 2020
@mattleibow mattleibow deleted the dev/uno-gpu branch July 27, 2020 16:46
@mattleibow mattleibow added this to the v2.80.2 milestone Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants