Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: debugger/SkDebugger.cpp

Issue 844493003: Remove incremental draw optimization from SkDebugCanvas (Closed) Base URL: https://skia.googlesource.com/skia.git@debugcanvas-stateless-draw-02-debugger-rasterwidget-update-on-need
Patch Set: rebase Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/utils/debugger/SkDebugCanvas.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: debugger/SkDebugger.cpp
diff --git a/debugger/SkDebugger.cpp b/debugger/SkDebugger.cpp
index 43823c12f06eab1ebc595499f26fd35bdd49f951..fc61ddade39a2fa72becd5dd9fe27c4e36479c7a 100644
--- a/debugger/SkDebugger.cpp
+++ b/debugger/SkDebugger.cpp
@@ -49,19 +49,11 @@ SkPicture* SkDebugger::copyPicture() {
fDebugCanvas->setOverdrawViz(false);
bool pathOps = fDebugCanvas->getAllowSimplifyClip();
fDebugCanvas->setAllowSimplifyClip(false);
- int saveCount = fDebugCanvas->getOutstandingSaveCount();
- fDebugCanvas->setOutstandingSaveCount(0);
fDebugCanvas->draw(canvas);
- int temp = fDebugCanvas->getOutstandingSaveCount();
- for (int i = 0; i < temp; ++i) {
- canvas->restore();
- }
-
fDebugCanvas->setMegaVizMode(vizMode);
fDebugCanvas->setOverdrawViz(overDraw);
- fDebugCanvas->setOutstandingSaveCount(saveCount);
fDebugCanvas->setAllowSimplifyClip(pathOps);
return recorder.endRecording();
« no previous file with comments | « no previous file | src/utils/debugger/SkDebugCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698