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

Issue 1811703002: return pictures as sk_sp (Closed)

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

Description

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : rely on RVO in picturerecorder #

Unified diffs Side-by-side diffs Delta from patch set Stats (+363 lines, -376 lines) Patch
M bench/PictureNestingBench.cpp View 1 4 chunks +4 lines, -5 lines 0 comments Download
M bench/PictureOverheadBench.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M bench/PicturePlaybackBench.cpp View 1 3 chunks +6 lines, -6 lines 0 comments Download
M bench/RecordingBench.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M bench/nanobench.cpp View 1 5 chunks +12 lines, -17 lines 0 comments Download
M debugger/QT/SkDebuggerGUI.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M dm/DMSrcSink.cpp View 1 2 11 chunks +14 lines, -15 lines 0 comments Download
M fuzz/fuzz.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M gm/distantclip.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M gm/filterfastbounds.cpp View 1 1 chunk +3 lines, -3 lines 0 comments Download
M gm/image.cpp View 1 3 chunks +6 lines, -7 lines 0 comments Download
M gm/image_pict.cpp View 1 4 chunks +8 lines, -8 lines 0 comments Download
M gm/image_shader.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M gm/multipicturedraw.cpp View 1 10 chunks +19 lines, -19 lines 0 comments Download
M gm/pathopsskpclip.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M gm/picture.cpp View 1 4 chunks +4 lines, -4 lines 0 comments Download
M gm/pictureimagefilter.cpp View 3 chunks +7 lines, -7 lines 0 comments Download
M gm/pictureimagegenerator.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M gm/pictureshader.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M gm/pictureshadertile.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M gm/recordopts.cpp View 5 chunks +5 lines, -7 lines 0 comments Download
M gm/verylargebitmap.cpp View 1 1 chunk +2 lines, -3 lines 0 comments Download
M include/core/SkCanvas.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M include/core/SkPicture.h View 1 7 chunks +19 lines, -7 lines 0 comments Download
M include/core/SkPictureRecorder.h View 3 chunks +14 lines, -4 lines 0 comments Download
M include/private/SkMiniRecorder.h View 1 chunk +1 line, -1 line 0 comments Download
M samplecode/SampleAll.cpp View 1 chunk +1 line, -1 line 0 comments Download
M samplecode/SampleApp.cpp View 1 3 chunks +4 lines, -4 lines 0 comments Download
M samplecode/SampleArc.cpp View 3 chunks +6 lines, -11 lines 0 comments Download
M samplecode/SampleFilterFuzz.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M samplecode/SampleHT.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M samplecode/SamplePictFile.cpp View 1 6 chunks +8 lines, -8 lines 0 comments Download
M samplecode/SampleTiling.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M src/c/sk_surface.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkDrawable.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkMiniRecorder.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M src/core/SkPicture.cpp View 3 chunks +9 lines, -10 lines 0 comments Download
M src/core/SkPictureData.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/core/SkPictureRecorder.cpp View 1 2 4 chunks +7 lines, -7 lines 0 comments Download
M src/core/SkPictureShader.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkPictureImageFilter.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M src/utils/SkLua.cpp View 1 1 chunk +3 lines, -3 lines 0 comments Download
M tests/CanvasTest.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M tests/GpuLayerCacheTest.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M tests/ImageFilterTest.cpp View 1 2 12 chunks +15 lines, -16 lines 0 comments Download
M tests/ImageTest.cpp View 1 3 chunks +4 lines, -4 lines 0 comments Download
M tests/PathOpsSkpClipTest.cpp View 1 5 chunks +9 lines, -13 lines 0 comments Download
M tests/PictureBBHTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/PictureShaderTest.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M tests/PictureTest.cpp View 1 49 chunks +65 lines, -66 lines 0 comments Download
M tests/RecordOptsTest.cpp View 1 1 chunk +3 lines, -3 lines 0 comments Download
M tests/RecordReplaceDrawTest.cpp View 1 7 chunks +9 lines, -9 lines 0 comments Download
M tests/RecordingXfermodeTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/SerializationTest.cpp View 1 5 chunks +8 lines, -9 lines 0 comments Download
M tests/SkResourceCacheTest.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M tests/SkpSkGrTest.cpp View 1 5 chunks +5 lines, -7 lines 0 comments Download
M tools/VisualBench/VisualBenchmarkStream.h View 1 1 chunk +1 line, -1 line 0 comments Download
M tools/VisualBench/VisualBenchmarkStream.cpp View 1 2 chunks +8 lines, -9 lines 0 comments Download
M tools/dump_record.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M tools/get_images_from_skps.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M tools/gpuveto.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M tools/kilobench/kilobench.cpp View 1 1 chunk +6 lines, -11 lines 0 comments Download
M tools/lua/lua_pictures.cpp View 1 2 chunks +4 lines, -5 lines 0 comments Download
M tools/pinspect.cpp View 1 3 chunks +4 lines, -4 lines 0 comments Download
M tools/skiaserve/Request.h View 1 1 chunk +1 line, -1 line 0 comments Download
M tools/skiaserve/Request.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M tools/skpmaker.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
reed1
4 years, 9 months ago (2016-03-17 19:52:13 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1811703002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1811703002/20001
4 years, 9 months ago (2016-03-17 19:52:29 UTC) #5
reed1
Given ASAN + GM + tests, I mostly want the reviewers to like to direction/style ...
4 years, 9 months ago (2016-03-17 21:01:27 UTC) #7
reed1
shall I land as is? There are many follow-ups planned.
4 years, 9 months ago (2016-03-18 12:47:36 UTC) #8
f(malita)
https://codereview.chromium.org/1811703002/diff/20001/src/core/SkPictureRecorder.cpp File src/core/SkPictureRecorder.cpp (right): https://codereview.chromium.org/1811703002/diff/20001/src/core/SkPictureRecorder.cpp#newcode202 src/core/SkPictureRecorder.cpp:202: return std::move(drawable); IIUC move semantics clash with RVO, and ...
4 years, 9 months ago (2016-03-18 12:48:12 UTC) #9
f(malita)
On 2016/03/18 12:47:36, reed1 wrote: > shall I land as is? There are many follow-ups ...
4 years, 9 months ago (2016-03-18 12:54:54 UTC) #10
f(malita)
https://codereview.chromium.org/1811703002/diff/20001/src/core/SkPictureRecorder.cpp File src/core/SkPictureRecorder.cpp (right): https://codereview.chromium.org/1811703002/diff/20001/src/core/SkPictureRecorder.cpp#newcode202 src/core/SkPictureRecorder.cpp:202: return std::move(drawable); On 2016/03/18 12:48:12, f(malita) wrote: > IIUC ...
4 years, 9 months ago (2016-03-18 13:02:40 UTC) #11
robertphillips
I looked through the headers and the interface looks good to me
4 years, 9 months ago (2016-03-18 13:43:01 UTC) #12
reed1
https://codereview.chromium.org/1811703002/diff/20001/src/core/SkPictureRecorder.cpp File src/core/SkPictureRecorder.cpp (right): https://codereview.chromium.org/1811703002/diff/20001/src/core/SkPictureRecorder.cpp#newcode202 src/core/SkPictureRecorder.cpp:202: return std::move(drawable); On 2016/03/18 12:48:12, f(malita) wrote: > IIUC ...
4 years, 9 months ago (2016-03-18 14:11:51 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1811703002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1811703002/40001
4 years, 9 months ago (2016-03-18 14:12:32 UTC) #16
commit-bot: I haz the power
4 years, 9 months ago (2016-03-18 14:26:00 UTC) #18
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/ca2622ba051829fed5f30facd74c5b41cd4b931c

Powered by Google App Engine
This is Rietveld 408576698