• Peng Huang's avatar
    Add PaintOpBuffer::Deserialize() · ee0efa70
    Peng Huang authored
    This method is for deserializing paint ops from binary data, and append
    paint ops to the PaintOpBuffer. It can be used for reusing
    PaintOpBuffer to avoid re-allocating PaintOpBuffers.
    
    It will be useful for multithread chrome GPU experimental. It needs to
    deserialize paint ops from command buffer, and store it in shared image.
    This change allows reusing existing PaintOpBuffer.
    
    Bug: None
    Change-Id: I2f86b6c62f454495e591bbd841b8aa7156780e97
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1906938Reviewed-by: default avatarKhushal <khushalsagar@chromium.org>
    Commit-Queue: Peng Huang <penghuang@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#715042}
    ee0efa70
paint_op_buffer.h 43.4 KB