|
1 | 1 | # TLabWebViewPlugin |
2 | | -Source code of java plugin used in TLabWebView |
| 2 | +Source code of java plugin used in [```TLabWebView```](https://github.com/TLabAltoh/TLabWebView) |
3 | 3 |
|
4 | 4 | ## Operating Environment |
5 | 5 | ``` |
6 | 6 | Android Studio Version: |
7 | | - Android Studio Giraffe | 2022.3.1 Patch 2 |
8 | | - Build #AI-223.8836.35.2231.10811636, built on September 15, 2023 |
9 | | - Runtime version: 17.0.6+0-b2043.56-10027231 amd64 |
10 | | - VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. |
11 | | - Windows 10 10.0 |
12 | | - GC: G1 Young Generation, G1 Old Generation |
13 | | - Memory: 1280M |
14 | | - Cores: 24 |
15 | | - Registry: |
16 | | - external.system.auto.import.disabled=true |
17 | | - ide.text.editor.with.preview.show.floating.toolbar=false |
18 | | -
|
| 7 | +Android Studio Koala | 2024.1.1 |
| 8 | +Build #AI-241.15989.150.2411.11948838, built on June 11, 2024 |
| 9 | +Runtime version: 17.0.10+0--11609105 amd64 |
| 10 | +VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. |
| 11 | +Windows 10.0 |
| 12 | +GC: G1 Young Generation, G1 Old Generation |
| 13 | +Memory: 4096M |
| 14 | +Cores: 24 |
| 15 | +Registry: |
| 16 | + debugger.new.tool.window.layout=true |
| 17 | + ide.experimental.ui=true |
19 | 18 | Non-Bundled Plugins: |
20 | | -com.google.idea.bazel.aswb (2023.10.10-aswb.0.1-api-version-223) |
| 19 | + OpenGL-Plugin (1.1.3) |
| 20 | + GLSL (1.24) |
| 21 | + name.kropp.intellij.makefile (241.14494.150) |
21 | 22 |
|
22 | 23 | OS: Windows 10 |
23 | 24 | ``` |
24 | 25 |
|
25 | 26 | ## Current Issue |
26 | 27 | ### Did not find frame |
27 | | -- The following error occurs when using lockhardwarecanvas in unity 2021 |
| 28 | +- The following error occurs when using [```lockHardwareCanvas```](https://developer.android.com/reference/android/view/SurfaceHolder#lockHardwareCanvas()) in unity 2021 |
28 | 29 | ``` |
29 | 30 | 2023/11/13 15:40:53.051 13492 13511 Error FrameEvents updateAcquireFence: Did not find frame. |
30 | 31 | ``` |
31 | 32 | Corresponding part of the code |
32 | 33 | ```java |
33 | 34 | // ViewToGLRenderer.java |
34 | 35 | public Canvas onDrawViewBegin() { |
35 | | - mSurfaceCanvas = null; |
36 | | - if (mSurface != null) { |
| 36 | + m_surfaceCanvas = null; |
| 37 | + if (m_surface != null) { |
37 | 38 | try { |
38 | 39 | //mSurfaceCanvas = mSurface.lockCanvas(null); |
39 | 40 | // https://learn.microsoft.com/en-us/dotnet/api/android.views.surface.lockhardwarecanvas?view=xamarin-android-sdk-13 |
40 | | - mSurfaceCanvas = mSurface.lockHardwareCanvas(); |
| 41 | + m_surfaceCanvas = mSurface.lockHardwareCanvas(); |
41 | 42 | }catch (Exception e){ |
42 | 43 | Log.e(TAG, "error while rendering view to gl: " + e); |
43 | 44 | } |
44 | 45 | } |
45 | | - return mSurfaceCanvas; |
| 46 | + return m_surfaceCanvas; |
46 | 47 | } |
47 | 48 | ``` |
48 | | -- [Issues that may be relevant](https://github.com/flutter/flutter/issues/104268) |
49 | 49 |
|
50 | 50 | ## Link |
51 | | -- [UnityAsset using this plugin](https://github.com/TLabAltoh/TLabWebView) |
52 | | -- [SharedTexture](https://github.com/keith2018/SharedTexture) |
53 | | -- [Reference repositorie](https://bitbucket.org/HoshiyamaTakaaki/pixelreadstest/src/master/) |
| 51 | +- [OpenGL Texture to hardwarebuffer](https://github.com/keith2018/SharedTexture) |
| 52 | +- [WebView to bytebuffer](https://bitbucket.org/HoshiyamaTakaaki/pixelreadstest/src/master/) |
0 commit comments