Fix debugger's SaveAs functionality

Without this patch the SaveAs functionality only copies the portion of the picture from the current command in the GUI.

Review URL: https://codereview.chromium.org/672453002
This commit is contained in:
robertphillips 2014-10-21 10:31:38 -07:00 committed by Commit bot
parent dd5a1e094c
commit b9750892dd

View File

@ -61,6 +61,8 @@ void SkDebugCanvas::addDrawCommand(SkDrawCommand* command) {
}
void SkDebugCanvas::draw(SkCanvas* canvas) {
fDrawNeedsReset = true;
if (!fCommandVector.isEmpty()) {
this->drawTo(canvas, fCommandVector.count() - 1);
}