Return after callback on failure in GrRenderTargetContext::asyncReadPixels
Bug: chromium:1048251 Change-Id: I9c18e55fd791adbf446aa776de297b857af22b64 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/269237 Commit-Queue: Brian Osman <brianosman@google.com> Auto-Submit: Brian Salomon <bsalomon@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
This commit is contained in:
parent
121750c2ef
commit
4bb5026301
@ -1877,6 +1877,7 @@ void GrRenderTargetContext::asyncReadPixels(const SkIRect& rect, SkColorType col
|
||||
|
||||
if (!this->readPixels(ii, pm.writable_addr(), pm.rowBytes(), {rect.fLeft, rect.fTop})) {
|
||||
callback(context, nullptr);
|
||||
return;
|
||||
}
|
||||
callback(context, std::move(result));
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user