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

Issue 1334293003: Create fragment processor for performing input color blend with child processor (Closed)

Created:
5 years, 3 months ago by bsalomon
Modified:
5 years, 3 months ago
Reviewers:
egdaniel
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Create fragment processor for performing input color blend with child processor The new FP is used to implement SkXM::Mode color filters and SkXM::Mode image filters. Also, these now support all advanced SkXM::Mode xfermodes. Committed: https://skia.googlesource.com/skia/+/ae4738f677c70f4ec7687422e1510ee3d80d810e

Patch Set 1 #

Patch Set 2 : working #

Patch Set 3 : more #

Patch Set 4 : color comp #

Patch Set 5 : working #

Total comments: 6

Patch Set 6 : minor cleanup and removing GrCustomXfermodePriv.h #

Patch Set 7 : Address comments, add more unit test cases #

Patch Set 8 : rebase #

Patch Set 9 : more test cases #

Patch Set 10 : rm unused functions and revert circle blur change #

Patch Set 11 : fix build #

Patch Set 12 : rebase #

Patch Set 13 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1126 lines, -1119 lines) Patch
M gyp/gpu.gypi View 1 2 3 4 5 6 7 8 9 10 4 chunks +4 lines, -3 lines 0 comments Download
M include/core/SkColorFilter.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M include/core/SkXfermode.h View 1 2 chunks +9 lines, -9 lines 0 comments Download
M include/effects/SkColorCubeFilter.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M include/effects/SkColorMatrixFilter.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M include/effects/SkLumaColorFilter.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M include/effects/SkModeColorFilter.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M include/gpu/GrBlend.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +17 lines, -5 lines 0 comments Download
M include/gpu/GrColor.h View 1 2 3 4 5 3 chunks +39 lines, -2 lines 0 comments Download
M include/gpu/GrInvariantOutput.h View 1 2 3 10 chunks +17 lines, -16 lines 0 comments Download
M include/gpu/SkGr.h View 1 2 3 4 5 2 chunks +12 lines, -1 line 0 comments Download
M include/gpu/effects/GrCustomXfermode.h View 1 chunk +2 lines, -9 lines 0 comments Download
M include/gpu/effects/GrXfermodeFragmentProcessor.h View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M src/core/SkColorFilter.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkComposeShader.cpp View 1 1 chunk +3 lines, -5 lines 0 comments Download
M src/core/SkXfermode.cpp View 1 2 3 4 2 chunks +11 lines, -12 lines 0 comments Download
M src/core/SkXfermode_proccoeff.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/effects/SkArithmeticMode.cpp View 3 chunks +5 lines, -5 lines 0 comments Download
M src/effects/SkArithmeticMode_gpu.h View 2 chunks +5 lines, -7 lines 0 comments Download
M src/effects/SkArithmeticMode_gpu.cpp View 1 2 4 chunks +15 lines, -23 lines 0 comments Download
M src/effects/SkColorCubeFilter.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkColorFilters.cpp View 1 2 3 4 1 chunk +23 lines, -292 lines 0 comments Download
M src/effects/SkColorMatrixFilter.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkLumaColorFilter.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkTableColorFilter.cpp View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M src/effects/SkXfermodeImageFilter.cpp View 1 4 chunks +10 lines, -4 lines 0 comments Download
A src/gpu/GrBlend.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +124 lines, -0 lines 0 comments Download
M src/gpu/GrProcessor.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/SkGr.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/effects/GrCustomXfermode.cpp View 1 2 3 4 5 7 chunks +62 lines, -475 lines 0 comments Download
D src/gpu/effects/GrCustomXfermodePriv.h View 1 2 3 4 5 1 chunk +0 lines, -95 lines 0 comments Download
M src/gpu/effects/GrPorterDuffXferProcessor.cpp View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M src/gpu/effects/GrSimpleTextureEffect.h View 1 1 chunk +6 lines, -8 lines 0 comments Download
M src/gpu/effects/GrXfermodeFragmentProcessor.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +190 lines, -29 lines 0 comments Download
D src/gpu/gl/GrGLBlend.h View 1 chunk +0 lines, -24 lines 0 comments Download
D src/gpu/gl/GrGLBlend.cpp View 1 chunk +0 lines, -70 lines 0 comments Download
A + src/gpu/gl/GrGLSLBlend.h View 1 chunk +3 lines, -3 lines 0 comments Download
A src/gpu/gl/GrGLSLBlend.cpp View 1 1 chunk +435 lines, -0 lines 0 comments Download
M tests/GLProgramsTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/GpuColorFilterTest.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A tests/GrGetCoeffBlendKnownComponentsTest.cpp View 1 2 3 4 5 6 7 8 1 chunk +102 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (13 generated)
bsalomon
5 years, 3 months ago (2015-09-15 19:14:03 UTC) #2
egdaniel
https://codereview.chromium.org/1334293003/diff/80001/include/gpu/GrColor.h File include/gpu/GrColor.h (right): https://codereview.chromium.org/1334293003/diff/80001/include/gpu/GrColor.h#newcode160 include/gpu/GrColor.h:160: SkPMColor colorPM = SkPackARGB32(a, r, g, b); maybe use ...
5 years, 3 months ago (2015-09-15 20:59:28 UTC) #3
bsalomon
https://codereview.chromium.org/1334293003/diff/80001/include/gpu/GrColor.h File include/gpu/GrColor.h (right): https://codereview.chromium.org/1334293003/diff/80001/include/gpu/GrColor.h#newcode160 include/gpu/GrColor.h:160: SkPMColor colorPM = SkPackARGB32(a, r, g, b); On 2015/09/15 ...
5 years, 3 months ago (2015-09-15 21:12:07 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/1334293003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1334293003/120001
5 years, 3 months ago (2015-09-15 21:12:28 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Ubuntu-Clang-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-Clang-x86_64-Debug-Trybot/builds/3277)
5 years, 3 months ago (2015-09-15 21:13:17 UTC) #8
egdaniel
lgtm
5 years, 3 months ago (2015-09-15 21:24:17 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1334293003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1334293003/140001
5 years, 3 months ago (2015-09-15 21:24:31 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Ubuntu-GCC-Mips-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Mips-Debug-Android-Trybot/builds/2509) Build-Ubuntu-GCC-x86_64-Release-Trybot on ...
5 years, 3 months ago (2015-09-15 21:26:04 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1334293003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1334293003/180001
5 years, 3 months ago (2015-09-15 21:34:19 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu-Clang-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-Clang-x86_64-Debug-Trybot/builds/3280) Build-Ubuntu-GCC-Arm64-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, ...
5 years, 3 months ago (2015-09-15 21:35:24 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1334293003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1334293003/220001
5 years, 3 months ago (2015-09-15 22:23:23 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu-Clang-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-Clang-x86_64-Debug-Trybot/builds/3283) Build-Ubuntu-GCC-Mips-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, ...
5 years, 3 months ago (2015-09-15 22:24:29 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1334293003/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1334293003/240001
5 years, 3 months ago (2015-09-15 22:26:58 UTC) #26
commit-bot: I haz the power
5 years, 3 months ago (2015-09-15 22:33:32 UTC) #27
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://skia.googlesource.com/skia/+/ae4738f677c70f4ec7687422e1510ee3d80d810e

Powered by Google App Engine
This is Rietveld 408576698