• Christopher Grant's avatar
    VR: Properly adjust texture size for non-multiline text · 96ee345c
    Christopher Grant authored
    This change sees single-line text rendering properly update the vertical
    dimension of the underlying texture.
    
    In addition, the recently-added text unittest is reworked to allow more
    thorough and easy testing, by separating text layout from rendering and
    canvas, and also exposing the internal text layout to tests.
    
    BUG=
    R=bshe
    
    Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;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
    Change-Id: Ib0ec5b678adf2727d58543e281685ce49ae691af
    Reviewed-on: https://chromium-review.googlesource.com/801955Reviewed-by: default avatarBiao She <bshe@chromium.org>
    Commit-Queue: Christopher Grant <cjgrant@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#521095}
    96ee345c
text_texture.cc 2.31 KB