• Madeleine Barowsky's avatar
    Replace flashing JPEG test with RGB/YUV tests for WebP and JPEG · 34a69293
    Madeleine Barowsky authored
    The current yuv_decoding JPEG decoding Telemetry story is
    misleading for two reasons: it does not decode to or render
    from YUV (see crbug.com/921875) and it uses canvas.toDataURL
    to create random test images each time, which means encoding
    duration is also measured. Furthermore, the test flashes
    rapidly and could potentially trigger photosensitive epilepsy.
    
    Because YUV decoding and rendering is in progress for WebP
    (crbug.com/900264), we would like holistic and consistent
    measurement of the performance between YUV and RGB decoding.
    The YUV decoding feature is being implemented for GPU
    rasterization first. Later, we will do the same for JPEG
    (crbug.com/919627).
    
    This CL replaces the existing story with four new ones:
     * WebP GPU rasterization that does not disable YUV
     * WebP GPU rasterization that disables YUV (hence is RGB)
     * JPEG GPU rasterization that does not disable YUV (is
    RGB for now)
     * JPEG GPU rasterization that disables YUV (hence is RGB)
    These ImageDecodingStory tests draw 10 pastel-colored squares
    from hard-coded base64 data and at a relatively slow rate.
    
    Bug: 944756
    Change-Id: Id46817eb300b3c6f3681ccf331ba23f67bbdfef6
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1536460Reviewed-by: default avatarCaleb Rouleau <crouleau@chromium.org>
    Reviewed-by: default avatarLeon Scroggins <scroggo@chromium.org>
    Reviewed-by: default avatarKhushal <khushalsagar@chromium.org>
    Commit-Queue: Madeleine Barowsky <mbarowsky@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#659026}
    34a69293
image_decoding_cases.py 1.32 KB