• Xianzhu Wang's avatar
    [CompositeAfterPaint] Fix cc::PictureLayer::GetPicture() · 5de5acf5
    Xianzhu Wang authored
    Previously it used RecordSource and RasterSource which did some extra
    work not needed and caused DCHECK failure in CompositeAfterPaint when one
    DisplayItemList was handled by RecordSource and RasterSource more than
    once. In CompositeAfterPaint,
    ContentLayerClient::PaintContentsToDisplayList() just returns the cached
    DisplayItemList.
    
    Simplify cc::PictureLayer::GetPicture() by directly calling
    DisplayItemList::Raster().
    
    Change-Id: I17cbf004371861ef901c95d21011f1bc9b07f880
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2142695Reviewed-by: default avatarPhilip Rogers <pdr@chromium.org>
    Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#758342}
    5de5acf5
composite-after-paint 6.5 KB