diff options
Diffstat (limited to 'debugger')
-rw-r--r-- | debugger/SkDebugger.cpp | 2 | ||||
-rw-r--r-- | debugger/SkDebugger.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/debugger/SkDebugger.cpp b/debugger/SkDebugger.cpp index 197a27ff8a..77161126fa 100644 --- a/debugger/SkDebugger.cpp +++ b/debugger/SkDebugger.cpp @@ -33,7 +33,7 @@ sk_sp<SkPicture> SkDebugger::copyPicture() { // We can't just call clone here since we want to removed the "deleted" // commands. Playing back will strip those out. SkPictureRecorder recorder; - SkCanvas* canvas = recorder.beginRecording(this->pictureCull().width(), + SkCanvas* canvas = recorder.beginRecording(this->pictureCull().width(), this->pictureCull().height()); bool vizMode = fDebugCanvas->getMegaVizMode(); diff --git a/debugger/SkDebugger.h b/debugger/SkDebugger.h index 7e58047942..50ab18168d 100644 --- a/debugger/SkDebugger.h +++ b/debugger/SkDebugger.h @@ -85,7 +85,7 @@ public: return fDebugCanvas->getCurrentClip(); } - SkRect pictureCull() const { + SkRect pictureCull() const { return fPicture ? fPicture->cullRect() : SkRect::MakeEmpty(); } |