Fix for texture allocation failure in 'preAbandonGpuContext' mode

Review URL: https://codereview.chromium.org/1118723003
This commit is contained in:
robertphillips 2015-04-30 08:55:06 -07:00 committed by Commit bot
parent dc3088570f
commit f83be823e4

View File

@ -1733,6 +1733,9 @@ bool SkGpuDevice::filterImage(const SkImageFilter* filter, const SkBitmap& src,
// We assume here that the filter will not attempt to tile the src. Otherwise, this cache lookup
// must be pushed upstack.
AutoBitmapTexture abt(fContext, src, NULL, &texture);
if (!texture) {
return false;
}
return this->filterTexture(fContext, texture, src.width(), src.height(),
filter, ctx, result, offset);