• dcastagna's avatar
    Make 'kVideoImageTextureTarget' a list of texture targets. · 5077d6dc
    dcastagna authored
    Pass to the renderer a list of texture targets, one per GpuMemoryBuffer
    format, via a command line argument.
    In this way GMBVFP can pick whatever GMB format it needs to use and bind
    to the correct texture target.
    This is similar to what we do for content (kContentImageTextureTarget).
    
    kContentImageTextureTarget can't be used since the buffer usage could
    differ from the buffer usage in GMBVFP.
    
    Once all GMB formats supports persistent usage and we can consolidate
    GPU_READ_CPU_READ_WRITE_PERSISTENT and GPU_READ_CPU_READ_WRITE this
    code can go away and we can use just one command line switch.
    
    BUG=524582
    
    Review URL: https://codereview.chromium.org/1605423002
    
    Cr-Commit-Position: refs/heads/master@{#371644}
    5077d6dc
render_thread_impl.cc 75.2 KB