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

Cast screen kms #142

Merged

Conversation

yhe39
Copy link
Contributor

@yhe39 yhe39 commented Aug 12, 2024

No description provided.

@sysopenci
Copy link

Improper Commit Message
Tracked on not found in commit message,
make sure Tracked-On: Jira-ticket is present.

@sysopenci
Copy link

Improper Commit Message
Tracked on not found in commit message,
make sure Tracked-On: Jira-ticket is present.

@yhe39
Copy link
Contributor Author

yhe39 commented Sep 5, 2024

@feijiang1 @phreer @chenyanxzhu the pr is updated, please check.

cros_gralloc/cros_gralloc_driver.cc Outdated Show resolved Hide resolved
cros_gralloc/cros_gralloc_driver.cc Show resolved Hide resolved
cros_gralloc/cros_gralloc_driver.cc Outdated Show resolved Hide resolved
return -ENODEV;
}

fd = open(node, O_RDWR, 0);

Choose a reason for hiding this comment

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

need check fd, here, upper log
drv_loge("Open new added node fail\n");
need be moved here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

in the line 136, checked the fd, the availabe_node calculate the available node, in line 152, availabe_node > 0 means has the available node, so the fd should be the workable fd.
I add the checks before, Chenyan comment that the checks are done above, so i remove the checks.

Copy link
Contributor

@chenyanxzhu chenyanxzhu Sep 9, 2024

Choose a reason for hiding this comment

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

Actually what i mean is that u can push this bloc code(line 163-190) into the for loop (line 145), and rm line 152-162. Just for reference. Also 'availabe_node' can be removed if change this way.

Choose a reason for hiding this comment

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

agree, suggest to combine upper code to remove some duplicated code. Also please help add some comments here, for example, the second ivshmem device is for our screen cast purpose.
Also please add enough introduction in the commit description.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Patch updated, i made changes to use the first available ivshm node to screen cast.
Please check.

Open the first available ivshm node.
If it is sancout buffer with certain resolution,
use the ivshm node to allocate buffer.

Tracked-On: OAM-122966
Signed-off-by: He, Yue <[email protected]>
Copy link

@feijiang1 feijiang1 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@feijiang1 feijiang1 left a comment

Choose a reason for hiding this comment

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

LGTM

@sysopenci sysopenci added Developer Approved and removed Pending Developer Approval Pending Developer Approval labels Sep 12, 2024
@sysopenci
Copy link

Android CI has started Engineering Build for this issue ,Please check the linked Tracked-On issue/Android CI Web for more details.

@sysopenci
Copy link

Android CI has started MERGE Build for this pr ,Please check the linked Tracked-On issue/Android CI Web for more details.

@sysopenci sysopenci merged commit 7d29ab0 into projectceladon:celadon/u/mr0/master Sep 14, 2024
14 checks passed
@sysopenci
Copy link

Android CI has completed MERGE Build for this pr, build is SUCCESS. Please check the linked Tracked-On issue/Android CI Web for more details. For Binaries: /cactus-absp-or-local/celadon_umr0_master-merge/94

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants