fail skcms_Parse() for useless profiles

If we don't have an A2B or TRC+XYZ, we can't do anything with the
profile.  We'll still skcms_Parse() it out, but return false.

Before this CL, we parsed this as

                    Size : 0x0000020C : 524
        Data color space : 0x52474220 : 'RGB '
                     PCS : 0x58595A20 : 'XYZ '
               Tag count : 0x0000000A : 10

     Tag    : Type   : Size   : Offset
     ------ : ------ : ------ : --------
     'desc' : 'de{c' :     94 : 252
     'cprt' : 'text' :     11 : 348
     'wtpt' : 'Z' :     20 : 360
     'bkpt' : 'XYZ ' :     20 : 380
     'rXYZ' : 'XYZ ' :     20 : 400
     'gXYZ' : 'XYZ ' :     20 : 420
     'bXYZ' : 'XYZ ' :     20 : 440
     'rT' : 'curv' :     64 : 460
     'gTRC' : '' :     64 : 456
     'bTRC' : 'curv' :     64 : 460

    Best : 2.4, 0.947867, 0.0521327, 0.0773994, 0.04045, 0, 0 (D-gap: -1.28057e-08)
     ~13 : 0.305657x^3 + 0.681706x^2 + 0.0126377x (Max error: 0.00166378)
     XYZ : | 0.436065674 0.385147095 0.143066406 |
           | 0.222488403 0.716873169 0.060607910 |
           | 0.013916016 0.097076416 0.714096069 |
    We can parse this profile, but not transform it XYZD50!

Bug: chromium:835666

Change-Id: I70d23108c38dcf2c617a5062a4d2b3a712587548
Reviewed-on: https://skia-review.googlesource.com/122951
Auto-Submit: Mike Klein <mtklein@chromium.org>
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
4 files changed