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

Issue 14103024: Do not call preDraw for NOOP. (Closed)

Created:
7 years, 8 months ago by scroggo
Modified:
7 years, 7 months ago
Reviewers:
robertphillips
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Do not call preDraw for NOOP. Fixes a bug where playing back SKPs generated by chrome using --enable-deferred-image-decoding hit an assert in SkDebuggerGUI. SkOffsetPicturePlayback adds to an array in preDraw, and expects the length of that array to be the same as the list of commands in its SkDebugCanvas. In the asserting case, preDraw was called but then SkPicturePlayback skipped drawing to the SkDebugCanvas, so the command was not propagated to the SkDebugCanvas, and the counts did not match. Closing in favor of https://codereview.chromium.org/15746003/

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -5 lines) Patch
M src/core/SkPicturePlayback.cpp View 2 chunks +5 lines, -5 lines 2 comments Download

Messages

Total messages: 4 (0 generated)
scroggo
Robert, It seems odd to me that Chrome is generating a NOOP (only with --enable-deferred-image-decoding; ...
7 years, 8 months ago (2013-04-15 23:08:04 UTC) #1
scroggo
On 2013/04/15 23:08:04, scroggo wrote: > Robert, > > It seems odd to me that ...
7 years, 8 months ago (2013-04-16 13:29:19 UTC) #2
scroggo
On 2013/04/16 13:29:19, scroggo wrote: > On 2013/04/15 23:08:04, scroggo wrote: > > Robert, > ...
7 years, 7 months ago (2013-05-21 18:18:53 UTC) #3
robertphillips
7 years, 7 months ago (2013-05-21 19:47:11 UTC) #4
I think this change could work with some tweaking.

https://codereview.chromium.org/14103024/diff/1/src/core/SkPicturePlayback.cpp
File src/core/SkPicturePlayback.cpp (right):

https://codereview.chromium.org/14103024/diff/1/src/core/SkPicturePlayback.cp...
src/core/SkPicturePlayback.cpp:718: size_t skipTo = 0;
remove "0 == skipTo" check.

https://codereview.chromium.org/14103024/diff/1/src/core/SkPicturePlayback.cp...
src/core/SkPicturePlayback.cpp:722: }
add "else { /* put the code you moved here */ }"

Powered by Google App Engine
This is Rietveld 408576698