Revert "Check atlasPageCount before accessing the proxy array"

This reverts commit 072c69cad3.

Reason for revert: 3000+ seemingly bad gold differences and flutter breakage

Original change's description:
> Check atlasPageCount before accessing the proxy array
> 
> Bug: skia:
> Change-Id: Ib4bca46ea105285f4edea05d78ea4d9ea047d0df
> Reviewed-on: https://skia-review.googlesource.com/128295
> Reviewed-by: Jim Van Verth <jvanverth@google.com>
> Commit-Queue: Chris Dalton <csmartdalton@google.com>

TBR=jvanverth@google.com,csmartdalton@google.com

Change-Id: Ia568b3884101aeda46e94ef8c6144da3479bc50d
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: skia:
Reviewed-on: https://skia-review.googlesource.com/128420
Reviewed-by: Yuqian Li <liyuqian@google.com>
Commit-Queue: Yuqian Li <liyuqian@google.com>
This commit is contained in:
Yuqian Li 2018-05-15 23:43:19 +00:00 committed by Skia Commit-Bot
parent b2e71274fe
commit 5b8b472b33

View File

@ -230,7 +230,7 @@ void GrAtlasTextOp::onPrepareDraws(Target* target) {
unsigned int atlasPageCount;
const sk_sp<GrTextureProxy>* proxies = atlasManager->getProxies(maskFormat, &atlasPageCount);
if (!atlasPageCount || !proxies[0]) {
if (!proxies[0]) {
SkDebugf("Could not allocate backing texture for atlas\n");
return;
}