• Miguel Casas's avatar
    Revert "vaapi: split VaapiDrmPicture into common and ozone/egl parts" · 89caee51
    Miguel Casas authored
    This reverts commit e330bcb6.
    
    Reason for revert: typo forced using EGL VaapiPictures, bad!
    
    Original change's description:
    > vaapi: split VaapiDrmPicture into common and ozone/egl parts
    > 
    > This CL splits VaapiDrmPicture into a common part named
    > VaapiPictureNativePixmap, and two subclasses, namely:
    > - VaapiPictureNativePixmapOzone, containing the current
    >  #if defined(USE_OZONE) sandwiched parts, and
    > - VaapiPixtureNativePixmapEgl with the other parts.
    > 
    > So the class tree should look like:
    > 
    >   +-----------------+
    >   |   VaapiPicture  |
    >   +-----------------+
    >    ^               ^
    >    |               +----+
    >   +--------------+    +------------------+
    >   | VaapiPicture |    | VaapiPictureTFP  |
    >   | NativePixmap |    | (existing on ToT)|
    >   +--------------+    +------------------+
    >    ^
    >    +---------------+
    >    |               |
    >  +-------+    +-------+
    >  | VPNP  |    | VPNP  |
    >  | Ozone |    | Egl   |
    >  +-------+    +-------+
    > 
    > The point here is to reduce the amount of if-defs to one single
    > point, the VaapiPictureFactory.
    > 
    > BUILD.gn is changed to reflect that VaapiDrmPicture is
    > egl-specific (see bug, |use_egl| definition in [1]), while
    > VaapiDrmPictureOzone is |use_ozone| [2] specific. Note
    > that |use_egl| can coexist with |use_x11| [3].
    > 
    > This CL just moves code around, no new code introduced in
    > either vaapi_picture*.cc.
    > 
    > [1] https://cs.chromium.org/chromium/src/ui/gl/features.gni?q=ui/gl/features.gni&sq=package:chromium&dr&l=16
    > [2] https://cs.chromium.org/chromium/src/build/config/ui.gni?q=build/config/ui.gni&sq=package:chromium&dr&l=26
    > [3] https://cs.chromium.org/chromium/src/build/config/ui.gni?type=cs&sq=package:chromium&l=47
    > 
    > Bug: 785201
    > Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
    > Change-Id: I67f6f4d994322ef7f23a8ed255405963a4be0152
    > Reviewed-on: https://chromium-review.googlesource.com/951928
    > Reviewed-by: Julien Isorce <julien.isorce@chromium.org>
    > Commit-Queue: Miguel Casas <mcasas@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#542107}
    
    TBR=posciak@chromium.org,kcwu@chromium.org,mcasas@chromium.org,chcunningham@chromium.org,acourbot@chromium.org,julien.isorce@chromium.org
    
    Change-Id: If5103a891bcf6f758feea44cc514503457f00fbc
    No-Presubmit: true
    No-Tree-Checks: true
    No-Try: true
    Bug: 785201
    Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
    Reviewed-on: https://chromium-review.googlesource.com/957322Reviewed-by: default avatarMiguel Casas <mcasas@chromium.org>
    Commit-Queue: Miguel Casas <mcasas@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#542148}
    89caee51
BUILD.gn 3.17 KB