Skip to content

Commit 311e9f1

Browse files
platform-views: fix wrong size of texture id (#379)
This change fixes wrong size of texture id. Related issue: #41 Signed-off-by: Hidenori Matsubayashi <[email protected]>
1 parent 98e15f3 commit 311e9f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/flutter/shell/platform/linux_embedded/public/flutter_platform_views.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ class FlutterDesktopPlatformView {
3636

3737
bool IsFocused() const { return focused_; }
3838

39-
void SetTextureId(int texture_id) { texture_id_ = texture_id; }
39+
void SetTextureId(int64_t texture_id) { texture_id_ = texture_id; }
4040

41-
int GetTextureId() const { return texture_id_; }
41+
int64_t GetTextureId() const { return texture_id_; }
4242

4343
virtual void Resize(double width, double height) = 0;
4444

@@ -49,7 +49,7 @@ class FlutterDesktopPlatformView {
4949
private:
5050
flutter::PluginRegistrar* registrar_;
5151
int view_id_;
52-
int texture_id_;
52+
int64_t texture_id_;
5353
bool focused_;
5454
};
5555

0 commit comments

Comments
 (0)