Commit-Queue | +1 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
size_t size_in_bytes = viz::SharedMemorySizeForSharedImageFormat(
Thanks! Quick question for my understanding as it's a bit subtle wading through the code: This method is indeed a drop-in replacement for the ResourceSizes one? From your comments on the bug I had thought that it was a drop-in replacement for the BufferFormat utils that Saif is replacing, and that the ResourceSizes methods had some differences? Perhaps those aren't relevant for RGB*8?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Commit-Queue | +1 |
size_t size_in_bytes = viz::SharedMemorySizeForSharedImageFormat(
Thanks! Quick question for my understanding as it's a bit subtle wading through the code: This method is indeed a drop-in replacement for the ResourceSizes one? From your comments on the bug I had thought that it was a drop-in replacement for the BufferFormat utils that Saif is replacing, and that the ResourceSizes methods had some differences? Perhaps those aren't relevant for RGB*8?
Right, SharedMemorySizeForSharedImageFormat() [aligns](https://source.chromium.org/chromium/chromium/src/+/main:components/viz/common/resources/shared_image_format_utils.cc;l=283-284;drc=ce651b75de646270fc28ce175bcc951842095309) rows to 4 bytes but ResourceSizes doesn't. For RGBA_8888 that doesn't matter as it's 4 bytes per pixel and thus already 4 byte aligned.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Thanks!
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Switch WaylandCanvasSurface size function
Use SharedMemorySizeForSharedImageFormat() to get rid of remaining uses
of viz::ResourceSizes. The new function enforces 4 bytes alignment but
RGBA_8888 is already 4 byte aligned.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |