• Vikas Soni's avatar
    Create SharedImageBackingFactoryAHB only when AHB is supported. · 00e8c194
    Vikas Soni authored
    Although the SharedImageBackingFactoryAHB do not perform any AHB
    related operations in its constructor, we still want its object to be
    created only when AHB is supported to make sure we are not unnecessarily
    creating the object and not using it.
    As an example for Android N, since AHB is not supported, this object
    will never be used but we were still creating this object. This resulted
    in crash on android N though actual reason of crash is still unknown.
    
    Bug: 1128900
    Change-Id: If1e9949c9d415bce0ed856f94c437802c4896ead
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2459347
    Commit-Queue: vikas soni <vikassoni@chromium.org>
    Reviewed-by: default avatarKhushal <khushalsagar@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#814958}
    00e8c194
shared_image_factory.cc 24.1 KB