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:
parent
6b08652abf
commit
a9eb626104
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user