aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-01-02 10:54:26 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-01-02 10:54:26 -0800
commit787bb480f6b615a4a4c7b65955452575a51b1587 (patch)
treefce64a54e326e7c3e88e5e40e419a0f6e4858342 /src
parent5caff917f5f217e3070762847e6934f714196afb (diff)
Fix for chrome fuzzer
TBR= BUG=skia: Review URL: https://codereview.chromium.org/801493003
Diffstat (limited to 'src')
-rwxr-xr-xsrc/gpu/GrBitmapTextContext.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gpu/GrBitmapTextContext.cpp b/src/gpu/GrBitmapTextContext.cpp
index fdf96002bd..2df3a710d2 100755
--- a/src/gpu/GrBitmapTextContext.cpp
+++ b/src/gpu/GrBitmapTextContext.cpp
@@ -157,7 +157,8 @@ void GrBitmapTextContext::onDrawText(const GrPaint& paint, const SkPaint& skPain
// if we have RGB, then we won't have any SkShaders so no need to use a localmatrix, but for
// performance reasons we just invert here instead
if (!viewMatrix.invert(&fLocalMatrix)) {
- SkDebugf("Cannot invert viewmatrix\n");
+ SkDebugf("Cannot invert viewmatrix\n");
+ return;
}
while (text < stop) {
@@ -205,7 +206,8 @@ void GrBitmapTextContext::onDrawPosText(const GrPaint& paint, const SkPaint& skP
// if we have RGB, then we won't have any SkShaders so no need to use a localmatrix, but for
// performance reasons we just invert here instead
if (!viewMatrix.invert(&fLocalMatrix)) {
- SkDebugf("Cannot invert viewmatrix\n");
+ SkDebugf("Cannot invert viewmatrix\n");
+ return;
}
int numGlyphs = fSkPaint.textToGlyphs(text, byteLength, NULL);