• Sunny Sachanandani's avatar
    Use GL_COMMANDS_ISSUED_CHROMIUM query for shared memory GpuMemoryBuffers · 370c8bc2
    Sunny Sachanandani authored
    GL_COMMANDS_ISSUED_CHROMIUM is sufficient for shared memory
    GpuMemoryBuffers because they're uploaded using glTexImage2D (see
    GLImageMemory::CopyTexImage).
    
    This should reduce the number of idle wakeups in the GPU process, and
    reduce the CPU time spent on such queries which is quite high on
    Windows.
    
    Bug: 830084, 622491
    Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel
    Change-Id: I8111b3d7f12abbf900383d45e2a74394848e83fd
    Reviewed-on: https://chromium-review.googlesource.com/1189126
    Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org>
    Reviewed-by: default avatarEric Karl <ericrk@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#587695}
    370c8bc2
one_copy_raster_buffer_provider.cc 21.1 KB