diff options
author | Yuqian Li <liyuqian@google.com> | 2018-05-15 23:43:19 +0000 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-05-15 23:43:24 +0000 |
commit | 5b8b472b3373b48b33a5fbf593df521657f8e5db (patch) | |
tree | a48d14ada60735a95df25eede620634bf06e8488 | |
parent | b2e71274fe1f5a66c9c4befd2e86b6cf39c783b5 (diff) |
Revert "Check atlasPageCount before accessing the proxy array"
This reverts commit 072c69cad3b50ba3d04ba7a7d6c9dbec50c1cd4f.
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>
-rw-r--r-- | src/gpu/ops/GrAtlasTextOp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/ops/GrAtlasTextOp.cpp b/src/gpu/ops/GrAtlasTextOp.cpp index a314a05163..96c592d5b4 100644 --- a/src/gpu/ops/GrAtlasTextOp.cpp +++ b/src/gpu/ops/GrAtlasTextOp.cpp @@ -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; } |