rename thermion_filament namespace to thermion_flutter for Windows

This commit is contained in:
Nick Fisher
2024-06-26 01:51:31 +10:00
parent 683b79c9a0
commit 368ce83380
15 changed files with 23 additions and 24 deletions

View File

@@ -12,7 +12,7 @@
#pragma comment(lib, "dwmapi.lib")
#pragma comment(lib, "comctl32.lib")
namespace thermion_filament {
namespace thermion_flutter {
static constexpr auto kClassName = L"FLUTTER_FILAMENT_WINDOW";
static constexpr auto kWindowName = L"thermion_flutter_window";
@@ -354,4 +354,4 @@ void BackingWindow::Resize(int width, int height, int left, int top) {
}
HWND BackingWindow::GetHandle() { return _windowHandle; }
} // namespace thermion_filament
} // namespace thermion_flutter

View File

@@ -5,7 +5,7 @@
#include <flutter/plugin_registrar_windows.h>
#include <flutter/standard_method_codec.h>
namespace thermion_filament {
namespace thermion_flutter {
class BackingWindow {
public:

View File

@@ -7,7 +7,7 @@
#pragma comment(lib, "dwmapi.lib")
#pragma comment(lib, "comctl32.lib")
namespace thermion_filament {
namespace thermion_flutter {
FlutterEGLContext::FlutterEGLContext(
flutter::PluginRegistrarWindows* pluginRegistrar,

View File

@@ -12,7 +12,7 @@
#include "backend/platforms/PlatformEGL.h"
#include "flutter_render_context.h"
namespace thermion_filament {
namespace thermion_flutter {
class FlutterEGLContext : public FlutterRenderContext {
public:

View File

@@ -7,7 +7,7 @@
#include <thread>
namespace thermion_filament {
namespace thermion_flutter {
static void logEglError(const char *name) noexcept {
const char *err;
@@ -240,4 +240,4 @@ FlutterAngleTexture::FlutterAngleTexture(
result->Success(resultList);
}
} // namespace thermion_filament
} // namespace thermion_flutter

View File

@@ -26,7 +26,7 @@
typedef uint32_t GLuint;
namespace thermion_filament {
namespace thermion_flutter {
class FlutterAngleTexture : public FlutterTextureBuffer {
public:

View File

@@ -8,7 +8,7 @@
#include "flutter_texture_buffer.h"
namespace thermion_filament {
namespace thermion_flutter {
class FlutterRenderContext {
public:

View File

@@ -7,7 +7,7 @@
#include <flutter/texture_registrar.h>
namespace thermion_filament {
namespace thermion_flutter {
class FlutterTextureBuffer {
public:

View File

@@ -7,7 +7,7 @@
#include <thread>
namespace thermion_filament {
namespace thermion_flutter {
void _release_callback(void *releaseContext) {
// ((OpenGLTextureBuffer*)releaseContext)->unlock();
@@ -141,4 +141,4 @@ OpenGLTextureBuffer::~OpenGLTextureBuffer() {
wglMakeCurrent(NULL, NULL);
}
} // namespace thermion_filament
} // namespace thermion_flutter

View File

@@ -20,7 +20,7 @@
typedef uint32_t GLuint;
namespace thermion_filament {
namespace thermion_flutter {
class OpenGLTextureBuffer : public FlutterTextureBuffer {
public:

View File

@@ -10,7 +10,7 @@
#include "thermion_flutter_plugin.h"
namespace thermion_filament {
namespace thermion_flutter {
namespace test {
namespace {
@@ -40,4 +40,4 @@ TEST(ThermionFlutterPlugin, GetPlatformVersion) {
}
} // namespace test
} // namespace thermion_filament
} // namespace thermion_flutter

View File

@@ -35,7 +35,7 @@
#include "wgl_context.h"
#endif
namespace thermion_filament {
namespace thermion_flutter {
using namespace std::chrono_literals;
@@ -61,7 +61,6 @@ ThermionFlutterPlugin::ThermionFlutterPlugin(
// attach the method call handler for incoming messages
_channel->SetMethodCallHandler([=](const auto &call, auto result) {
std::cout << call.method_name() << std::endl;
this->HandleMethodCall(call, std::move(result));
});
}
@@ -275,4 +274,4 @@ void ThermionFlutterPlugin::HandleMethodCall(
}
}
} // namespace thermion_filament
} // namespace thermion_flutter

View File

@@ -14,7 +14,7 @@
#include "GL/GL.h"
#include "GL/GLu.h"
#include "ResourceBuffer.hpp"
#include "ResourceBuffer.h"
#if USE_ANGLE
#include "egl_context.h"
@@ -22,7 +22,7 @@
#include "wgl_context.h"
#endif
namespace thermion_filament {
namespace thermion_flutter {
class ThermionFlutterPlugin : public flutter::Plugin {
public:
@@ -66,6 +66,6 @@ public:
#endif
};
} // namespace thermion_filament
} // namespace thermion_flutter
#endif // FLUTTER_PLUGIN_FLUTTER_FILAMENT_PLUGIN_H_

View File

@@ -6,7 +6,7 @@
#include "flutter_texture_buffer.h"
namespace thermion_filament {
namespace thermion_flutter {
WGLContext::WGLContext(flutter::PluginRegistrarWindows *pluginRegistrar,
flutter::TextureRegistrar *textureRegistrar)
@@ -143,4 +143,4 @@ void WGLContext::CreateRenderingSurface(
void *WGLContext::GetSharedContext() { return (void *)_context; }
} // namespace thermion_filament
} // namespace thermion_flutter

View File

@@ -7,7 +7,7 @@
#if WGL_USE_BACKING_WINDOW
#include "backing_window.h"
#endif
namespace thermion_filament {
namespace thermion_flutter {
class WGLContext : public FlutterRenderContext {
public: