• jei.mayol's avatar
    Fix GIF transparency. · 63af1441
    jei.mayol authored
    The GIF decoder, in the onDecode() function, tries to obtain the
    transparency info from the temporary SavedImage object, temp_save,
    but the decoder had been changed to save extension block data to
    the GifFileType object instead. As a result, find_transpIndex() can't
    find the correct transaprency index and returns -1.
    
    This had been reported in Android 4.4. AOSP pulled skia changes
    related to giflib 5.x changes after Android 4.3, which is why
    the problem is not reproducible in versions before KitKat.
    
    AOSP Issue 62016:
    https://code.google.com/p/android/issues/detail?id=62016
    
    BUG=skia:
    
    Review URL: https://codereview.chromium.org/429053004
    63af1441
AUTHORS 1.13 KB