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

Issue 759713002: Make all blending up to GrOptDrawState be handled by the xp/xp factory. (Closed)

Created:
6 years ago by egdaniel
Modified:
6 years ago
Reviewers:
bsalomon
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@xferFactorySolo
Project:
skia
Visibility:
Public.

Description

Make all blending up to GrOptDrawState be handled by the xp/xp factory. In this cl the blending information is extracted for the xp and stored in the ODS which is then used as it currently is. In the follow up cl, an XP backend will be added and at that point all blending work will take place inside XP's. BUG=skia: Committed: https://skia.googlesource.com/skia/+/7c66342a399b529634bed0fabfaa562db2c0dbd4 Committed: https://skia.googlesource.com/skia/+/9513143efa734bef0c1a0c7f945022572dbc8518

Patch Set 1 #

Patch Set 2 : Update #

Patch Set 3 : Rebased and updated from previous xfer cls #

Patch Set 4 : Clean up #

Total comments: 9

Patch Set 5 : Update from review comments #

Total comments: 13

Patch Set 6 : Review update #

Patch Set 7 : Fix build #

Patch Set 8 : Update to use new RGB cov check #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+629 lines, -498 lines) Patch
M gm/texdata.cpp View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M include/core/SkXfermode.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M include/gpu/GrPaint.h View 1 2 3 4 7 chunks +10 lines, -22 lines 0 comments Download
M include/gpu/GrXferProcessor.h View 1 2 3 4 4 chunks +110 lines, -1 line 0 comments Download
M include/gpu/effects/GrPorterDuffXferProcessor.h View 1 2 3 4 4 chunks +41 lines, -9 lines 0 comments Download
M src/core/SkXfermode.cpp View 1 2 3 4 5 6 2 chunks +6 lines, -13 lines 0 comments Download
M src/effects/SkAlphaThresholdFilter.cpp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M src/effects/SkBlurMaskFilter.cpp View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -3 lines 0 comments Download
M src/gpu/GrBitmapTextContext.cpp View 1 2 3 4 5 6 7 2 chunks +0 lines, -13 lines 0 comments Download
M src/gpu/GrClipMaskManager.cpp View 1 2 3 4 5 2 chunks +9 lines, -7 lines 0 comments Download
M src/gpu/GrDistanceFieldTextContext.cpp View 1 2 3 4 5 2 chunks +0 lines, -14 lines 0 comments Download
M src/gpu/GrDrawState.h View 1 2 3 4 5 6 chunks +18 lines, -91 lines 0 comments Download
M src/gpu/GrDrawState.cpp View 1 2 3 4 5 11 chunks +21 lines, -150 lines 0 comments Download
M src/gpu/GrOptDrawState.h View 1 2 3 4 1 chunk +8 lines, -10 lines 0 comments Download
M src/gpu/GrOptDrawState.cpp View 1 2 3 4 5 10 chunks +66 lines, -78 lines 0 comments Download
M src/gpu/GrPaint.cpp View 1 2 3 2 chunks +3 lines, -57 lines 0 comments Download
M src/gpu/GrProcOptInfo.h View 1 2 3 4 5 6 7 8 4 chunks +10 lines, -1 line 0 comments Download
M src/gpu/GrProcOptInfo.cpp View 1 4 chunks +15 lines, -5 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M src/gpu/SkGr.cpp View 1 2 1 chunk +1 line, -10 lines 0 comments Download
M src/gpu/effects/GrPorterDuffXferProcessor.cpp View 1 2 3 4 5 6 7 5 chunks +293 lines, -7 lines 0 comments Download
M tests/GLProgramsTest.cpp View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 22 (6 generated)
egdaniel
This is part 2 of XP stuff.
6 years ago (2014-11-26 20:19:50 UTC) #2
egdaniel
ptal. Updated from previously landed cls
6 years ago (2014-12-04 19:16:06 UTC) #3
bsalomon
https://codereview.chromium.org/759713002/diff/60001/gm/texdata.cpp File gm/texdata.cpp (right): https://codereview.chromium.org/759713002/diff/60001/gm/texdata.cpp#newcode102 gm/texdata.cpp:102: GrXPFactory* xpFactory = GrPorterDuffXPFactory::Create(SkXfermode::kSrcOver_Mode); I think we should have ...
6 years ago (2014-12-04 21:54:24 UTC) #4
egdaniel
updated https://codereview.chromium.org/759713002/diff/60001/gm/texdata.cpp File gm/texdata.cpp (right): https://codereview.chromium.org/759713002/diff/60001/gm/texdata.cpp#newcode102 gm/texdata.cpp:102: GrXPFactory* xpFactory = GrPorterDuffXPFactory::Create(SkXfermode::kSrcOver_Mode); On 2014/12/04 21:54:24, bsalomon ...
6 years ago (2014-12-08 14:52:06 UTC) #5
bsalomon
https://codereview.chromium.org/759713002/diff/80001/src/gpu/GrClipMaskManager.cpp File src/gpu/GrClipMaskManager.cpp (right): https://codereview.chromium.org/759713002/diff/80001/src/gpu/GrClipMaskManager.cpp#newcode338 src/gpu/GrClipMaskManager.cpp:338: drawState->setPorterDuffXPFactory(kOne_GrBlendCoeff, kZero_GrBlendCoeff); Just FYI, these will all be coverage ...
6 years ago (2014-12-08 15:38:52 UTC) #6
egdaniel
https://codereview.chromium.org/759713002/diff/80001/src/gpu/GrClipMaskManager.cpp File src/gpu/GrClipMaskManager.cpp (right): https://codereview.chromium.org/759713002/diff/80001/src/gpu/GrClipMaskManager.cpp#newcode338 src/gpu/GrClipMaskManager.cpp:338: drawState->setPorterDuffXPFactory(kOne_GrBlendCoeff, kZero_GrBlendCoeff); On 2014/12/08 15:38:51, bsalomon wrote: > Just ...
6 years ago (2014-12-08 16:24:02 UTC) #8
bsalomon
https://codereview.chromium.org/759713002/diff/80001/src/gpu/effects/GrPorterDuffXferProcessor.cpp File src/gpu/effects/GrPorterDuffXferProcessor.cpp (right): https://codereview.chromium.org/759713002/diff/80001/src/gpu/effects/GrPorterDuffXferProcessor.cpp#newcode67 src/gpu/effects/GrPorterDuffXferProcessor.cpp:67: : fSrcBlend(srcBlend), fDstBlend(dstBlend), fBlendConstant(constant) { On 2014/12/08 16:24:01, egdaniel ...
6 years ago (2014-12-08 18:35:22 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/759713002/120001
6 years ago (2014-12-08 18:54:11 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu13.10-GCE-NoGPU-x86_64-Release-Shared-Trybot on client.skia (http://build.chromium.org/p/client.skia/builders/Test-Ubuntu13.10-GCE-NoGPU-x86_64-Release-Shared-Trybot/builds/1046)
6 years ago (2014-12-08 18:56:15 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/759713002/140001
6 years ago (2014-12-08 19:11:14 UTC) #15
commit-bot: I haz the power
Committed patchset #7 (id:140001) as https://skia.googlesource.com/skia/+/7c66342a399b529634bed0fabfaa562db2c0dbd4
6 years ago (2014-12-08 19:20:45 UTC) #16
egdaniel
A revert of this CL (patchset #7 id:140001) has been created in https://codereview.chromium.org/766653008/ by egdaniel@google.com. ...
6 years ago (2014-12-08 21:25:25 UTC) #17
egdaniel
Minor update to work with new LCD check
6 years ago (2014-12-09 17:41:10 UTC) #18
bsalomon
lgtm
6 years ago (2014-12-09 18:02:13 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/759713002/180001
6 years ago (2014-12-09 19:12:52 UTC) #21
commit-bot: I haz the power
6 years ago (2014-12-09 19:15:56 UTC) #22
Message was sent while issue was closed.
Committed patchset #9 (id:180001) as
https://skia.googlesource.com/skia/+/9513143efa734bef0c1a0c7f945022572dbc8518

Powered by Google App Engine
This is Rietveld 408576698