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

Issue 12462008: Add GrEllipseEdgeEffect (Closed)

Created:
7 years, 9 months ago by jvanverth1
Modified:
7 years, 9 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Add GrEllipseEdgeEffect. Adds the effect that replaces the old oval rendering code. Also hooks in code to set attribute names and indices for effects. Committed: http://code.google.com/p/skia/source/detail?r=8092

Patch Set 1 #

Total comments: 26

Patch Set 2 : Cleaned up nits, adjusted some interfaces #

Total comments: 4

Patch Set 3 : Moved attrIndex setup to StageEffect, edgeAttrIndex to static const #

Patch Set 4 : Add dynamic vertex attributes for Effects #

Total comments: 11

Patch Set 5 : Minor fixes, added validation step #

Total comments: 3

Patch Set 6 : Major bug fix in EffectStage::isEqual, other minor fixes #

Patch Set 7 : Rebasing to latest #

Patch Set 8 : rebase again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+446 lines, -75 lines) Patch
M gyp/gpu.gypi View 1 2 3 4 5 6 7 1 chunk +5 lines, -3 lines 0 comments Download
M include/core/SkTArray.h View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
M include/gpu/GrBackendEffectFactory.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M include/gpu/GrEffect.h View 1 2 3 4 5 6 7 4 chunks +22 lines, -5 lines 0 comments Download
M include/gpu/GrEffectStage.h View 1 2 3 4 5 6 7 4 chunks +21 lines, -4 lines 0 comments Download
M include/gpu/GrTBackendEffectFactory.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -1 line 0 comments Download
A include/gpu/GrTypesPriv.h View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 2 3 4 5 6 7 4 chunks +14 lines, -5 lines 0 comments Download
M src/gpu/GrDrawState.h View 1 2 3 4 5 6 7 7 chunks +11 lines, -18 lines 0 comments Download
M src/gpu/GrDrawState.cpp View 1 2 3 4 5 6 7 1 chunk +79 lines, -0 lines 0 comments Download
M src/gpu/GrDrawTarget.cpp View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M src/gpu/GrEffect.cpp View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M src/gpu/GrSWMaskHelper.cpp View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M src/gpu/GrTextContext.cpp View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
A src/gpu/effects/GrEllipseEdgeEffect.h View 1 1 chunk +50 lines, -0 lines 0 comments Download
A src/gpu/effects/GrEllipseEdgeEffect.cpp View 1 2 3 1 chunk +80 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLEffect.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/gl/GrGLEffect.cpp View 1 2 3 4 5 6 7 1 chunk +15 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLProgram.cpp View 1 2 3 4 5 6 7 7 chunks +16 lines, -19 lines 0 comments Download
M src/gpu/gl/GrGLSL.h View 1 2 3 4 5 6 7 2 chunks +1 line, -16 lines 0 comments Download
M src/gpu/gl/GrGLShaderBuilder.h View 1 2 3 4 5 6 7 3 chunks +20 lines, -1 line 0 comments Download
M src/gpu/gl/GrGLShaderBuilder.cpp View 1 2 3 4 5 6 7 3 chunks +41 lines, -0 lines 0 comments Download
M tests/GLProgramsTest.cpp View 1 2 3 4 5 6 7 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
jvanverth1
(Brian, I couldn't get the static Effect to work -- it kept crashing somewhere while ...
7 years, 9 months ago (2013-03-05 20:02:03 UTC) #1
robertphillips
nits + some comment suggestions https://codereview.chromium.org/12462008/diff/1/gyp/gpu.gypi File gyp/gpu.gypi (right): https://codereview.chromium.org/12462008/diff/1/gyp/gpu.gypi#newcode124 gyp/gpu.gypi:124: '<(skia_src_path)/gpu/effects/Gr1DKernelEffect.h', What is texture ...
7 years, 9 months ago (2013-03-05 20:30:13 UTC) #2
robertphillips
Otherwise lgtm
7 years, 9 months ago (2013-03-05 20:30:26 UTC) #3
bsalomon
Three high level comment/questions: 1) We want to avoid adding code where effects directly manipulate ...
7 years, 9 months ago (2013-03-05 20:42:45 UTC) #4
jvanverth1
On 2013/03/05 20:42:45, bsalomon wrote: > Three high level comment/questions: > > 1) We want ...
7 years, 9 months ago (2013-03-06 13:28:52 UTC) #5
bsalomon
On 2013/03/06 13:28:52, JimVV wrote: > On 2013/03/05 20:42:45, bsalomon wrote: > > Three high ...
7 years, 9 months ago (2013-03-06 14:07:05 UTC) #6
jvanverth1
On 2013/03/06 14:07:05, bsalomon wrote: > On 2013/03/06 13:28:52, JimVV wrote: > > On 2013/03/05 ...
7 years, 9 months ago (2013-03-06 18:35:42 UTC) #7
bsalomon
On 2013/03/06 18:35:42, JimVV wrote: > > Thinking about it more, it might be okay. ...
7 years, 9 months ago (2013-03-06 19:00:44 UTC) #8
jvanverth1
On 2013/03/06 19:00:44, bsalomon wrote: > I don't know that having informative names is the ...
7 years, 9 months ago (2013-03-06 20:24:43 UTC) #9
jvanverth1
I also addressed two of the issues Brian raised (partial encapsulation of GrGLShaderBuilder, and passing ...
7 years, 9 months ago (2013-03-07 15:21:54 UTC) #10
bsalomon
https://codereview.chromium.org/12462008/diff/1012/src/gpu/GrContext.cpp File src/gpu/GrContext.cpp (right): https://codereview.chromium.org/12462008/diff/1012/src/gpu/GrContext.cpp#newcode1152 src/gpu/GrContext.cpp:1152: int edgeAttrIndex = 1; static const? https://codereview.chromium.org/12462008/diff/1012/src/gpu/GrDrawState.h File src/gpu/GrDrawState.h ...
7 years, 9 months ago (2013-03-07 15:59:13 UTC) #11
jvanverth1
I've set it up to automatically create the vertex attribute names for Effects, as Brian ...
7 years, 9 months ago (2013-03-07 22:00:44 UTC) #12
bsalomon
Most of my inline comments are minor stuff that you can take or leave. I ...
7 years, 9 months ago (2013-03-08 14:31:58 UTC) #13
jvanverth1
I've added the validate method, though I think it's too complex to run in Release. ...
7 years, 9 months ago (2013-03-08 17:39:55 UTC) #14
bsalomon
lgtm (w/ some minor comments inline) https://codereview.chromium.org/12462008/diff/52001/include/core/SkTArray.h File include/core/SkTArray.h (right): https://codereview.chromium.org/12462008/diff/52001/include/core/SkTArray.h#newcode284 include/core/SkTArray.h:284: int leftCount = ...
7 years, 9 months ago (2013-03-08 18:27:20 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/jvanverth@google.com/12462008/71001
7 years, 9 months ago (2013-03-12 12:25:47 UTC) #16
commit-bot: I haz the power
7 years, 9 months ago (2013-03-12 12:26:12 UTC) #17
Message was sent while issue was closed.
Change committed as 8092

Powered by Google App Engine
This is Rietveld 408576698