diff options
author | 2016-01-20 13:54:28 -0800 | |
---|---|---|
committer | 2016-01-20 13:54:28 -0800 | |
commit | 269a82f2883cbd108d74f69bfa99cc2fdf8fe896 (patch) | |
tree | dae77329d11306e36a68b8f7967b7986a9899242 /src/gpu/batches/GrAtlasTextBatch.cpp | |
parent | fac3d1b72547aa23842c16e6df27ea4c2b54867a (diff) |
Revert of Fix GrAtlasTextBlob bounds management (patchset #8 id:140001 of https://codereview.chromium.org/1605013002/ )
Reason for revert:
seems to break upright matrix
Original issue's description:
> Fix GrAtlasTextBlob bounds management
>
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1605013002
>
> Committed: https://skia.googlesource.com/skia/+/ae473fdfc3db2d9dd82b05b2568767d6d4038fcd
TBR=bsalomon@google.com,jvanverth@google.com,joshualitt@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Review URL: https://codereview.chromium.org/1615473002
Diffstat (limited to 'src/gpu/batches/GrAtlasTextBatch.cpp')
-rw-r--r-- | src/gpu/batches/GrAtlasTextBatch.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/gpu/batches/GrAtlasTextBatch.cpp b/src/gpu/batches/GrAtlasTextBatch.cpp index b2251a42a8..ce6b2eae2b 100644 --- a/src/gpu/batches/GrAtlasTextBatch.cpp +++ b/src/gpu/batches/GrAtlasTextBatch.cpp @@ -413,19 +413,6 @@ void GrAtlasTextBatch::onPrepareDraws(Target* target) const { size_t byteCount = info.byteCount(); memcpy(currVertex, blob->fVertices + info.vertexStartIndex(), byteCount); -#ifdef SK_DEBUG - // bounds sanity check - SkRect rect; - rect.setLargestInverted(); - SkPoint* vertex = (SkPoint*) ((char*)blob->fVertices + info.vertexStartIndex()); - rect.growToInclude(vertex, vertexStride, kVerticesPerGlyph * info.glyphCount()); - - if (this->usesDistanceFields()) { - fBatch.fViewMatrix.mapRect(&rect); - } - SkASSERT(fBounds.contains(rect)); -#endif - currVertex += byteCount; } |