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

Issue 14598023: add SkDrawPictureCallback optional parameter to drawPicture(), which can abort the picture drawing. (Closed)

Created:
7 years, 7 months ago by reed1
Modified:
7 years, 7 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

add SkDrawPictureCallback optional parameter to drawPicture(), which can abort the picture drawing. R=bsalomon@google.com Committed: https://code.google.com/p/skia/source/detail?r=9197

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -6 lines) Patch
M include/core/SkPicture.h View 1 3 chunks +20 lines, -2 lines 1 comment Download
M src/core/SkPicture.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M src/core/SkPicturePlayback.h View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkPicturePlayback.cpp View 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
reed1
Motivated by chrome's desire to playback pictures into their "analysis canvas" subclass, which computes stats. ...
7 years, 7 months ago (2013-05-16 14:57:40 UTC) #1
reed1
7 years, 7 months ago (2013-05-16 14:58:11 UTC) #2
reed1
crazy thought: what if they just set their canvas' clip to empty when they're "done". ...
7 years, 7 months ago (2013-05-16 14:59:50 UTC) #3
robertphillips
https://codereview.chromium.org/14598023/diff/1/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/14598023/diff/1/include/core/SkPicture.h#newcode154 include/core/SkPicture.h:154: @param canvas the canvas receiving the drawing commands. // ...
7 years, 7 months ago (2013-05-16 15:04:23 UTC) #4
bsalomon
On 2013/05/16 14:59:50, reed1 wrote: > crazy thought: what if they just set their canvas' ...
7 years, 7 months ago (2013-05-16 18:23:18 UTC) #5
vangelis
Thanks for putting this together. To clarify the use-case, we'll early out the analysis (in ...
7 years, 7 months ago (2013-05-17 00:43:53 UTC) #6
reed1
PTAL -- I don't have any ideas to make it better/simpler/clearer. Are we good to ...
7 years, 7 months ago (2013-05-20 16:44:14 UTC) #7
bsalomon
On 2013/05/20 16:44:14, reed1 wrote: > PTAL -- I don't have any ideas to make ...
7 years, 7 months ago (2013-05-20 16:53:57 UTC) #8
reed1
Committed patchset #3 manually as r9197 (presubmit successful).
7 years, 7 months ago (2013-05-20 17:02:47 UTC) #9
robertphillips
7 years, 7 months ago (2013-05-20 17:05:19 UTC) #10
Message was sent while issue was closed.
lgtm. Unit test?

https://codereview.chromium.org/14598023/diff/11001/include/core/SkPicture.h
File include/core/SkPicture.h (right):

https://codereview.chromium.org/14598023/diff/11001/include/core/SkPicture.h#...
include/core/SkPicture.h:154: @param canvas the canvas receiving the drawing
commands.
document 'callback' parameter?

Powered by Google App Engine
This is Rietveld 408576698