aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/debugger/SkDebugCanvas.cpp5
-rw-r--r--tools/skhello.cpp3
2 files changed, 2 insertions, 6 deletions
diff --git a/tools/debugger/SkDebugCanvas.cpp b/tools/debugger/SkDebugCanvas.cpp
index 04e8341f87..c9d18eeca4 100644
--- a/tools/debugger/SkDebugCanvas.cpp
+++ b/tools/debugger/SkDebugCanvas.cpp
@@ -328,10 +328,7 @@ void SkDebugCanvas::drawTo(SkCanvas* originalCanvas, int index, int m) {
this->lastClipStackData(devPath);
}
fMatrix = filterCanvas.getTotalMatrix();
- if (!filterCanvas.getClipDeviceBounds(&fClip)) {
- fClip.setEmpty();
- }
-
+ fClip = filterCanvas.getDeviceClipBounds();
filterCanvas.restoreToCount(saveCount);
#if SK_SUPPORT_GPU
diff --git a/tools/skhello.cpp b/tools/skhello.cpp
index d1f8cb8192..0411b398b8 100644
--- a/tools/skhello.cpp
+++ b/tools/skhello.cpp
@@ -19,8 +19,7 @@ DEFINE_string2(outFile, o, "skhello", "The filename to write the image.");
DEFINE_string2(text, t, "Hello", "The string to write.");
static void doDraw(SkCanvas* canvas, const SkPaint& paint, const char text[]) {
- SkRect bounds;
- canvas->getClipBounds(&bounds);
+ SkRect bounds = canvas->getLocalClipBounds();
canvas->drawColor(SK_ColorWHITE);
canvas->drawText(text, strlen(text),