• danakj's avatar
    viz: Simplify ScopedRenderPassTexture interactions. · 66a41202
    danakj authored
    Pass in the ContextProvider instead of each capability individually. And in the
    DirectRenderer classes, the FrameBuffer hint is always used so stop making it
    conditional (this is a leftover from ResourceProvider code this was based on)
    and just pass mipmap as a bool so that new bitflags can't be added without
    child classes knowing about it. Last, pass RenderPassRequirements consistently
    to both methods that receive them, instead of unpacking it for one of them, so
    that the relationship is more clear in the APIs.
    
    R=piman@chromium.org
    
    Bug: 738190
    Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel
    Change-Id: Ie53c2041183207561efae7d10c0c32e42daf1bd2
    Reviewed-on: https://chromium-review.googlesource.com/843162
    Commit-Queue: danakj <danakj@chromium.org>
    Reviewed-by: default avatarAntoine Labour <piman@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#526059}
    66a41202
scoped_render_pass_texture.h 2.04 KB