Skip to content

Conversation

@xiaowei-guan
Copy link
Contributor

@xiaowei-guan xiaowei-guan commented Jun 27, 2025

#101
Main changes:

  • Make FlutterTizenView SetEngine and CreateRenderSurfcae methods private.
  • Add TizenRendererNui class to decorate GL renderer for NUI.
  • Remove GL renderer methods from FlutterTizenView.
  • Do not call CreateSurface and DestorySurface in FlutterTizenView.
  • Move GetRendererConfig to renderer.
  • Extract a new class for GL renderer.
  • Move create texture code from texture registrar to renderer.

Make SetEngine and CreateRenderSurfcae private.
1. Add TizenRendererNui class to decorate GL renderer.
1.Call CreateSurface when new renderer.
2.Call DestorySurface when desconstruct renderer.
@xiaowei-guan xiaowei-guan marked this pull request as draft June 27, 2025 08:59
@xiaowei-guan xiaowei-guan force-pushed the refactor-renderer-001 branch from 863bb70 to 908e900 Compare June 30, 2025 10:28
1.Fix texture registrar crash issue.
2.Temporary remove texture registrar unit test code, we need
re-implement this unit test code.
@JSUYA
Copy link
Member

JSUYA commented Jul 3, 2025

Hi about this commit 8121f5e ...
There was a similar case at #90.
Did you check window's code?

As the feature of tizen embedder has modified, there have been cases where we needed additional mock-up of the embedder api.
I haven't tested it yet, but if you look at flutter_windows_texture_registrar_unittests.cc in windows, you might need to add a mock-up of PostRenderThreadTask.
(flutter/engine/src/flutter/shell/platform/windows/flutter_windows_texture_registrar_unittests.cc)

@xiaowei-guan xiaowei-guan marked this pull request as ready for review July 4, 2025 01:42
@xiaowei-guan
Copy link
Contributor Author

Hi about this commit 8121f5e ... There was a similar case at #90. Did you check window's code?

As the feature of tizen embedder has modified, there have been cases where we needed additional mock-up of the embedder api. I haven't tested it yet, but if you look at flutter_windows_texture_registrar_unittests.cc in windows, you might need to add a mock-up of PostRenderThreadTask. (flutter/engine/src/flutter/shell/platform/windows/flutter_windows_texture_registrar_unittests.cc)

Fail to run texture unittest, because texture registrar fail to create ExternalTexture. Not related to Embedder API.
I added a macro definition for this unit tests.

Copy link
Member

@JSUYA JSUYA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tried testing ElmFlutterView? I tested NUIFlutterView, but videos and webviews don't seem to work as expected (I think this was the case even before this PR). It can be a problem that my TV is running on Tizen 10.0 dev.

@xiaowei-guan xiaowei-guan force-pushed the refactor-renderer-001 branch from 0be7233 to c5b066d Compare July 8, 2025 06:54
1.Re-implement createRenderer method
2.Remove empty line
2.Supplement header file path
CreateSurface method only called by TizenRendereer and it's child class.
@xiaowei-guan
Copy link
Contributor Author

Have you tried testing ElmFlutterView? I tested NUIFlutterView, but videos and webviews don't seem to work as expected (I think this was the case even before this PR). It can be a problem that my TV is running on Tizen 10.0 dev.

I have testted the ElmFlutterView on Emulator,RPI4 and TV devices. Only video_play plugin not show issue on Tizen 10.0 device, and old version has the same issue, I think this is a platfrom issue.

I also tested the NUIFlutterView, only video_play plugin has video frozen issue on Tizen 10.0, the old version has the same issue.

@JSUYA
Copy link
Member

JSUYA commented Jul 18, 2025

@xiaowei-guan If there are no more problems, could you merge this?

@xiaowei-guan
Copy link
Contributor Author

@xiaowei-guan If there are no more problems, could you merge this?

Ok

@xiaowei-guan xiaowei-guan merged commit 361fc56 into flutter-tizen:master Jul 18, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants