• Fady Samuel's avatar
    Pass LocalSurfaceId by const ref · e10d9a58
    Fady Samuel authored
    RenderWidgetHostViewBase::GetLocalSurfaceId passed the viz::LocalSurfaceId
    by value.
    
    LocalSurfaceId is large and so copying it around is expensive.
    This CL returns a const ref of LocalSurfaceId instead to reduce copying.
    
    Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel
    Change-Id: Ic775202ef5572676e056bd41419edbaefb7e44da
    
    Bug: 672962
    Change-Id: Ic775202ef5572676e056bd41419edbaefb7e44da
    Reviewed-on: https://chromium-review.googlesource.com/1141990Reviewed-by: default avatarAntoine Labour <piman@chromium.org>
    Commit-Queue: Fady Samuel <fsamuel@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#576281}
    e10d9a58
test_render_view_host.h 12.7 KB