diff options
author | 2013-09-18 20:15:12 +0000 | |
---|---|---|
committer | 2013-09-18 20:15:12 +0000 | |
commit | 07f6cf372dc003694c79cfb313923fef9eaf8dc8 (patch) | |
tree | 52149746fb0fe2f0a66265ce5c66f227c28d4ac2 /src/utils | |
parent | 44d3dafc87796396850396ef607d7e8fa53e13eb (diff) |
fix printing of error messages in canvasstatetest.
R=scroggo@google.com, caryclark@google.com
Author: djsollen@google.com
Review URL: https://chromiumcodereview.appspot.com/23477067
git-svn-id: http://skia.googlecode.com/svn/trunk@11363 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/SkCanvasStateUtils.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/utils/SkCanvasStateUtils.cpp b/src/utils/SkCanvasStateUtils.cpp index cd79a44f50..0cc42c5c1c 100644 --- a/src/utils/SkCanvasStateUtils.cpp +++ b/src/utils/SkCanvasStateUtils.cpp @@ -10,6 +10,7 @@ #include "SkBitmapDevice.h" #include "SkCanvas.h" #include "SkCanvasStack.h" +#include "SkErrorInternals.h" #include "SkWriter32.h" #define CANVAS_STATE_VERSION 1 @@ -183,7 +184,8 @@ SkCanvasState* SkCanvasStateUtils::CaptureCanvasState(SkCanvas* canvas) { ClipValidator validator; canvas->replayClips(&validator); if (validator.failed()) { - SkDEBUGF(("CaptureCanvasState does not support canvases with antialiased clips.\n")); + SkErrorInternals::SetError(kInvalidOperation_SkError, + "CaptureCanvasState does not support canvases with antialiased clips.\n"); return NULL; } @@ -244,7 +246,7 @@ SkCanvasState* SkCanvasStateUtils::CaptureCanvasState(SkCanvas* canvas) { // for now, just ignore any client supplied DrawFilter. if (canvas->getDrawFilter()) { - SkDEBUGF(("CaptureCanvasState will ignore the canvases draw filter.\n")); +// SkDEBUGF(("CaptureCanvasState will ignore the canvases draw filter.\n")); } return canvasState.detach(); |