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

Issue 12531015: Adds local coords to GrEffect system. (Closed)

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

Description

Adds local coords to GrEffect system. Effects can ask the builder for local coords which may or may not be distinct from positions. GrEffectStage tracks changes to relationship between pos and local coords. GrGLEffectMatrix and GrSingleTextureEffect can use either pos or textures as intput coords GrSimpleTextureEffect now allows for an explicit texture coords attribute. Committed: https://code.google.com/p/skia/source/detail?r=8264

Patch Set 1 #

Patch Set 2 : #

Total comments: 15

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+991 lines, -853 lines) Patch
M include/core/SkTLazy.h View 1 2 3 3 chunks +21 lines, -1 line 0 comments Download
M include/gpu/GrBackendEffectFactory.h View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M include/gpu/GrContext.h View 1 2 3 3 chunks +13 lines, -15 lines 0 comments Download
A include/gpu/GrDrawEffect.h View 1 chunk +51 lines, -0 lines 0 comments Download
M include/gpu/GrEffect.h View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M include/gpu/GrEffectStage.h View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M include/gpu/GrPaint.h View 1 2 3 2 chunks +45 lines, -48 lines 0 comments Download
M include/gpu/GrTBackendEffectFactory.h View 1 2 3 3 chunks +7 lines, -7 lines 0 comments Download
M src/effects/SkBicubicImageFilter.cpp View 1 2 3 4 chunks +18 lines, -18 lines 0 comments Download
M src/effects/SkBlendImageFilter.cpp View 1 2 3 4 chunks +28 lines, -25 lines 0 comments Download
M src/effects/SkColorMatrixFilter.cpp View 1 2 3 2 chunks +5 lines, -6 lines 0 comments Download
M src/effects/SkDisplacementMapEffect.cpp View 1 2 3 6 chunks +33 lines, -26 lines 0 comments Download
M src/effects/SkLightingImageFilter.cpp View 1 2 3 13 chunks +47 lines, -48 lines 0 comments Download
M src/effects/SkMagnifierImageFilter.cpp View 1 2 3 3 chunks +18 lines, -17 lines 0 comments Download
M src/effects/SkMatrixConvolutionImageFilter.cpp View 1 2 3 5 chunks +27 lines, -28 lines 0 comments Download
M src/effects/SkMorphologyImageFilter.cpp View 1 2 3 4 chunks +19 lines, -17 lines 0 comments Download
M src/effects/SkTableColorFilter.cpp View 1 2 3 2 chunks +7 lines, -9 lines 0 comments Download
M src/effects/gradients/SkGradientShader.cpp View 1 2 3 3 chunks +10 lines, -9 lines 0 comments Download
M src/effects/gradients/SkGradientShaderPriv.h View 1 2 3 4 chunks +4 lines, -3 lines 0 comments Download
M src/effects/gradients/SkLinearGradient.cpp View 1 2 3 2 chunks +6 lines, -8 lines 0 comments Download
M src/effects/gradients/SkRadialGradient.cpp View 1 2 3 2 chunks +6 lines, -8 lines 0 comments Download
M src/effects/gradients/SkSweepGradient.cpp View 1 2 3 2 chunks +6 lines, -8 lines 0 comments Download
M src/effects/gradients/SkTwoPointConicalGradient.cpp View 1 2 3 5 chunks +16 lines, -17 lines 0 comments Download
M src/effects/gradients/SkTwoPointRadialGradient.cpp View 1 2 3 6 chunks +16 lines, -16 lines 0 comments Download
M src/gpu/GrClipMaskManager.cpp View 1 2 3 3 chunks +8 lines, -2 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 2 3 5 chunks +23 lines, -28 lines 0 comments Download
M src/gpu/GrDrawState.h View 1 2 3 10 chunks +24 lines, -79 lines 0 comments Download
M src/gpu/GrDrawState.cpp View 1 2 3 9 chunks +7 lines, -59 lines 0 comments Download
M src/gpu/GrDrawTarget.h View 1 2 3 2 chunks +12 lines, -17 lines 0 comments Download
M src/gpu/GrDrawTarget.cpp View 1 2 3 3 chunks +12 lines, -15 lines 0 comments Download
M src/gpu/GrInOrderDrawBuffer.h View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M src/gpu/GrInOrderDrawBuffer.cpp View 1 2 3 5 chunks +14 lines, -19 lines 0 comments Download
M src/gpu/GrSWMaskHelper.cpp View 1 2 3 1 chunk +18 lines, -7 lines 0 comments Download
M src/gpu/GrTextContext.cpp View 1 2 3 4 chunks +10 lines, -9 lines 0 comments Download
M src/gpu/effects/GrConfigConversionEffect.cpp View 1 2 3 2 chunks +16 lines, -19 lines 0 comments Download
M src/gpu/effects/GrConvolutionEffect.cpp View 1 2 3 4 chunks +19 lines, -17 lines 0 comments Download
M src/gpu/effects/GrEllipseEdgeEffect.cpp View 1 2 3 3 chunks +10 lines, -11 lines 0 comments Download
M src/gpu/effects/GrSimpleTextureEffect.h View 1 2 3 2 chunks +52 lines, -15 lines 0 comments Download
M src/gpu/effects/GrSimpleTextureEffect.cpp View 1 2 3 2 chunks +69 lines, -19 lines 0 comments Download
M src/gpu/effects/GrSingleTextureEffect.h View 1 2 3 3 chunks +17 lines, -6 lines 0 comments Download
M src/gpu/effects/GrSingleTextureEffect.cpp View 1 2 3 1 chunk +15 lines, -6 lines 0 comments Download
M src/gpu/effects/GrTextureDomainEffect.h View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M src/gpu/effects/GrTextureDomainEffect.cpp View 1 2 3 11 chunks +45 lines, -32 lines 0 comments Download
M src/gpu/gl/GrGLEffect.h View 1 2 3 5 chunks +16 lines, -34 lines 0 comments Download
M src/gpu/gl/GrGLEffect.cpp View 1 2 3 3 chunks +9 lines, -7 lines 0 comments Download
M src/gpu/gl/GrGLEffectMatrix.h View 1 2 3 3 chunks +45 lines, -20 lines 0 comments Download
M src/gpu/gl/GrGLEffectMatrix.cpp View 1 2 3 6 chunks +55 lines, -31 lines 0 comments Download
M src/gpu/gl/GrGLProgram.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/GrGLProgram.cpp View 1 2 3 12 chunks +23 lines, -38 lines 0 comments Download
M src/gpu/gl/GrGLShaderBuilder.h View 1 2 3 4 chunks +13 lines, -2 lines 0 comments Download
M src/gpu/gl/GrGLShaderBuilder.cpp View 1 2 3 6 chunks +15 lines, -5 lines 0 comments Download
M tests/GLProgramsTest.cpp View 1 2 3 3 chunks +12 lines, -9 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
bsalomon
Take two. First off, I'm so so sorry at how big this is. A lot ...
7 years, 9 months ago (2013-03-19 14:07:39 UTC) #1
robertphillips
Ouch but lgtm modulo some suggestions. https://codereview.chromium.org/12531015/diff/13002/include/core/SkTLazy.h File include/core/SkTLazy.h (right): https://codereview.chromium.org/12531015/diff/13002/include/core/SkTLazy.h#newcode95 include/core/SkTLazy.h:95: .. macro (SkNEW_IN_TLAZY) ...
7 years, 9 months ago (2013-03-19 15:09:38 UTC) #2
jvanverth1
Some initial comments: https://codereview.chromium.org/12531015/diff/13002/src/gpu/GrDrawState.h File src/gpu/GrDrawState.h (left): https://codereview.chromium.org/12531015/diff/13002/src/gpu/GrDrawState.h#oldcode1199 src/gpu/GrDrawState.h:1199: s.fCommon.fAttribBindings & kAttribIndexMasks[i]) && Can we ...
7 years, 9 months ago (2013-03-19 15:11:59 UTC) #3
bsalomon
https://codereview.chromium.org/12531015/diff/13002/src/gpu/GrDrawState.h File src/gpu/GrDrawState.h (left): https://codereview.chromium.org/12531015/diff/13002/src/gpu/GrDrawState.h#oldcode1199 src/gpu/GrDrawState.h:1199: s.fCommon.fAttribBindings & kAttribIndexMasks[i]) && On 2013/03/19 15:11:59, JimVV wrote: ...
7 years, 9 months ago (2013-03-19 15:22:25 UTC) #4
jvanverth1
LGTM + comments https://codereview.chromium.org/12531015/diff/13002/src/gpu/GrDrawState.h File src/gpu/GrDrawState.h (right): https://codereview.chromium.org/12531015/diff/13002/src/gpu/GrDrawState.h#newcode269 src/gpu/GrDrawState.h:269: /** explicit local coords are provided ...
7 years, 9 months ago (2013-03-19 15:36:51 UTC) #5
robertphillips
https://codereview.chromium.org/12531015/diff/13002/src/gpu/gl/GrGLEffectMatrix.h File src/gpu/gl/GrGLEffectMatrix.h (right): https://codereview.chromium.org/12531015/diff/13002/src/gpu/gl/GrGLEffectMatrix.h#newcode103 src/gpu/gl/GrGLEffectMatrix.h:103: How about kMatrixKeys? Jim is right should kGeneralKey be ...
7 years, 9 months ago (2013-03-19 15:41:34 UTC) #6
bsalomon
https://codereview.chromium.org/12531015/diff/13002/include/core/SkTLazy.h File include/core/SkTLazy.h (right): https://codereview.chromium.org/12531015/diff/13002/include/core/SkTLazy.h#newcode95 include/core/SkTLazy.h:95: On 2013/03/19 15:09:38, robertphillips wrote: > .. macro (SkNEW_IN_TLAZY) ...
7 years, 9 months ago (2013-03-19 19:34:42 UTC) #7
bsalomon
7 years, 9 months ago (2013-03-20 17:33:10 UTC) #8
Message was sent while issue was closed.
Committed patchset #4 manually as r8264 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698