-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support eglstream #52
Conversation
src/flutter/shell/platform/linux_embedded/window/native_window_eglstream.cc
Outdated
Show resolved
Hide resolved
@HidenoriMatsubayashi Can I request you to review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've commented.
src/flutter/shell/platform/linux_embedded/surface/context_egl.h
Outdated
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/surface/environment_egl.h
Outdated
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/surface/environment_egl.h
Outdated
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/surface/linuxes_surface_gl_eglstream.cc
Outdated
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/window/linuxes_window_eglstream.cc
Outdated
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/surface/context_egl.h
Outdated
Show resolved
Hide resolved
@HidenoriMatsubayashi I fixed the code. Please review again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you resolve README conflict first?
This reverts commit f768b00.
src/flutter/shell/platform/linux_embedded/plugin/mouse_cursor_plugin.cc
Outdated
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/plugin/platform_plugin.cc
Outdated
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/plugin/text_input_plugin.cc
Outdated
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/surface/context_egl_drm_eglstream.h
Outdated
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/surface/context_egl_drm_eglstream.h
Outdated
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/surface/context_egl_drm_eglstream.h
Outdated
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/surface/context_egl_drm_eglstream.h
Outdated
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/surface/context_egl_drm_eglstream.h
Outdated
Show resolved
Hide resolved
I resolved README conflict. |
@HidenoriMatsubayashi I fixed the code and merged the latest master branch code. Please review again. |
src/flutter/shell/platform/linux_embedded/plugin/mouse_cursor_plugin.cc
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked part of it since there are many bits of advice.
examples/flutter-external-texture-plugin/cmake/user_config.cmake
Outdated
Show resolved
Hide resolved
examples/flutter-weston-desktop-shell-virtual-keyboard/cmake/user_config.cmake
Outdated
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/surface/environment_egl_drm_eglstream.h
Outdated
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/surface/environment_egl_drm_eglstream.h
Outdated
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/surface/environment_egl_drm_eglstream.h
Outdated
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/surface/environment_egl_drm_eglstream.h
Outdated
Show resolved
Hide resolved
|
||
EGLint surface_attribs[] = {EGL_WIDTH, window->Width(), EGL_HEIGHT, | ||
window->Height(), EGL_NONE}; | ||
auto surface = eglCreateStreamProducerSurfaceKHR_( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if the resolution of the display changes in the middle?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the resolution of the display changes, the display does not update. I will investigate and fix this issue in #65.
src/flutter/shell/platform/linux_embedded/surface/linuxes_surface_gl_drm_eglstream.h
Outdated
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/window/linuxes_window_drm_eglstream.h
Outdated
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/window/linuxes_window_drm_gbm.h
Outdated
Show resolved
Hide resolved
@HidenoriMatsubayashi I fixed the code. Please review again. #52 (comment) has not been investigated yet. After investigating, I will update it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix these first.
src/flutter/shell/platform/linux_embedded/surface/environment_egl_drm_eglstream.cc
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/window/native_window.h
Outdated
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/window/native_window_drm_eglstream.h
Outdated
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/window/native_window_drm_eglstream.h
Outdated
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/window/native_window_drm_eglstream.h
Outdated
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/window/native_window_drm_eglstream.cc
Outdated
Show resolved
Hide resolved
} | ||
|
||
auto map = | ||
static_cast<uint8_t*>(mmap(0, create_dump.size, PROT_READ | PROT_WRITE, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There isn't unmap.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created #71 for this issue.
src/flutter/shell/platform/linux_embedded/window/native_window_drm.h
Outdated
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/window/native_window_drm_eglstream.cc
Outdated
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/window/native_window_drm_eglstream.cc
Outdated
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/window/native_window_drm_eglstream.cc
Outdated
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/window/native_window_drm_eglstream.cc
Outdated
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/window/native_window_drm_eglstream.cc
Outdated
Show resolved
Hide resolved
|
||
struct drm_property_ids property_ids = {0}; | ||
GetPropertyIds(&property_ids); | ||
drmModeAtomicAddProperty(atomic, drm_crtc_->crtc_id, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drmModeAtomicAddProperty returns result.
0 | if successful. |
---|---|
-1 | if req is NULL or the API is out of memory. |
-EINVAL | if DRM_CLIENT_CAP_ATOMIC is not enabled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created #71 for this issue.
src/flutter/shell/platform/linux_embedded/window/native_window_drm_eglstream.cc
Outdated
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/window/native_window_drm_eglstream.cc
Show resolved
Hide resolved
src/flutter/shell/platform/linux_embedded/window/native_window_drm_eglstream.cc
Outdated
Show resolved
Hide resolved
@HidenoriMatsubayashi I fixed the code. Please review. #52 (comment) and #52 (comment) have not been fixed yet. After investigating, I will fix it. |
Description
I add EGLStream backend support. Mouse, touch, and keyboard input are working, but the mouse cursor is not updated when a change notification comes from the flutter. I will support this feature later.
Related issues
#1