• Yi Gu's avatar
    Only test the renderer process when recording GPU memory cost · 6a75e23e
    Yi Gu authored
    In non-single-process tests, there's a good chance that two unit tests
    running in the same process need to set different client names.
    Currently whichever comes second cannot set the client name correctly.
    
    However, there is no ideal way to test both processes. Resetting the
    client names in the test doesn't work because the histogram has static
    client name which invalidates the name resetting. To fix, it requires
    confusing work-around in the code therefore we prefer to test only one
    process after all the logic is almost identical.
    
    Bug: 749366
    Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel
    Change-Id: Iebd312e1138292754f4aa2aa1875b13365e5602f
    Reviewed-on: https://chromium-review.googlesource.com/590172Reviewed-by: default avatarVladimir Levin <vmpstr@chromium.org>
    Commit-Queue: Yi Gu <yigu@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#490778}
    6a75e23e
layer_tree_host_impl_unittest.cc 525 KB