Skip to content

Commit

Permalink
android: update GLHelper.h includes
Browse files Browse the repository at this point in the history
  • Loading branch information
mortend committed Apr 2, 2023
1 parent 76e4485 commit 2b143eb
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Source/Fuse.Common/FramebufferPool.uno
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ namespace Fuse
}
}

[extern(ANDROID) Require("Source.Include", "Uno/Graphics/GLHelper.h")]
[extern(ANDROID) Require("Source.Include", "uDroid/GLHelper.h")]
internal class FramebufferPoolImpl : ISoftDisposable
{
public FramebufferPoolImpl()
Expand Down
2 changes: 1 addition & 1 deletion Source/Fuse.Common/GraphicsWorker.uno
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ using Fuse;

namespace Fuse
{
[extern(ANDROID) Require("Source.Include", "Uno/Graphics/GLHelper.h")]
[extern(ANDROID) Require("Source.Include", "uDroid/GLHelper.h")]
[extern(IOS && METAL) Require("Source.Include", "MetalANGLE/MGLKit.h")]
/** Allows dispatching actions on a separate thread with access to a grpahics
context that shares data with the main graphics context of the @App.
Expand Down
8 changes: 4 additions & 4 deletions Source/Fuse.Controls.Native/Android/GraphicsView.uno
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace Fuse.Controls.Native.Android
IntPtr _nativeWindow = IntPtr.Zero;

[TargetSpecificImplementation]
[Require("Source.Include", "Uno/Graphics/GLHelper.h")]
[Require("Source.Include", "uDroid/GLHelper.h")]
protected void SetSurface(Java.Object surfaceHandle)
{
if (_surfaceHandle != null)
Expand All @@ -51,7 +51,7 @@ namespace Fuse.Controls.Native.Android
}

[TargetSpecificImplementation]
[Require("Source.Include", "Uno/Graphics/GLHelper.h")]
[Require("Source.Include", "uDroid/GLHelper.h")]
protected void DestroySurface()
{
extern(_eglSurface) "GLHelper::SwapBackToBackgroundSurface( (EGLSurface)$0 )";
Expand All @@ -63,7 +63,7 @@ namespace Fuse.Controls.Native.Android
}

[TargetSpecificImplementation]
[Require("Source.Include", "Uno/Graphics/GLHelper.h")]
[Require("Source.Include", "uDroid/GLHelper.h")]
public bool BeginDraw(int2 size)
{
if (_eglSurface == IntPtr.Zero)
Expand All @@ -86,7 +86,7 @@ namespace Fuse.Controls.Native.Android
}

[TargetSpecificImplementation]
[Require("Source.Include", "Uno/Graphics/GLHelper.h")]
[Require("Source.Include", "uDroid/GLHelper.h")]
public void EndDraw()
{
double t;
Expand Down
2 changes: 1 addition & 1 deletion Source/Fuse.Controls.Video/Android/VideoPlayer.uno
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ namespace Fuse.Controls.VideoImpl.Android
@}

[Foreign(Language.Java)]
[Require("Source.Include", "Uno/Graphics/GLHelper.h")]
[Require("Source.Include", "uDroid/GLHelper.h")]
public static bool IsHardwareAccelerated()
@{
android.view.Window window = com.fuse.Activity.getRootActivity().getWindow();
Expand Down
2 changes: 1 addition & 1 deletion Source/Fuse.Elements/Caching/ElementAtlasPool.uno
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ namespace Fuse.Elements
ElementAtlasFramebufferPool.AtlasSizeChanged += OnAtlasSizeChanged;
}

[Require("Source.Include", "Uno/Graphics/GLHelper.h")]
[Require("Source.Include", "uDroid/GLHelper.h")]
extern(ANDROID)
void DiscardPool()
{
Expand Down
2 changes: 1 addition & 1 deletion Source/Fuse.Elements/Resources/FileImageSource.uno
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ namespace Fuse.Resources
public float Density { get { return _proxy.Density; } set { _proxy.Density = value; } }
}

[extern(ANDROID) Require("Source.Include", "Uno/Graphics/GLHelper.h")]
[extern(ANDROID) Require("Source.Include", "uDroid/GLHelper.h")]
class FileImageSourceImpl : LoadingImageSource
{
FileSource _file;
Expand Down
4 changes: 2 additions & 2 deletions Source/Fuse.Platform/Android/SystemUI.uno
Original file line number Diff line number Diff line change
Expand Up @@ -544,14 +544,14 @@ namespace Fuse.Platform
@}


[Require("Source.Include", "Uno/Graphics/GLHelper.h")]
[Require("Source.Include", "uDroid/GLHelper.h")]
static void cppOnConfigChanged()
{
extern "GLHelper::SwapBackToBackgroundSurface()";
ResetGeometry();
}

[Require("Source.Include", "Uno/Graphics/GLHelper.h")]
[Require("Source.Include", "uDroid/GLHelper.h")]
static void ResetGeometry()
{
extern "GLHelper::SwapBackToBackgroundSurface()";
Expand Down

0 comments on commit 2b143eb

Please sign in to comment.