diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkCanvas.cpp | 2 | ||||
-rw-r--r-- | src/utils/debugger/SkDebugCanvas.h | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp index 96d16fcdb9..dfc3f93789 100644 --- a/src/core/SkCanvas.cpp +++ b/src/core/SkCanvas.cpp @@ -1418,7 +1418,7 @@ bool SkCanvas::updateClipConservativelyUsingBounds(const SkRect& bounds, SkRegio this->SkCanvas::save(SkCanvas::kMatrix_SaveFlag); // set the clip in device space this->SkCanvas::setMatrix(SkMatrix::I()); - this->SkCanvas::onClipRect(deviceBounds, SkRegion::kReplace_Op, + this->SkCanvas::onClipRect(deviceBounds, SkRegion::kReplace_Op, kHard_ClipEdgeStyle); this->SkCanvas::restore(); //pop the matrix, but keep the clip break; diff --git a/src/utils/debugger/SkDebugCanvas.h b/src/utils/debugger/SkDebugCanvas.h index ebce6c9131..edf7a2295d 100644 --- a/src/utils/debugger/SkDebugCanvas.h +++ b/src/utils/debugger/SkDebugCanvas.h @@ -224,13 +224,13 @@ public: static const int kVizImageWidth = 256; virtual bool isClipEmpty() const SK_OVERRIDE { return false; } - virtual ClipType getClipType() const SK_OVERRIDE { - return kRect_ClipType; + virtual ClipType getClipType() const SK_OVERRIDE { + return kRect_ClipType; } virtual bool getClipBounds(SkRect* bounds) const SK_OVERRIDE { if (NULL != bounds) { - bounds->setXYWH(0, 0, - SkIntToScalar(this->imageInfo().fWidth), + bounds->setXYWH(0, 0, + SkIntToScalar(this->imageInfo().fWidth), SkIntToScalar(this->imageInfo().fHeight)); } return true; |