• danakj@chromium.org's avatar
    cc: Be robust against invalid RenderPassDrawQuads. · ccc8f0fa
    danakj@chromium.org authored
    When the LayerTreeHostImpl drops RenderPasses from its output, it does
    not also drop the RenderPassDrawQuads that point to them. The direct
    renderers ignore these quads, so this has never been a problem. However
    the DelegatedRendererLayerImpl was not able to deal with this correctly
    and would crash. More problematic is that a compromised renderer could
    send invalid RenderPassDrawQuads, which the DelegatedRendererLayerImpl
    must be able to handle gracefully.
    
    So, for both cases, we here make the DelegatedRendererLayerImpl ignore
    invalid RenderPassDrawQuads, and just drop the from its own output.
    
    Tests:
    DelegatedRendererLayerImplTest.InvalidRenderPassDrawQuad
    
    R=piman
    BUG=283630
    
    Review URL: https://chromiumcodereview.appspot.com/23891003
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221493 0039d316-1c4b-4281-b951-d872f2087c98
    ccc8f0fa
delegated_renderer_layer_impl.h 3.57 KB