Skip to content
Snippets Groups Projects
  1. Jan 16, 2020
    • Leon Scroggins III's avatar
      Implement native compress API · 9010e8ba
      Leon Scroggins III authored
      Bug: 135133301
      Test: Ifbcb41388a48afc64bb22623bb7e981b288b2457
      
      Refactor the bulk of Bitmap_compress into hwui/Bitmap::compress, so that
      it can be shared by the new API. Update its enum to match the proper
      style. Also make the enum a class so it does not need to have a special
      return value for a bad parameter, which is now handled by the caller.
      
      Add ABitmap_compress, which implements the new API by calling
      hwui/Bitmap::compress.
      
      Change-Id: Ia8ba4c17b517a05b664c6e317e235836473fd7f6
      9010e8ba
    • Leon Scroggins III's avatar
      Support more dataspaces in DataSpaceToColorSpace · 700629d8
      Leon Scroggins III authored
      Bug: 135133301
      Test: ?
      
      Create an SkColorSpace for HAL_DATASPACE_TRANSFER_ST2084 and
      HAL_DATASPACE_TRANSFER_SMPTE_170M. This allows converting
      ADATASPACE_BT709, ADATASPACE_BT2020, and ADATASPACE_BT709 into
      SkColorSpaces. In addition, treat HAL_DATASPACE_DCI_P3 (aka
      HAL_DATASPACE_DCI_P3) specially, because its gamut does not match
      SkNamedGamut::kSRGB.
      
      This will allow Ia8ba4c17b517a05b664c6e317e235836473fd7f6 to use
      DataSpaceToColorSpace, rather than its own, slightly different version.
      
      Change-Id: I24fffd79c2bf251c28c2d0b8c3d2889dbffa772d
      700629d8
  2. Jan 15, 2020
Loading