• Jennifer Apacible's avatar
    [cc::SurfaceLayer] Allow cc::SurfaceLayer to stretch content via ui::Layer. · ea38ede3
    Jennifer Apacible authored
    ui::Layer has a cc::SurfaceLayer and can set its primary surface. This
    change allows ui::Layer to also set whether or not cc::SurfaceLayer
    should stretch its content to fill the surface bounds, which will either
    stretch or shrink to fit the surface.
    
    This change is driven by the intent for Picture-in-Picture to be able
    to scale the video (contents) to fit into the PiP window bounds.
    Since the PiP surface embedder, or OverlaySurfaceEmbedder, utilizes a
    ui::Layer, this change would allow the ability to customize the
    cc::SurfaceLayer be exposed. Further work for the PiP sizing will be
    done, including maintaining the aspect ratio.
    
    BUG: 819414 726621
    Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel
    Change-Id: I3bdbf54635702414a4007912271118a57733ad05
    Reviewed-on: https://chromium-review.googlesource.com/952476
    Commit-Queue: apacible <apacible@chromium.org>
    Reviewed-by: default avatardanakj <danakj@chromium.org>
    Reviewed-by: default avatarSadrul Chowdhury <sadrul@chromium.org>
    Reviewed-by: default avatarFady Samuel <fsamuel@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#543289}
    ea38ede3
window_port_mus.cc 24.9 KB