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

Issue 1049143002: Add onGetBlendInfo to GrXferProcessor (Closed)

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

Description

Add onGetBlendInfo to GrXferProcessor Adds an onGetBlendInfo method for GrXferProcessor subclasses to override instead of overriding getBlendInfo directly. This gives the base class a chance to initialize the struct with default values before passing it on. As the BlendInfo struct grows, this will keep things simple and less error prone. BUG=skia: NOTREECHECKS=true NOTRY=true Committed: https://skia.googlesource.com/skia/+/f4f2b442228ca188cfb6b44ee3faa86773bb9db3

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : rebase #

Total comments: 1

Patch Set 4 : Address comments #

Patch Set 5 : Add glBlendEquation to skia GL bindings #

Patch Set 6 : Undo accidental upload of chrome change #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -33 lines) Patch
M include/gpu/GrXferProcessor.h View 1 2 3 5 6 3 chunks +17 lines, -2 lines 0 comments Download
M src/effects/SkArithmeticMode_gpu.cpp View 5 1 chunk +0 lines, -6 lines 0 comments Download
M src/gpu/GrPipeline.cpp View 1 2 5 1 chunk +0 lines, -3 lines 0 comments Download
M src/gpu/effects/GrCoverageSetOpXP.cpp View 5 3 chunks +3 lines, -3 lines 0 comments Download
M src/gpu/effects/GrCustomXfermode.cpp View 5 1 chunk +0 lines, -6 lines 0 comments Download
M src/gpu/effects/GrDisableColorXP.cpp View 5 2 chunks +3 lines, -3 lines 0 comments Download
M src/gpu/effects/GrPorterDuffXferProcessor.cpp View 5 2 chunks +10 lines, -10 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
Mark Kilgard
lgtm
5 years, 8 months ago (2015-04-02 22:45:24 UTC) #2
bsalomon
https://codereview.chromium.org/1049143002/diff/40001/include/gpu/GrXferProcessor.h File include/gpu/GrXferProcessor.h (right): https://codereview.chromium.org/1049143002/diff/40001/include/gpu/GrXferProcessor.h#newcode135 include/gpu/GrXferProcessor.h:135: blendInfo->fSrcBlend = kOne_GrBlendCoeff; My only suggestion is to move ...
5 years, 8 months ago (2015-04-22 13:42:56 UTC) #4
Chris Dalton
This takes the barrier stuff out and adds the reset() method to BlendInfo. I'll leave ...
5 years, 8 months ago (2015-04-23 06:58:20 UTC) #5
bsalomon
On 2015/04/23 06:58:20, Chris Dalton wrote: > This takes the barrier stuff out and adds ...
5 years, 8 months ago (2015-04-23 14:46:08 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1049143002/100001
5 years, 8 months ago (2015-04-23 16:03:31 UTC) #9
commit-bot: I haz the power
Failed to apply patch for include/gpu/GrXferProcessor.h: While running git apply --index -3 -p1; error: patch ...
5 years, 8 months ago (2015-04-23 16:03:34 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1049143002/120001
5 years, 8 months ago (2015-04-23 16:40:13 UTC) #14
commit-bot: I haz the power
5 years, 8 months ago (2015-04-23 16:40:27 UTC) #15
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://skia.googlesource.com/skia/+/f4f2b442228ca188cfb6b44ee3faa86773bb9db3

Powered by Google App Engine
This is Rietveld 408576698