Skip to content

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.

@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?

@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.


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.

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