Skip to content

Commit

Permalink
fix(framebuffer): Mark dispatcher thread properly
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed Aug 3, 2022
1 parent 6240b58 commit 9268b6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Uno.UI-Skia-only.slnf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"SamplesApp\\Benchmarks.Shared\\SamplesApp.Benchmarks.shproj",
"SamplesApp\\SamplesApp.Shared\\SamplesApp.Shared.shproj",
"SamplesApp\\SamplesApp.Skia.Gtk\\SamplesApp.Skia.Gtk.csproj",
"SamplesApp\\SamplesApp.Skia.Linux.FrameBuffer\\SamplesApp.Skia.Linux.FrameBuffer.csproj",
"SamplesApp\\SamplesApp.Skia.Tizen\\SamplesApp.Skia.Tizen.csproj",
"SamplesApp\\SamplesApp.Skia.WPF\\SamplesApp.Skia.WPF.csproj",
"SamplesApp\\SamplesApp.Skia\\SamplesApp.Skia.csproj",
Expand Down
2 changes: 2 additions & 0 deletions src/Uno.UI.Runtime.Skia.Linux.FrameBuffer/FramebufferHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ public void Run()

private void Initialize()
{
_isDispatcherThread = true;

ApiExtensibility.Register(typeof(Windows.UI.Core.ICoreWindowExtension), o => new CoreWindowExtension(o));
ApiExtensibility.Register(typeof(Windows.UI.ViewManagement.IApplicationViewExtension), o => new ApplicationViewExtension(o));
ApiExtensibility.Register(typeof(Windows.Graphics.Display.IDisplayInformationExtension), o => _displayInformationExtension ??= new DisplayInformationExtension(o));
Expand Down

0 comments on commit 9268b6f

Please sign in to comment.