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

Issue 448793004: add drawPicture variant that takes a matrix and paint (Closed)

Created:
6 years, 4 months ago by reed1
Modified:
6 years, 4 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

add drawPicture variant that takes a matrix and paint will need some staging strategy, since chrome and blink have overrides of onDrawPicture TBR= Committed: https://skia.googlesource.com/skia/+/d5fa1a455aad61f3e99081fe7a9b065cb3b115c6

Patch Set 1 #

Patch Set 2 : impl #

Patch Set 3 : rebase #

Total comments: 10

Patch Set 4 : pass paint to transformBounds in bbox #

Total comments: 11

Patch Set 5 : add gm #

Patch Set 6 : address review comments #

Patch Set 7 : #

Total comments: 6

Patch Set 8 : update gm #

Patch Set 9 : add dummy old-parameter-style onDrawPicture, so we can land and then fix chrome #

Patch Set 10 : more dummies so we can land #

Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -53 lines) Patch
M experimental/PdfViewer/SkNulCanvas.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A gm/picture.cpp View 1 2 3 4 5 6 7 1 chunk +78 lines, -0 lines 0 comments Download
M gyp/gmslides.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkCanvas.h View 1 2 3 4 5 6 7 8 2 chunks +16 lines, -2 lines 0 comments Download
M include/core/SkDevice.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M include/gpu/SkGpuDevice.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M include/utils/SkDeferredCanvas.h View 1 1 chunk +1 line, -1 line 0 comments Download
M include/utils/SkDumpCanvas.h View 1 1 chunk +1 line, -1 line 0 comments Download
M include/utils/SkLuaCanvas.h View 1 1 chunk +1 line, -1 line 0 comments Download
M include/utils/SkNWayCanvas.h View 1 1 chunk +1 line, -1 line 0 comments Download
M include/utils/SkProxyCanvas.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M src/core/SkBBoxRecord.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkBBoxRecord.cpp View 1 2 3 1 chunk +11 lines, -4 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 5 6 7 8 3 chunks +41 lines, -4 lines 0 comments Download
A src/core/SkCanvasPriv.h View 1 2 3 4 1 chunk +23 lines, -0 lines 0 comments Download
M src/core/SkDevice.cpp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M src/core/SkPictureFlat.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/core/SkPicturePlayback.cpp View 1 1 chunk +7 lines, -0 lines 0 comments Download
M src/core/SkPictureRecord.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkPictureRecord.cpp View 1 2 3 4 5 6 7 8 2 chunks +15 lines, -3 lines 0 comments Download
M src/core/SkRecordDraw.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkRecorder.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkRecorder.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/core/SkRecords.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -7 lines 0 comments Download
M src/gpu/GrPictureUtils.cpp View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -1 line 0 comments Download
M src/pipe/SkGPipeWrite.cpp View 1 2 chunks +8 lines, -3 lines 0 comments Download
M src/utils/SkDeferredCanvas.cpp View 1 1 chunk +3 lines, -2 lines 0 comments Download
M src/utils/SkDumpCanvas.cpp View 1 1 chunk +3 lines, -2 lines 0 comments Download
M src/utils/SkLuaCanvas.cpp View 1 1 chunk +3 lines, -2 lines 0 comments Download
M src/utils/SkNWayCanvas.cpp View 1 1 chunk +3 lines, -2 lines 0 comments Download
M src/utils/SkProxyCanvas.cpp View 1 1 chunk +3 lines, -2 lines 0 comments Download
M src/utils/debugger/SkDebugCanvas.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/utils/debugger/SkDebugCanvas.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 32 (0 generated)
reed1
6 years, 4 months ago (2014-08-06 21:13:37 UTC) #1
bsalomon
On 2014/08/06 21:13:37, reed1 wrote: I like
6 years, 4 months ago (2014-08-06 21:16:27 UTC) #2
f(malita)
On 2014/08/06 21:16:27, bsalomon wrote: > On 2014/08/06 21:13:37, reed1 wrote: > > I like ...
6 years, 4 months ago (2014-08-07 00:48:26 UTC) #3
robertphillips
Looks good.
6 years, 4 months ago (2014-08-07 12:35:55 UTC) #4
reed1
now implemented
6 years, 4 months ago (2014-08-07 21:05:08 UTC) #5
reed1
The CQ bit was checked by reed@google.com
6 years, 4 months ago (2014-08-07 21:05:14 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/reed@google.com/448793004/40001
6 years, 4 months ago (2014-08-07 21:05:55 UTC) #7
reed1
The CQ bit was unchecked by reed@google.com
6 years, 4 months ago (2014-08-07 21:08:30 UTC) #8
reed1
The CQ bit was checked by reed@google.com
6 years, 4 months ago (2014-08-07 21:24:20 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/reed@google.com/448793004/60001
6 years, 4 months ago (2014-08-07 21:25:18 UTC) #10
mtklein
https://codereview.chromium.org/448793004/diff/40001/src/core/SkBBoxRecord.cpp File src/core/SkBBoxRecord.cpp (right): https://codereview.chromium.org/448793004/diff/40001/src/core/SkBBoxRecord.cpp#newcode305 src/core/SkBBoxRecord.cpp:305: if (this->transformBounds(bounds, NULL)) { NULL -> paint? https://codereview.chromium.org/448793004/diff/40001/src/core/SkCanvas.cpp File ...
6 years, 4 months ago (2014-08-07 21:25:20 UTC) #11
reed1
The CQ bit was unchecked by reed@google.com
6 years, 4 months ago (2014-08-07 21:29:06 UTC) #12
bsalomon
Seems mostly good to me. Rob should have a look to make sure it can ...
6 years, 4 months ago (2014-08-08 13:49:38 UTC) #13
reed1
https://codereview.chromium.org/448793004/diff/40001/src/core/SkBBoxRecord.cpp File src/core/SkBBoxRecord.cpp (right): https://codereview.chromium.org/448793004/diff/40001/src/core/SkBBoxRecord.cpp#newcode305 src/core/SkBBoxRecord.cpp:305: if (this->transformBounds(bounds, NULL)) { On 2014/08/07 21:25:19, mtklein wrote: ...
6 years, 4 months ago (2014-08-08 13:57:30 UTC) #14
bsalomon
https://codereview.chromium.org/448793004/diff/60001/src/core/SkCanvas.cpp File src/core/SkCanvas.cpp (right): https://codereview.chromium.org/448793004/diff/60001/src/core/SkCanvas.cpp#newcode2406 src/core/SkCanvas.cpp:2406: if (matrix && matrix->isIdentity()) { On 2014/08/08 13:57:29, reed1 ...
6 years, 4 months ago (2014-08-08 13:59:42 UTC) #15
robertphillips
https://codereview.chromium.org/448793004/diff/60001/src/core/SkCanvas.cpp File src/core/SkCanvas.cpp (right): https://codereview.chromium.org/448793004/diff/60001/src/core/SkCanvas.cpp#newcode2414 src/core/SkCanvas.cpp:2414: SkASSERT(NULL != pic); I think the save/saveLayer needs to ...
6 years, 4 months ago (2014-08-08 14:59:54 UTC) #16
robertphillips
https://codereview.chromium.org/448793004/diff/60001/src/core/SkCanvas.cpp File src/core/SkCanvas.cpp (right): https://codereview.chromium.org/448793004/diff/60001/src/core/SkCanvas.cpp#newcode2436 src/core/SkCanvas.cpp:2436: // the picture itself. Can we add matrix & ...
6 years, 4 months ago (2014-08-08 15:01:18 UTC) #17
robertphillips
https://codereview.chromium.org/448793004/diff/60001/src/pipe/SkGPipeWrite.cpp File src/pipe/SkGPipeWrite.cpp (right): https://codereview.chromium.org/448793004/diff/60001/src/pipe/SkGPipeWrite.cpp#newcode939 src/pipe/SkGPipeWrite.cpp:939: // I second the motion. https://codereview.chromium.org/448793004/diff/60001/src/pipe/SkGPipeWrite.cpp#newcode942 src/pipe/SkGPipeWrite.cpp:942: // I ...
6 years, 4 months ago (2014-08-08 15:19:47 UTC) #18
reed1
The CQ bit was checked by reed@google.com
6 years, 4 months ago (2014-08-08 18:22:34 UTC) #19
reed1
The CQ bit was unchecked by reed@google.com
6 years, 4 months ago (2014-08-08 18:22:42 UTC) #20
reed1
The CQ bit was checked by reed@google.com
6 years, 4 months ago (2014-08-08 18:23:00 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/reed@google.com/448793004/120001
6 years, 4 months ago (2014-08-08 18:23:31 UTC) #22
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
6 years, 4 months ago (2014-08-08 18:23:32 UTC) #23
reed1
The CQ bit was unchecked by reed@google.com
6 years, 4 months ago (2014-08-08 18:24:37 UTC) #24
robertphillips
https://codereview.chromium.org/448793004/diff/120001/gm/picture.cpp File gm/picture.cpp (right): https://codereview.chromium.org/448793004/diff/120001/gm/picture.cpp#newcode37 gm/picture.cpp:37: // Exercise the SkCanvas::drawPicture interface with different matrix/paint combinations. ...
6 years, 4 months ago (2014-08-08 18:37:37 UTC) #25
reed1
https://codereview.chromium.org/448793004/diff/120001/gm/picture.cpp File gm/picture.cpp (right): https://codereview.chromium.org/448793004/diff/120001/gm/picture.cpp#newcode37 gm/picture.cpp:37: On 2014/08/08 18:37:37, robertphillips wrote: > // Exercise the ...
6 years, 4 months ago (2014-08-09 17:42:31 UTC) #26
reed1
The CQ bit was checked by reed@google.com
6 years, 4 months ago (2014-08-09 17:42:43 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/reed@google.com/448793004/160001
6 years, 4 months ago (2014-08-09 17:43:31 UTC) #28
reed1
The CQ bit was unchecked by reed@google.com
6 years, 4 months ago (2014-08-09 17:46:13 UTC) #29
reed1
The CQ bit was checked by reed@google.com
6 years, 4 months ago (2014-08-09 17:59:49 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/reed@google.com/448793004/180001
6 years, 4 months ago (2014-08-09 18:00:32 UTC) #31
commit-bot: I haz the power
6 years, 4 months ago (2014-08-09 18:08:12 UTC) #32
Message was sent while issue was closed.
Change committed as d5fa1a455aad61f3e99081fe7a9b065cb3b115c6

Powered by Google App Engine
This is Rietveld 408576698