| Auto-Submit | +1 |
| Commit-Queue | +1 |
PushEGLintOrDie(pixmap->GetDmaBufOffset(attrs_plane), attrs);Kalvin LeeFrom the bug I thought only `offset` is required to perform checked cast. Other usages are safe here.
I was just slapping the cast on for consistency everywhere --- it's not clear to me at a glance what is and isn't safe. (By the way --- IIUC --- `checked_cast` should simply be compiled out when the compiler can tell that the type would fit.)
Retained lines 193-194 in patchset 2, undoing the others in this block.
PushEGLintOrDie(pixmap->GetDmaBufPitch(attrs_plane), attrs);Kalvin Leepitch is already `checked_cast` to 32 bit [here](https://source.chromium.org/chromium/chromium/src/+/main:ui/gfx/linux/native_pixmap_dmabuf.cc;l=38;drc=cf44d078028acbcb97d0fc80630ba9087a9ae620;bpv=0;bpt=1)
I can't tell what `EGLint` is defined as, but CodeSearch commonly shows `int32_t`. Thus `uint32_t` may not necessarily fit.
PushEGLintOrDie(pixmap->GetDmaBufOffset(pixmap_plane), attrs);Kalvin Leeditto
Retained line 216 for patchset 2, undoing everything else in this block.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |