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

Issue 1832223002: switch xfermodes over to sk_sp (Closed)

Created:
4 years, 9 months ago by reed1
Modified:
4 years, 8 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 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 10

Patch Set 5 : address comments from #16 #

Patch Set 6 : rebase #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+303 lines, -322 lines) Patch
M bench/RectBench.cpp View 1 2 3 4 5 2 chunks +2 lines, -6 lines 0 comments Download
M bench/Xfer4fBench.cpp View 1 2 3 4 5 2 chunks +4 lines, -5 lines 0 comments Download
M bench/XferU64Bench.cpp View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M bench/XfermodeBench.cpp View 1 2 3 4 5 4 chunks +6 lines, -7 lines 0 comments Download
M gm/aarectmodes.cpp View 1 2 3 chunks +3 lines, -7 lines 0 comments Download
M gm/aaxfermodes.cpp View 1 2 3 4 5 2 chunks +5 lines, -5 lines 0 comments Download
M gm/arithmode.cpp View 1 2 2 chunks +3 lines, -6 lines 0 comments Download
M gm/avoidxfermode.cpp View 1 2 4 chunks +5 lines, -12 lines 0 comments Download
M gm/avoidxfermode2.cpp View 1 2 4 chunks +7 lines, -12 lines 0 comments Download
M gm/avoidxfermode3.cpp View 1 2 4 chunks +6 lines, -12 lines 0 comments Download
M gm/bitmaprect.cpp View 1 2 3 4 5 1 chunk +1 line, -4 lines 0 comments Download
M gm/blurredclippedcircle.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M gm/colortypexfermode.cpp View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M gm/composeshader.cpp View 1 2 3 4 5 2 chunks +3 lines, -4 lines 0 comments Download
M gm/drawatlascolor.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M gm/hairmodes.cpp View 1 2 3 chunks +3 lines, -5 lines 0 comments Download
M gm/imagefiltersgraph.cpp View 1 2 4 chunks +10 lines, -16 lines 0 comments Download
M gm/lcdblendmodes.cpp View 1 2 3 4 5 2 chunks +2 lines, -4 lines 0 comments Download
M gm/lcdoverlap.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M gm/patch.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M gm/pixelxorxfermode.cpp View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M gm/vertices.cpp View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M gm/xfermodeimagefilter.cpp View 1 2 8 chunks +15 lines, -23 lines 0 comments Download
M gm/xfermodes.cpp View 1 2 3 4 5 5 chunks +10 lines, -10 lines 0 comments Download
M gm/xfermodes2.cpp View 1 2 3 4 5 2 chunks +1 line, -3 lines 0 comments Download
M gyp/skia_for_android_framework_defines.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M include/client/android/SkAvoidXfermode.h View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M include/client/android/SkPixelXorXfermode.h View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M include/core/SkCanvas.h View 2 chunks +12 lines, -0 lines 0 comments Download
M include/core/SkPaint.h View 1 chunk +3 lines, -1 line 0 comments Download
M include/core/SkShader.h View 1 chunk +4 lines, -0 lines 0 comments Download
M include/core/SkXfermode.h View 7 chunks +28 lines, -6 lines 0 comments Download
M include/effects/SkArithmeticMode.h View 2 chunks +8 lines, -3 lines 0 comments Download
M include/effects/SkXfermodeImageFilter.h View 1 2 3 2 chunks +11 lines, -5 lines 3 comments Download
M public.bzl View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M samplecode/PerlinPatch.cpp View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M samplecode/SampleAARectModes.cpp View 1 2 chunks +3 lines, -7 lines 0 comments Download
M samplecode/SampleAll.cpp View 1 2 3 4 5 3 chunks +3 lines, -4 lines 0 comments Download
M samplecode/SampleFilterFuzz.cpp View 1 2 3 4 5 1 chunk +3 lines, -4 lines 0 comments Download
M samplecode/SampleHairModes.cpp View 1 2 chunks +2 lines, -6 lines 0 comments Download
M samplecode/SampleShaders.cpp View 1 2 chunks +5 lines, -7 lines 0 comments Download
M samplecode/SampleXfermodesBlur.cpp View 1 2 4 chunks +4 lines, -5 lines 0 comments Download
M src/core/SkBitmapProcShader.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkComposeShader.h View 1 2 3 4 5 3 chunks +10 lines, -9 lines 0 comments Download
M src/core/SkComposeShader.cpp View 5 chunks +8 lines, -22 lines 0 comments Download
M src/core/SkDraw.cpp View 1 2 3 4 5 2 chunks +4 lines, -9 lines 0 comments Download
M src/core/SkPaint.cpp View 1 2 3 4 5 3 chunks +5 lines, -3 lines 0 comments Download
M src/core/SkPicturePlayback.cpp View 1 2 3 4 5 3 chunks +5 lines, -5 lines 0 comments Download
M src/core/SkReadBuffer.h View 1 chunk +3 lines, -1 line 0 comments Download
M src/core/SkShader.cpp View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M src/core/SkXfermode.cpp View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M src/effects/SkArithmeticMode.cpp View 1 2 3 4 5 2 chunks +6 lines, -8 lines 0 comments Download
M src/effects/SkAvoidXfermode.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkLayerDrawLooper.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkPixelXorXfermode.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkXfermodeImageFilter.cpp View 1 2 3 4 5 1 chunk +14 lines, -6 lines 0 comments Download
M src/gpu/GrSWMaskHelper.cpp View 1 2 3 4 5 1 chunk +1 line, -5 lines 0 comments Download
M src/utils/SkLua.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/BlendTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/GrGetCoeffBlendKnownComponentsTest.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M tests/ImageFilterTest.cpp View 1 2 3 4 5 3 chunks +9 lines, -13 lines 0 comments Download
M tests/PaintTest.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M tests/SerializationTest.cpp View 1 2 3 4 5 2 chunks +6 lines, -6 lines 0 comments Download
M tests/XfermodeTest.cpp View 1 2 3 3 chunks +2 lines, -4 lines 0 comments Download
M tools/debugger/SkDebugCanvas.cpp View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M tools/debugger/SkDrawCommand.cpp View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M tools/debugger/SkOverdrawMode.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tools/debugger/SkOverdrawMode.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 26 (14 generated)
reed1
4 years, 9 months ago (2016-03-25 21:10:32 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1832223002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1832223002/40001
4 years, 9 months ago (2016-03-26 02:59:49 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot/builds/7389)
4 years, 9 months ago (2016-03-26 03:01:51 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1832223002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1832223002/60001
4 years, 9 months ago (2016-03-26 03:44:41 UTC) #10
tomhudson
lgtm https://codereview.chromium.org/1832223002/diff/60001/src/core/SkComposeShader.h File src/core/SkComposeShader.h (right): https://codereview.chromium.org/1832223002/diff/60001/src/core/SkComposeShader.h#newcode31 src/core/SkComposeShader.h:31: SkComposeShader(sk_sp<SkShader> sA, sk_sp<SkShader> sB, sk_sp<SkXfermode> mode) Nit: Removed ...
4 years, 8 months ago (2016-03-28 17:46:26 UTC) #15
f(malita)
lgtm https://codereview.chromium.org/1832223002/diff/60001/src/core/SkDraw.cpp File src/core/SkDraw.cpp (right): https://codereview.chromium.org/1832223002/diff/60001/src/core/SkDraw.cpp#newcode1912 src/core/SkDraw.cpp:1912: xmode->unref(); Nit: looks a bit convoluted, plus we ...
4 years, 8 months ago (2016-03-28 18:44:59 UTC) #16
reed1
https://codereview.chromium.org/1832223002/diff/60001/src/core/SkComposeShader.h File src/core/SkComposeShader.h (right): https://codereview.chromium.org/1832223002/diff/60001/src/core/SkComposeShader.h#newcode31 src/core/SkComposeShader.h:31: SkComposeShader(sk_sp<SkShader> sA, sk_sp<SkShader> sB, sk_sp<SkXfermode> mode) On 2016/03/28 17:46:26, ...
4 years, 8 months ago (2016-03-29 16:13:52 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1832223002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1832223002/100001
4 years, 8 months ago (2016-03-29 18:21:25 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://skia.googlesource.com/skia/+/cfb6bdf767796c950f89985445738d2d8e7f12b0
4 years, 8 months ago (2016-03-29 18:32:54 UTC) #22
dogben
https://codereview.chromium.org/1832223002/diff/100001/include/effects/SkXfermodeImageFilter.h File include/effects/SkXfermodeImageFilter.h (right): https://codereview.chromium.org/1832223002/diff/100001/include/effects/SkXfermodeImageFilter.h#newcode24 include/effects/SkXfermodeImageFilter.h:24: static sk_sp<SkImageFilter> Make(sk_sp<SkXfermode> mode, SkImageFilter* background, Shouldn't this accept ...
4 years, 8 months ago (2016-04-01 20:08:52 UTC) #24
reed1
https://codereview.chromium.org/1832223002/diff/100001/include/effects/SkXfermodeImageFilter.h File include/effects/SkXfermodeImageFilter.h (right): https://codereview.chromium.org/1832223002/diff/100001/include/effects/SkXfermodeImageFilter.h#newcode24 include/effects/SkXfermodeImageFilter.h:24: static sk_sp<SkImageFilter> Make(sk_sp<SkXfermode> mode, SkImageFilter* background, On 2016/04/01 20:08:52, ...
4 years, 8 months ago (2016-04-02 14:26:56 UTC) #25
robertphillips
4 years, 8 months ago (2016-04-03 18:26:46 UTC) #26
Message was sent while issue was closed.
https://codereview.chromium.org/1832223002/diff/100001/include/effects/SkXfer...
File include/effects/SkXfermodeImageFilter.h (right):

https://codereview.chromium.org/1832223002/diff/100001/include/effects/SkXfer...
include/effects/SkXfermodeImageFilter.h:24: static sk_sp<SkImageFilter>
Make(sk_sp<SkXfermode> mode, SkImageFilter* background,
Yep - I'm slowly churning my way through all the ImageFilters.

Powered by Google App Engine
This is Rietveld 408576698