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

Issue 844493003: Remove incremental draw optimization from SkDebugCanvas (Closed)

Created:
5 years, 11 months ago by Kimmo Kinnunen
Modified:
5 years, 11 months ago
Reviewers:
robertphillips
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@debugcanvas-stateless-draw-02-debugger-rasterwidget-update-on-need
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Remove incremental draw optimization from SkDebugCanvas The SkDebugCanvas can be (or is currently) being used to draw to multiple different canvases. If this use-case is intended, then storing draw -related state in the canvas causes bugs. Remove incremental draw from SkDebugCanvas. It can only optimize the case where draw command index is advanced, no other changes are done and no visualization is used. This case is not that critical, as it happens only once per new frame at most. It causes bugs, because one SkDebugCanvas is used to draw to multiple canvases. Leave the draw to canvas in same state as it was passed in. This fixes the debugger bugs where: * Old, stale image would stay on the raster canvas when a new image is loaded. Also happened with resizes. * Proper image for overdraw filter would be visible only for the first frame Committed: https://skia.googlesource.com/skia/+/26a00de4f303fe74527f00b777a871843ae4437e

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : remove the comment too #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -71 lines) Patch
M debugger/SkDebugger.cpp View 1 chunk +0 lines, -8 lines 0 comments Download
M src/utils/debugger/SkDebugCanvas.h View 1 2 3 4 chunks +0 lines, -14 lines 0 comments Download
M src/utils/debugger/SkDebugCanvas.cpp View 1 2 3 6 chunks +12 lines, -30 lines 0 comments Download
M src/utils/debugger/SkDrawCommand.h View 1 2 3 4 chunks +0 lines, -7 lines 0 comments Download
M src/utils/debugger/SkDrawCommand.cpp View 3 chunks +0 lines, -12 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
Kimmo Kinnunen
This is the bug I set out to fix after the resize bug
5 years, 11 months ago (2015-01-07 12:08:39 UTC) #2
robertphillips
lgtm. Note that the only-perform-the-next-draw optimization would/should've fired all the time when stepping one command ...
5 years, 11 months ago (2015-01-13 14:38:50 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/844493003/40001
5 years, 11 months ago (2015-01-14 06:56:13 UTC) #5
commit-bot: I haz the power
Failed to apply patch for src/utils/debugger/SkDrawCommand.h: While running git apply --index -3 -p1; error: patch ...
5 years, 11 months ago (2015-01-14 06:56:16 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/844493003/60001
5 years, 11 months ago (2015-01-14 06:59:13 UTC) #9
commit-bot: I haz the power
5 years, 11 months ago (2015-01-14 07:09:22 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://skia.googlesource.com/skia/+/26a00de4f303fe74527f00b777a871843ae4437e

Powered by Google App Engine
This is Rietveld 408576698