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

Issue 356513003: Step towards variable length effect keys. (Closed)

Created:
6 years, 6 months ago by bsalomon
Modified:
6 years, 5 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

This moves us towards variable length effect keys. The overall program key now allows for it. After the header it stores an array of offsets to effect keys. This allows us to grab the effect keys to pass to effects when they generate code. It also ensures that we can't get a collision by sets of keys that are different lengths but are the same when appended together. Committed: https://skia.googlesource.com/skia/+/848faf00ec33d39ab3e31e9a11d805cae6ac6562

Patch Set 1 #

Patch Set 2 : more #

Patch Set 3 : update #

Total comments: 17

Patch Set 4 : address comments #

Patch Set 5 : minor tweaks #

Patch Set 6 : Add Gr prefix to EffectKeyBuilder #

Patch Set 7 : Save all files after adding Gr prefix #

Patch Set 8 : tweak comment #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+316 lines, -212 lines) Patch
M include/gpu/GrBackendEffectFactory.h View 1 2 3 4 5 6 7 4 chunks +26 lines, -23 lines 1 comment Download
M include/gpu/GrTBackendEffectFactory.h View 1 2 3 4 5 6 1 chunk +18 lines, -27 lines 1 comment Download
M src/core/SkXfermode.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/effects/SkAlphaThresholdFilter.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/effects/SkArithmeticMode.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/effects/SkBlurMaskFilter.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/effects/SkColorFilters.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/effects/SkColorMatrixFilter.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/effects/SkDisplacementMapEffect.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/effects/SkLightingImageFilter.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/effects/SkLumaColorFilter.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/effects/SkMagnifierImageFilter.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/effects/SkMatrixConvolutionImageFilter.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/effects/SkMorphologyImageFilter.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/effects/SkPerlinNoiseShader.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/effects/SkTableColorFilter.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/effects/gradients/SkGradientShader.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/effects/gradients/SkLinearGradient.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/effects/gradients/SkRadialGradient.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/effects/gradients/SkSweepGradient.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/effects/gradients/SkTwoPointConicalGradient_gpu.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/effects/gradients/SkTwoPointRadialGradient.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrAAConvexPathRenderer.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrAARectRenderer.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrOvalRenderer.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/effects/GrBezierEffect.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/effects/GrBicubicEffect.cpp View 1 1 chunk +9 lines, -0 lines 0 comments Download
M src/gpu/effects/GrConfigConversionEffect.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/effects/GrConvexPolyEffect.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/effects/GrConvolutionEffect.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/effects/GrCustomCoordsTextureEffect.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/effects/GrDashingEffect.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/effects/GrDistanceFieldTextureEffect.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/effects/GrDitherEffect.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/effects/GrOvalEffect.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/effects/GrRRectEffect.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/effects/GrSimpleTextureEffect.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/effects/GrTextureDomain.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/effects/GrYUVtoRGBEffect.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/gl/GrGLEffect.h View 1 2 chunks +2 lines, -7 lines 0 comments Download
M src/gpu/gl/GrGLProgramDesc.h View 1 2 3 8 chunks +49 lines, -31 lines 0 comments Download
M src/gpu/gl/GrGLProgramDesc.cpp View 1 2 3 4 5 3 chunks +77 lines, -50 lines 0 comments Download
M src/gpu/gl/GrGLProgramEffects.h View 1 2 chunks +2 lines, -4 lines 0 comments Download
M src/gpu/gl/GrGLProgramEffects.cpp View 1 4 chunks +8 lines, -10 lines 0 comments Download
M src/gpu/gl/GrGLShaderBuilder.h View 1 5 chunks +9 lines, -8 lines 0 comments Download
M src/gpu/gl/GrGLShaderBuilder.cpp View 1 5 chunks +14 lines, -10 lines 0 comments Download
M src/gpu/gl/GrGpuGL_program.cpp View 2 chunks +5 lines, -2 lines 0 comments Download
M tests/GLProgramsTest.cpp View 1 2 3 4 5 6 6 chunks +61 lines, -40 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
bsalomon
6 years, 5 months ago (2014-07-09 20:40:47 UTC) #1
robertphillips
lgtm + requests for more comments Also do you think this is unit testable somehow? ...
6 years, 5 months ago (2014-07-10 12:15:50 UTC) #2
bsalomon
As for testing: We should probably be checking that different programs never cause a key ...
6 years, 5 months ago (2014-07-10 17:24:35 UTC) #3
robertphillips
https://codereview.chromium.org/356513003/diff/40001/include/gpu/GrBackendEffectFactory.h File include/gpu/GrBackendEffectFactory.h (right): https://codereview.chromium.org/356513003/diff/40001/include/gpu/GrBackendEffectFactory.h#newcode45 include/gpu/GrBackendEffectFactory.h:45: int fCount; On 2014/07/10 17:24:34, bsalomon wrote: > No, ...
6 years, 5 months ago (2014-07-10 18:13:17 UTC) #4
bsalomon
On 2014/07/10 18:13:17, robertphillips wrote: > https://codereview.chromium.org/356513003/diff/40001/include/gpu/GrBackendEffectFactory.h > File include/gpu/GrBackendEffectFactory.h (right): > > https://codereview.chromium.org/356513003/diff/40001/include/gpu/GrBackendEffectFactory.h#newcode45 > ...
6 years, 5 months ago (2014-07-11 13:44:19 UTC) #5
jvanverth1
LGTM + some comments. https://codereview.chromium.org/356513003/diff/140001/include/gpu/GrBackendEffectFactory.h File include/gpu/GrBackendEffectFactory.h (right): https://codereview.chromium.org/356513003/diff/140001/include/gpu/GrBackendEffectFactory.h#newcode32 include/gpu/GrBackendEffectFactory.h:32: * Used by effects to ...
6 years, 5 months ago (2014-07-11 15:33:12 UTC) #6
bsalomon
On 2014/07/11 15:33:12, jvanverth1 wrote: > LGTM + some comments. > > https://codereview.chromium.org/356513003/diff/140001/include/gpu/GrBackendEffectFactory.h > File ...
6 years, 5 months ago (2014-07-11 16:49:18 UTC) #7
bsalomon
The CQ bit was checked by bsalomon@google.com
6 years, 5 months ago (2014-07-11 16:49:25 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/bsalomon@google.com/356513003/140001
6 years, 5 months ago (2014-07-11 16:49:53 UTC) #9
commit-bot: I haz the power
6 years, 5 months ago (2014-07-11 17:01:09 UTC) #10
Message was sent while issue was closed.
Change committed as 848faf00ec33d39ab3e31e9a11d805cae6ac6562

Powered by Google App Engine
This is Rietveld 408576698