add index in getPixels for F16

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1888883003

Review URL: https://codereview.chromium.org/1888883003
This commit is contained in:
reed 2016-04-14 13:34:45 -07:00 committed by Commit bot
parent 6b08652abf
commit a9eb626104

View File

@ -777,7 +777,7 @@ public:
}
Sk4f getPixelAt(const void* vsrc, int index) {
const uint64_t* src = static_cast<const uint64_t*>(vsrc);
const uint64_t* src = static_cast<const uint64_t*>(vsrc) + index;
return SkHalfToFloat_01(*src);
}