Closed Bug 1223740 Opened 5 years ago Closed 4 years ago
To S16: failed assertion "(int16 _t)x == x"
gfx/skia/skia/src/core/SkDebug.cpp:25: failed assertion "(int16_t)x == x" (I can't reproduce bug 906052 or bug 747302 on this computer.)
Skia is assuming without checking that surface sizes can fit into a 16 bit signed integer. We're allocating really large temporary draw targets for rendering the shadow which overflow this. This triggers the assertion. This patch makes sure we don't create anything so large as to do that.
Attachment #8689641 - Flags: review?(bas)
Attachment #8689641 - Flags: review?(bas) → review+
You need to log in before you can comment on or make changes to this bug.