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:
parent
dd5a1e094c
commit
b9750892dd
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user