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

Issue 727363003: wip for drawables (Closed)

Created:
6 years, 1 month ago by reed1
Modified:
6 years, 1 month ago
Reviewers:
mtklein, robertphillips
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

wip for drawables Idea: 1. in its mutable recording state, keep a table of drawables on the side, and store an index in the record list. 2. In "immediate-mode" draw, just call the clients drawable directly (need access to our private list to turn the stored index into a proc) 3. when we "snap", we replace the list of drawables with a list of (sub) pictures, and then during playback of the snapped picture, we invoke a private drawable which just calls "drawPicture" on the index'd subpicture. Committed: https://skia.googlesource.com/skia/+/6be2aa9a251bf6022570a03140f956655b3ef1da

Patch Set 1 #

Patch Set 2 : works, but I took a few short-cuts #

Total comments: 6

Patch Set 3 : rebase #

Total comments: 2

Patch Set 4 : address comments from #2 #

Patch Set 5 : use SkData's release-proc to encapsulate the unref requirement for the array #

Patch Set 6 : #

Total comments: 2

Patch Set 7 : make the pictures in the array also const (the array already was const) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -57 lines) Patch
M include/core/SkPicture.h View 1 2 3 4 5 6 3 chunks +14 lines, -5 lines 0 comments Download
M samplecode/SampleArc.cpp View 1 1 chunk +6 lines, -0 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 1 chunk +2 lines, -5 lines 0 comments Download
M src/core/SkCanvasDrawable.h View 1 2 3 4 chunks +12 lines, -6 lines 0 comments Download
M src/core/SkCanvasDrawable.cpp View 1 2 chunks +15 lines, -6 lines 0 comments Download
M src/core/SkPicture.cpp View 1 2 3 4 5 6 5 chunks +27 lines, -7 lines 0 comments Download
M src/core/SkPictureRecorder.cpp View 1 3 chunks +10 lines, -2 lines 0 comments Download
M src/core/SkRecordDraw.h View 1 2 3 4 5 6 3 chunks +20 lines, -6 lines 0 comments Download
M src/core/SkRecordDraw.cpp View 1 2 3 4 5 6 6 chunks +16 lines, -5 lines 0 comments Download
M src/core/SkRecorder.h View 1 3 chunks +7 lines, -0 lines 0 comments Download
M src/core/SkRecorder.cpp View 1 2 3 4 3 chunks +50 lines, -0 lines 0 comments Download
M src/core/SkRecords.h View 3 chunks +3 lines, -0 lines 0 comments Download
M src/gpu/GrLayerHoister.cpp View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M src/gpu/GrRecordReplaceDraw.cpp View 1 2 3 4 5 6 3 chunks +6 lines, -3 lines 0 comments Download
M tests/RecordDrawTest.cpp View 1 2 3 4 5 7 chunks +7 lines, -7 lines 0 comments Download
M tools/DumpRecord.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 25 (6 generated)
reed1
6 years, 1 month ago (2014-11-17 16:03:08 UTC) #2
robertphillips
https://codereview.chromium.org/727363003/diff/20001/src/core/SkRecordDraw.cpp File src/core/SkRecordDraw.cpp (right): https://codereview.chromium.org/727363003/diff/20001/src/core/SkRecordDraw.cpp#newcode59 src/core/SkRecordDraw.cpp:59: SkCanvas* canvas, Why not just pass these in and ...
6 years, 1 month ago (2014-11-17 20:16:52 UTC) #3
mtklein
https://codereview.chromium.org/727363003/diff/20001/src/core/SkCanvasDrawable.h File src/core/SkCanvasDrawable.h (right): https://codereview.chromium.org/727363003/diff/20001/src/core/SkCanvasDrawable.h#newcode52 src/core/SkCanvasDrawable.h:52: * return false. Update docs? https://codereview.chromium.org/727363003/diff/20001/src/core/SkRecordDraw.cpp File src/core/SkRecordDraw.cpp (right): ...
6 years, 1 month ago (2014-11-17 20:23:21 UTC) #4
reed1
https://codereview.chromium.org/727363003/diff/20001/src/core/SkCanvasDrawable.h File src/core/SkCanvasDrawable.h (right): https://codereview.chromium.org/727363003/diff/20001/src/core/SkCanvasDrawable.h#newcode52 src/core/SkCanvasDrawable.h:52: * return false. On 2014/11/17 20:23:21, mtklein wrote: > ...
6 years, 1 month ago (2014-11-17 20:35:59 UTC) #5
mtklein
https://codereview.chromium.org/727363003/diff/40001/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/727363003/diff/40001/include/core/SkPicture.h#newcode276 include/core/SkPicture.h:276: SkAutoTUnref<SkData> fDrawablePicts; Let's start with SkTDArray<const SkPicture*>, passed by ...
6 years, 1 month ago (2014-11-17 20:40:33 UTC) #6
reed1
https://codereview.chromium.org/727363003/diff/40001/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/727363003/diff/40001/include/core/SkPicture.h#newcode276 include/core/SkPicture.h:276: SkAutoTUnref<SkData> fDrawablePicts; On 2014/11/17 20:40:33, mtklein wrote: > Let's ...
6 years, 1 month ago (2014-11-17 21:27:44 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/727363003/80001
6 years, 1 month ago (2014-11-17 21:28:56 UTC) #9
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
6 years, 1 month ago (2014-11-17 21:28:59 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu13.10-GCE-NoGPU-x86_64-Debug-Trybot on client.skia (http://build.chromium.org/p/client.skia/builders/Test-Ubuntu13.10-GCE-NoGPU-x86_64-Debug-Trybot/builds/753)
6 years, 1 month ago (2014-11-17 21:30:54 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/727363003/20002
6 years, 1 month ago (2014-11-17 21:40:42 UTC) #14
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
6 years, 1 month ago (2014-11-17 21:40:43 UTC) #15
mtklein
https://codereview.chromium.org/727363003/diff/20002/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/727363003/diff/20002/include/core/SkPicture.h#newcode263 include/core/SkPicture.h:263: SkPicture(SkScalar width, SkScalar height, SkRecord*, SkData* drawablePicts, I'm still ...
6 years, 1 month ago (2014-11-18 01:07:06 UTC) #17
reed1
On 2014/11/18 01:07:06, mtklein wrote: > https://codereview.chromium.org/727363003/diff/20002/include/core/SkPicture.h > File include/core/SkPicture.h (right): > > https://codereview.chromium.org/727363003/diff/20002/include/core/SkPicture.h#newcode263 > ...
6 years, 1 month ago (2014-11-18 18:58:22 UTC) #18
reed1
6 years, 1 month ago (2014-11-18 18:58:32 UTC) #19
reed1
PTAL
6 years, 1 month ago (2014-11-18 18:58:47 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/727363003/110001
6 years, 1 month ago (2014-11-18 18:59:35 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, 1 month ago (2014-11-18 18:59:36 UTC) #23
mtklein
On 2014/11/18 18:59:36, I haz the power (commit-bot) wrote: > Note for Reviewers: > The ...
6 years, 1 month ago (2014-11-18 19:01:08 UTC) #24
commit-bot: I haz the power
6 years, 1 month ago (2014-11-18 19:08:11 UTC) #25
Message was sent while issue was closed.
Committed patchset #7 (id:110001) as
https://skia.googlesource.com/skia/+/6be2aa9a251bf6022570a03140f956655b3ef1da

Powered by Google App Engine
This is Rietveld 408576698