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

Issue 214953003: split SkPictureRecorder out of SkPicture (Closed)

Created:
6 years, 9 months ago by robertphillips
Modified:
6 years, 8 months ago
CC:
skia-review_googlegroups.com, tomhudson, iancottrell, Dominik Grewe, Sami
Visibility:
Public.

Description

split SkPictureRecorder out of SkPicture. The most interesting changes are in SkPicture.h and then propagate out from there. In terms of staging, we'll have to land something like this, update Chromium and then remove the old SkPicture entry points.

Patch Set 1 #

Patch Set 2 : clean up #

Patch Set 3 : more cleanup #

Patch Set 4 : yet more cleanup #

Total comments: 1

Patch Set 5 : added guard #

Total comments: 11

Patch Set 6 : Fixed inheritance from NonCopyable #

Patch Set 7 : update to ToT #

Patch Set 8 : update to ToT (again) #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+571 lines, -447 lines) Patch
M bench/PicturePlaybackBench.cpp View 1 2 3 4 5 6 7 3 chunks +7 lines, -8 lines 0 comments Download
M bench/PictureRecordBench.cpp View 1 2 3 4 5 6 7 3 chunks +8 lines, -8 lines 0 comments Download
M bench/benchmain.cpp View 1 2 3 4 5 6 7 8 chunks +23 lines, -14 lines 0 comments Download
M debugger/SkDebugger.cpp View 1 2 3 4 5 6 7 2 chunks +3 lines, -4 lines 0 comments Download
M dm/DMReplayTask.cpp View 1 2 3 4 5 6 7 1 chunk +2 lines, -3 lines 0 comments Download
M dm/DMSerializeTask.cpp View 1 2 3 4 5 6 7 1 chunk +2 lines, -3 lines 0 comments Download
M dm/DMTileGridTask.cpp View 1 2 3 4 5 6 7 2 chunks +5 lines, -4 lines 0 comments Download
M dm/DMUtil.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -2 lines 0 comments Download
M dm/DMUtil.cpp View 1 2 3 4 5 6 7 1 chunk +4 lines, -3 lines 0 comments Download
M gm/distantclip.cpp View 1 2 3 4 5 6 7 2 chunks +6 lines, -7 lines 0 comments Download
M gm/gmmain.cpp View 1 2 3 4 5 6 7 1 chunk +5 lines, -9 lines 0 comments Download
M gm/optimizations.cpp View 1 2 3 4 5 6 7 5 chunks +11 lines, -15 lines 0 comments Download
M gm/pathopsskpclip.cpp View 1 2 3 4 5 6 7 3 chunks +3 lines, -4 lines 0 comments Download
M gm/pictureimagefilter.cpp View 1 2 3 4 5 6 7 4 chunks +7 lines, -6 lines 0 comments Download
M gm/pictureshader.cpp View 1 2 3 4 5 6 7 1 chunk +4 lines, -4 lines 0 comments Download
M gyp/skia_for_chromium_defines.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkPicture.h View 1 2 3 4 5 6 7 3 chunks +88 lines, -0 lines 0 comments Download
M include/core/SkTileGridPicture.h View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
M samplecode/SampleAll.cpp View 1 2 3 4 5 6 7 2 chunks +9 lines, -5 lines 0 comments Download
M samplecode/SampleApp.h View 1 2 3 4 5 6 7 3 chunks +2 lines, -2 lines 0 comments Download
M samplecode/SampleApp.cpp View 1 2 3 4 5 6 7 5 chunks +6 lines, -12 lines 0 comments Download
M samplecode/SamplePictFile.cpp View 1 2 3 4 5 6 7 3 chunks +20 lines, -26 lines 0 comments Download
M samplecode/SamplePicture.cpp View 1 2 3 4 5 6 7 4 chunks +17 lines, -14 lines 0 comments Download
M samplecode/SampleTiling.cpp View 1 2 3 4 5 6 7 3 chunks +8 lines, -7 lines 1 comment Download
M src/core/SkPicture.cpp View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M src/core/SkQuadTreePicture.h View 1 2 3 4 5 6 7 1 chunk +12 lines, -0 lines 0 comments Download
M tests/CanvasTest.cpp View 1 2 3 4 5 6 7 2 chunks +14 lines, -14 lines 0 comments Download
M tests/ImageFilterTest.cpp View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M tests/LayerDrawLooperTest.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M tests/PictureTest.cpp View 1 2 3 4 5 6 7 20 chunks +165 lines, -171 lines 0 comments Download
M tests/SerializationTest.cpp View 1 2 3 4 5 6 7 1 chunk +3 lines, -4 lines 0 comments Download
M tests/TileGridTest.cpp View 1 2 3 4 5 6 7 11 chunks +22 lines, -20 lines 0 comments Download
M tools/CopyTilesRenderer.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M tools/PictureRenderer.h View 1 2 3 4 5 6 7 4 chunks +4 lines, -5 lines 0 comments Download
M tools/PictureRenderer.cpp View 1 2 3 4 5 6 7 11 chunks +43 lines, -36 lines 0 comments Download
M tools/bench_record.cpp View 1 2 3 4 5 6 7 2 chunks +25 lines, -16 lines 0 comments Download
M tools/filtermain.cpp View 1 2 3 4 5 6 7 1 chunk +4 lines, -5 lines 0 comments Download
M tools/render_pictures_main.cpp View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M tools/skpmaker.cpp View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 41 (0 generated)
robertphillips
6 years, 9 months ago (2014-03-27 20:13:17 UTC) #1
reed1
is it too soon to introduce a guard to hide the recording api on SkPicture? ...
6 years, 9 months ago (2014-03-27 20:52:01 UTC) #2
mtklein
I think we might want to get that BBH issue sorted out before landing this. ...
6 years, 9 months ago (2014-03-27 21:09:10 UTC) #3
reed1
On 2014/03/27 21:09:10, mtklein wrote: > I think we might want to get that BBH ...
6 years, 9 months ago (2014-03-27 21:11:04 UTC) #4
mtklein
Stepping back a second... why are we doing this? Can we do it without changing ...
6 years, 9 months ago (2014-03-27 21:14:05 UTC) #5
reed1
On 2014/03/27 21:14:05, mtklein wrote: > Stepping back a second... why are we doing this? ...
6 years, 9 months ago (2014-03-27 21:37:57 UTC) #6
mtklein
On 2014/03/27 21:37:57, reed1 wrote: > On 2014/03/27 21:14:05, mtklein wrote: > > Stepping back ...
6 years, 9 months ago (2014-03-27 21:40:49 UTC) #7
mtklein
On 2014/03/27 21:40:49, mtklein wrote: > On 2014/03/27 21:37:57, reed1 wrote: > > On 2014/03/27 ...
6 years, 9 months ago (2014-03-27 21:42:54 UTC) #8
robertphillips
I view this patch as the first in a long chain (in only a somewhat ...
6 years, 9 months ago (2014-03-27 23:15:45 UTC) #9
mtklein
On 2014/03/27 23:15:45, robertphillips wrote: > I view this patch as the first in a ...
6 years, 9 months ago (2014-03-28 02:10:11 UTC) #10
robertphillips
I also believe we have a similar vision of where we want to end up. ...
6 years, 9 months ago (2014-03-28 11:39:34 UTC) #11
reed1
On 2014/03/28 11:39:34, robertphillips wrote: > I also believe we have a similar vision of ...
6 years, 9 months ago (2014-03-28 14:19:03 UTC) #12
robertphillips
PTAL, this patch adds a guard and makes SkPictureRecorder non-ref-counted.
6 years, 8 months ago (2014-04-07 13:44:35 UTC) #13
reed1
https://codereview.chromium.org/214953003/diff/80001/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/214953003/diff/80001/include/core/SkPicture.h#newcode408 include/core/SkPicture.h:408: SkPictureRecorder(SkPictureFactory* factory = NULL) { icky icky factory. why ...
6 years, 8 months ago (2014-04-07 14:49:56 UTC) #14
robertphillips
https://codereview.chromium.org/214953003/diff/80001/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/214953003/diff/80001/include/core/SkPicture.h#newcode408 include/core/SkPicture.h:408: SkPictureRecorder(SkPictureFactory* factory = NULL) { Yes. Ultimately this should ...
6 years, 8 months ago (2014-04-07 15:05:37 UTC) #15
mtklein
Remind me, what's the big picture goal here? Why is it bad for SkPicture to ...
6 years, 8 months ago (2014-04-07 15:18:11 UTC) #16
reed1
one meta motivation is to make pictures immutable once they are "snapped" (i.e. visible to ...
6 years, 8 months ago (2014-04-07 15:28:36 UTC) #17
mtklein
On 2014/04/07 15:28:36, reed1 wrote: > one meta motivation is to make pictures immutable once ...
6 years, 8 months ago (2014-04-07 15:30:58 UTC) #18
reed1
On 2014/04/07 15:30:58, mtklein wrote: > On 2014/04/07 15:28:36, reed1 wrote: > > one meta ...
6 years, 8 months ago (2014-04-07 15:38:22 UTC) #19
mtklein
On 2014/04/07 15:38:22, reed1 wrote: > On 2014/04/07 15:30:58, mtklein wrote: > > On 2014/04/07 ...
6 years, 8 months ago (2014-04-07 16:06:46 UTC) #20
robertphillips
https://codereview.chromium.org/214953003/diff/80001/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/214953003/diff/80001/include/core/SkPicture.h#newcode403 include/core/SkPicture.h:403: virtual SkPicture* create(int width, int height) = 0; The ...
6 years, 8 months ago (2014-04-07 16:26:55 UTC) #21
mtklein
https://codereview.chromium.org/214953003/diff/80001/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/214953003/diff/80001/include/core/SkPicture.h#newcode403 include/core/SkPicture.h:403: virtual SkPicture* create(int width, int height) = 0; On ...
6 years, 8 months ago (2014-04-07 16:29:43 UTC) #22
reed1
On 2014/04/07 16:06:46, mtklein wrote: > On 2014/04/07 15:38:22, reed1 wrote: > > On 2014/04/07 ...
6 years, 8 months ago (2014-04-07 17:28:48 UTC) #23
mtklein
On 2014/04/07 17:28:48, reed1 wrote: > On 2014/04/07 16:06:46, mtklein wrote: > > On 2014/04/07 ...
6 years, 8 months ago (2014-04-07 17:47:56 UTC) #24
robertphillips
Let's talk about picture immutability in person next time you're in.
6 years, 8 months ago (2014-04-07 17:57:10 UTC) #25
robertphillips
Okay - this patch fixes the inheritance from noncopyable. The factory is ref counted since ...
6 years, 8 months ago (2014-04-10 18:14:15 UTC) #26
reed1
api lgtm
6 years, 8 months ago (2014-04-10 19:34:15 UTC) #27
mtklein
lgtm
6 years, 8 months ago (2014-04-10 20:00:11 UTC) #28
robertphillips
The CQ bit was checked by robertphillips@google.com
6 years, 8 months ago (2014-04-11 13:30:18 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/214953003/100001
6 years, 8 months ago (2014-04-11 13:30:25 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-11 13:30:35 UTC) #31
commit-bot: I haz the power
Failed to apply patch for gyp/skia_for_chromium_defines.gypi: While running patch -p0 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-04-11 13:30:35 UTC) #32
robertphillips
The CQ bit was checked by robertphillips@google.com
6 years, 8 months ago (2014-04-11 18:16:01 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/214953003/120001
6 years, 8 months ago (2014-04-11 18:16:09 UTC) #34
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-11 18:22:07 UTC) #35
commit-bot: I haz the power
Retried try job too often on Build-Mac10.8-Clang-x86-Release-Trybot for step(s) BuildBench, BuildEverything, BuildGm, BuildSkiaLib, BuildTests, BuildTools ...
6 years, 8 months ago (2014-04-11 18:22:08 UTC) #36
robertphillips
The CQ bit was checked by robertphillips@google.com
6 years, 8 months ago (2014-04-11 18:53:35 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/214953003/140001
6 years, 8 months ago (2014-04-11 18:53:43 UTC) #38
robertphillips
The CQ bit was unchecked by robertphillips@google.com
6 years, 8 months ago (2014-04-13 20:01:17 UTC) #39
robertphillips
committed as r14171
6 years, 8 months ago (2014-04-13 20:01:46 UTC) #40
bungeman-chromium
6 years, 8 months ago (2014-04-15 21:07:07 UTC) #41
Message was sent while issue was closed.
SampleApp crashed on me, looks like it's this.

https://codereview.chromium.org/214953003/diff/140001/samplecode/SampleTiling...
File samplecode/SampleTiling.cpp (right):

https://codereview.chromium.org/214953003/diff/140001/samplecode/SampleTiling...
samplecode/SampleTiling.cpp:108: if (fTextPicture->width() == 0) {
fTextPicture is still uninitialized here!

Powered by Google App Engine
This is Rietveld 408576698