From 3fcaed05007d4a46a1d4178d487e0838be68fcc6 Mon Sep 17 00:00:00 2001 From: Hidenori Matsubayashi Date: Mon, 21 Aug 2023 12:17:24 +0000 Subject: [PATCH] platform-views: fix wrong size of texture id This change fixes wrong size of texture id. Signed-off-by: Hidenori Matsubayashi --- .../platform/linux_embedded/public/flutter_platform_views.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/flutter/shell/platform/linux_embedded/public/flutter_platform_views.h b/src/flutter/shell/platform/linux_embedded/public/flutter_platform_views.h index a1ff65e..0e7c9d5 100644 --- a/src/flutter/shell/platform/linux_embedded/public/flutter_platform_views.h +++ b/src/flutter/shell/platform/linux_embedded/public/flutter_platform_views.h @@ -36,9 +36,9 @@ class FlutterDesktopPlatformView { bool IsFocused() const { return focused_; } - void SetTextureId(int texture_id) { texture_id_ = texture_id; } + void SetTextureId(int64_t texture_id) { texture_id_ = texture_id; } - int GetTextureId() const { return texture_id_; } + int64_t GetTextureId() const { return texture_id_; } virtual void Resize(double width, double height) = 0; @@ -49,7 +49,7 @@ class FlutterDesktopPlatformView { private: flutter::PluginRegistrar* registrar_; int view_id_; - int texture_id_; + int64_t texture_id_; bool focused_; };