Skip to content
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

Merged
merged 20 commits into from Apr 15, 2021
Merged

Support eglstream #52

merged 20 commits into from Apr 15, 2021

Conversation

ghost
Copy link

@ghost ghost commented Mar 30, 2021

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

@ghost
Copy link
Author

ghost commented Mar 30, 2021

@HidenoriMatsubayashi Can I request you to review?

Copy link
Contributor

@HidenoriMatsubayashi HidenoriMatsubayashi left a comment

Choose a reason for hiding this comment

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

I've commented.

CMakeLists.txt Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@ghost
Copy link
Author

ghost commented Apr 5, 2021

@HidenoriMatsubayashi I fixed the code. Please review again.

Copy link
Contributor

@HidenoriMatsubayashi HidenoriMatsubayashi left a 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?

CMakeLists.txt Outdated Show resolved Hide resolved
@HidenoriMatsubayashi HidenoriMatsubayashi added the drm Topics of DRM backend label Apr 5, 2021
@ghost
Copy link
Author

ghost commented Apr 5, 2021

I resolved README conflict.

@ghost
Copy link
Author

ghost commented Apr 7, 2021

@HidenoriMatsubayashi I fixed the code and merged the latest master branch code. Please review again.

Copy link
Contributor

@HidenoriMatsubayashi HidenoriMatsubayashi left a 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.

cmake/build.cmake Show resolved Hide resolved
cmake/build.cmake Outdated Show resolved Hide resolved
cmake/package.cmake Show resolved Hide resolved

EGLint surface_attribs[] = {EGL_WIDTH, window->Width(), EGL_HEIGHT,
window->Height(), EGL_NONE};
auto surface = eglCreateStreamProducerSurfaceKHR_(
Copy link
Contributor

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?

Copy link
Author

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.

@ghost
Copy link
Author

ghost commented Apr 12, 2021

@HidenoriMatsubayashi I fixed the code. Please review again. #52 (comment) has not been investigated yet. After investigating, I will update it.

Copy link
Contributor

@HidenoriMatsubayashi HidenoriMatsubayashi left a 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.

}

auto map =
static_cast<uint8_t*>(mmap(0, create_dump.size, PROT_READ | PROT_WRITE,
Copy link
Contributor

Choose a reason for hiding this comment

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

There isn't unmap.

Copy link
Author

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.


struct drm_property_ids property_ids = {0};
GetPropertyIds(&property_ids);
drmModeAtomicAddProperty(atomic, drm_crtc_->crtc_id,
Copy link
Contributor

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.

Copy link
Author

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.

@ghost
Copy link
Author

ghost commented Apr 14, 2021

@HidenoriMatsubayashi I fixed the code. Please review. #52 (comment) and #52 (comment) have not been fixed yet. After investigating, I will fix it.

@ghost ghost mentioned this pull request Apr 15, 2021
@HidenoriMatsubayashi HidenoriMatsubayashi merged commit a052911 into sony:master Apr 15, 2021
@ghost ghost mentioned this pull request Apr 16, 2021
@ghost ghost deleted the support-eglstream branch April 21, 2021 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
drm Topics of DRM backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant