This is useful to allow low-latency ChromeOS UI.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/d492a16c9bbbe163d48cb0b2976304787f21c5d1 commit d492a16c9bbbe163d48cb0b2976304787f21c5d1 Author: reveman <reveman@chromium.org> Date: Tue Feb 28 02:52:31 2017 ui: Add gfx::BufferUsage::SCANOUT_CPU_READ_WRITE. This adds a buffer usage type that can be used to allocate buffers for scanout and CPU access without turning on support for native GMBs in general. Low-latency laser pointer depends on this. BUG= 696384 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2717963002 Cr-Commit-Position: refs/heads/master@{#453477} [modify] https://crrev.com/d492a16c9bbbe163d48cb0b2976304787f21c5d1/content/browser/gpu/gpu_internals_ui.cc [modify] https://crrev.com/d492a16c9bbbe163d48cb0b2976304787f21c5d1/gpu/ipc/client/gpu_memory_buffer_impl_io_surface.cc [modify] https://crrev.com/d492a16c9bbbe163d48cb0b2976304787f21c5d1/gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.cc [modify] https://crrev.com/d492a16c9bbbe163d48cb0b2976304787f21c5d1/gpu/ipc/client/gpu_memory_buffer_impl_test_template.h [modify] https://crrev.com/d492a16c9bbbe163d48cb0b2976304787f21c5d1/gpu/ipc/common/gpu_memory_buffer_support.cc [modify] https://crrev.com/d492a16c9bbbe163d48cb0b2976304787f21c5d1/gpu/ipc/host/gpu_memory_buffer_support.cc [modify] https://crrev.com/d492a16c9bbbe163d48cb0b2976304787f21c5d1/gpu/ipc/service/gpu_memory_buffer_factory_test_template.h [modify] https://crrev.com/d492a16c9bbbe163d48cb0b2976304787f21c5d1/ui/gfx/buffer_types.h [modify] https://crrev.com/d492a16c9bbbe163d48cb0b2976304787f21c5d1/ui/gfx/mojo/buffer_types.mojom [modify] https://crrev.com/d492a16c9bbbe163d48cb0b2976304787f21c5d1/ui/gfx/mojo/buffer_types_struct_traits.h [modify] https://crrev.com/d492a16c9bbbe163d48cb0b2976304787f21c5d1/ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc [modify] https://crrev.com/d492a16c9bbbe163d48cb0b2976304787f21c5d1/ui/ozone/platform/drm/gpu/drm_thread.cc
Comment 1 by reve...@chromium.org
, Feb 27 2017