OSDN Git Service

AI 144443: Change how skia handles gradient stops that are missing either pos=0 or...
authorMike Reed <>
Fri, 3 Apr 2009 13:34:07 +0000 (06:34 -0700)
committerThe Android Open Source Project <initial-contribution@android.com>
Fri, 3 Apr 2009 13:34:07 +0000 (06:34 -0700)
commit8a879ade4178f72acdea7654ec3ce57ee6c4d9fb
treed8813883e8683aa275343c2864bc42833f4156e9
parent861f5d0e6e5b1fb34561cea7ba99ff55f73e089b
AI 144443: Change how skia handles gradient stops that are missing either pos=0 or pos=1. Instead of ignoring the first and last pos, and assuming they were 0,1, now we insert in the missing values. This matches webkit's expectations, and seems fine for skia clients as well.
  On the webkit side, call Gradient::getColor() before we sniff the stops-array. This has the side-effect of sorting the stops, which we need for skia.
  BUG=1688373

Automated import of CL 144443
WebCore/platform/graphics/android/GradientAndroid.cpp