• Peng Huang's avatar
    SkiaRenderer: support render pass overlay on macOS · cb024857
    Peng Huang authored
    This CL implements render pass overlay on macOS. With this
    implementation, SkiaRenderer draws render passes with filters with a
    DDL recorder canvas, and then stores DDL and related information in
    the CALayerOverlay. The SkiaOutputSurfaceImplOnGpu will create overlay
    shared images backing base on the DDL, and then replays DDL against the
    backing, and then the backings will be presented as overlays.
    
    However this CL doesn't recycle overlay shared images. It always creates
    new shared images for each render pass overlay. Shared image backing
    recycling will be implemented in follow-up CLs.
    
    Since recycling is not implemented, so the the render pass overlay is
    not enabled in this CL.
    
    Bug: 1100728
    Change-Id: I8389393a790b9e0fdc0dda69c60afd2566a68dd9
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2388885
    Commit-Queue: Peng Huang <penghuang@chromium.org>
    Reviewed-by: default avatarccameron <ccameron@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#804832}
    cb024857
ca_layer_overlay.h 4.34 KB