[CompositeAfterPaint] Fix cc::PictureLayer::GetPicture()
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:Philip Rogers <pdr@chromium.org> Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#758342}
Showing
Please register or sign in to comment