• Ken Rockot's avatar
    Don't use SharedMemory[Handle] to hold a DXGI resource handle · 5eb3b9dd
    Ken Rockot authored
    Impending changes to Mojo IPC will require that handles serialized
    as shared memory handles are actually shared memory handles. DXGI
    resources are not, but are being transported using
    GpuMemoryBufferHandle's shared_memory field.
    
    This introduces a Windows-only GpuMemoryBufferHandle field for a
    generic HANDLE to be used for DXGI resources, as well as a corresponding
    mojom field for the same purpose.
    
    There should be no net effect on the behavior of the system wrt handle
    lifetime or usage.
    
    
    Bug: 826213
    Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2;luci.chromium.try:win_optional_gpu_tests_rel
    Change-Id: I5d510e0ebdb60d4872fc428a95ce681dd18369dc
    Reviewed-on: https://chromium-review.googlesource.com/1011600Reviewed-by: default avatarKenneth Russell <kbr@chromium.org>
    Reviewed-by: default avatarSunny Sachanandani <sunnyps@chromium.org>
    Reviewed-by: default avatarBill Orr <billorr@chromium.org>
    Reviewed-by: default avatarTom Sepez <tsepez@chromium.org>
    Reviewed-by: default avatarDavid Reveman <reveman@chromium.org>
    Commit-Queue: Ken Rockot <rockot@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#551231}
    5eb3b9dd
BUILD.gn 19.3 KB