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

Issue 24853002: Make GPU coord transforms automatic (Closed)

Created:
7 years, 2 months ago by Chris Dalton
Modified:
7 years, 2 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Make GPU coord transforms automatic Adds a GrCoordTransform class and updates the framework to handle coord transforms similar to how it handles textures with GrTextureAccess. Renames GrGLEffectMatrix to GrGLCoordTransform and slightly repurposes it to be used by the framework instead of effects. R=bsalomon@google.com, robertphillips@google.com Committed: https://code.google.com/p/skia/source/detail?r=11569

Patch Set 1 #

Total comments: 31

Patch Set 2 : Address comments #

Patch Set 3 : Fix GLProgram test #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+642 lines, -1019 lines) Patch
M gyp/gpu.gypi View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M include/gpu/GrBackendEffectFactory.h View 1 2 3 2 chunks +10 lines, -6 lines 0 comments Download
A include/gpu/GrCoordTransform.h View 1 1 chunk +91 lines, -0 lines 0 comments Download
M include/gpu/GrDrawEffect.h View 1 chunk +1 line, -2 lines 0 comments Download
M include/gpu/GrEffect.h View 1 6 chunks +21 lines, -15 lines 0 comments Download
M include/gpu/GrTBackendEffectFactory.h View 2 chunks +15 lines, -5 lines 0 comments Download
M src/core/SkXfermode.cpp View 1 6 chunks +8 lines, -30 lines 0 comments Download
M src/effects/SkArithmeticMode.cpp View 7 chunks +8 lines, -30 lines 0 comments Download
M src/effects/SkBitmapAlphaThresholdShader.cpp View 5 chunks +20 lines, -50 lines 0 comments Download
M src/effects/SkColorMatrixFilter.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M src/effects/SkDisplacementMapEffect.cpp View 13 chunks +17 lines, -49 lines 0 comments Download
M src/effects/SkLightingImageFilter.cpp View 1 8 chunks +6 lines, -19 lines 0 comments Download
M src/effects/SkLumaXfermode.cpp View 3 chunks +7 lines, -6 lines 0 comments Download
M src/effects/SkMagnifierImageFilter.cpp View 5 chunks +7 lines, -23 lines 0 comments Download
M src/effects/SkMatrixConvolutionImageFilter.cpp View 8 chunks +7 lines, -19 lines 0 comments Download
M src/effects/SkMorphologyImageFilter.cpp View 7 chunks +6 lines, -14 lines 0 comments Download
M src/effects/SkPerlinNoiseShader.cpp View 13 chunks +19 lines, -22 lines 0 comments Download
M src/effects/SkTableColorFilter.cpp View 2 chunks +2 lines, -0 lines 0 comments Download
M src/effects/gradients/SkGradientShader.cpp View 11 chunks +7 lines, -27 lines 0 comments Download
M src/effects/gradients/SkGradientShaderPriv.h View 6 chunks +7 lines, -31 lines 0 comments Download
M src/effects/gradients/SkLinearGradient.cpp View 2 chunks +3 lines, -4 lines 0 comments Download
M src/effects/gradients/SkRadialGradient.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M src/effects/gradients/SkSweepGradient.cpp View 2 chunks +4 lines, -3 lines 0 comments Download
M src/effects/gradients/SkTwoPointConicalGradient.cpp View 6 chunks +7 lines, -10 lines 0 comments Download
M src/effects/gradients/SkTwoPointRadialGradient.cpp View 5 chunks +8 lines, -11 lines 0 comments Download
M src/gpu/GrAAConvexPathRenderer.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrAARectRenderer.cpp View 2 chunks +2 lines, -0 lines 0 comments Download
M src/gpu/GrClipMaskManager.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrEffect.cpp View 3 chunks +18 lines, -0 lines 0 comments Download
M src/gpu/GrOvalRenderer.cpp View 3 chunks +3 lines, -0 lines 0 comments Download
M src/gpu/GrSWMaskHelper.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/effects/GrBezierEffect.cpp View 6 chunks +6 lines, -0 lines 0 comments Download
M src/gpu/effects/GrBicubicEffect.h View 3 chunks +5 lines, -6 lines 0 comments Download
M src/gpu/effects/GrBicubicEffect.cpp View 7 chunks +8 lines, -26 lines 0 comments Download
M src/gpu/effects/GrConfigConversionEffect.cpp View 1 3 chunks +4 lines, -20 lines 0 comments Download
M src/gpu/effects/GrConvolutionEffect.cpp View 7 chunks +6 lines, -14 lines 0 comments Download
M src/gpu/effects/GrCustomCoordsTextureEffect.cpp View 3 chunks +1 line, -5 lines 0 comments Download
M src/gpu/effects/GrSimpleTextureEffect.h View 3 chunks +11 lines, -11 lines 0 comments Download
M src/gpu/effects/GrSimpleTextureEffect.cpp View 4 chunks +10 lines, -30 lines 0 comments Download
M src/gpu/effects/GrSingleTextureEffect.h View 3 chunks +9 lines, -14 lines 0 comments Download
M src/gpu/effects/GrSingleTextureEffect.cpp View 1 chunk +12 lines, -12 lines 0 comments Download
M src/gpu/effects/GrTextureDomainEffect.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/effects/GrTextureDomainEffect.cpp View 1 11 chunks +19 lines, -32 lines 0 comments Download
A src/gpu/gl/GrGLCoordTransform.h View 1 2 3 1 chunk +109 lines, -0 lines 0 comments Download
A + src/gpu/gl/GrGLCoordTransform.cpp View 1 6 chunks +38 lines, -91 lines 0 comments Download
M src/gpu/gl/GrGLEffect.h View 4 chunks +7 lines, -2 lines 0 comments Download
M src/gpu/gl/GrGLEffect.cpp View 1 2 chunks +13 lines, -0 lines 0 comments Download
D src/gpu/gl/GrGLEffectMatrix.h View 1 chunk +0 lines, -118 lines 0 comments Download
D src/gpu/gl/GrGLEffectMatrix.cpp View 1 chunk +0 lines, -241 lines 0 comments Download
M src/gpu/gl/GrGLProgram.h View 3 chunks +7 lines, -4 lines 0 comments Download
M src/gpu/gl/GrGLProgram.cpp View 1 6 chunks +15 lines, -1 line 0 comments Download
M src/gpu/gl/GrGLShaderBuilder.h View 1 5 chunks +13 lines, -3 lines 0 comments Download
M src/gpu/gl/GrGLShaderBuilder.cpp View 1 7 chunks +33 lines, -4 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Chris Dalton
I went ahead abandoned the old one to make a new commit. Generally I tried ...
7 years, 2 months ago (2013-09-26 21:46:39 UTC) #1
Chris Dalton
7 years, 2 months ago (2013-09-27 16:34:26 UTC) #2
bsalomon
I've started taking a look (comments inline) and have made it maybe 1/3 of the ...
7 years, 2 months ago (2013-09-27 19:23:57 UTC) #3
bsalomon
Other than the million effects that are modified, this is a lot less code change ...
7 years, 2 months ago (2013-09-27 20:04:25 UTC) #4
jvanverth1
Looks reasonable to me. The only thing that bothers me a little is that we're ...
7 years, 2 months ago (2013-09-27 20:41:34 UTC) #5
Chris Dalton
Thanks for the reviews everybody! Patchset 2 should address all the comments except renaming GrCoordSet ...
7 years, 2 months ago (2013-09-27 23:33:44 UTC) #6
bsalomon
lgtm. I couldn't think of a better name for the coordinate enum. Have you run ...
7 years, 2 months ago (2013-09-30 13:24:40 UTC) #7
robertphillips
lgtm
7 years, 2 months ago (2013-09-30 14:26:54 UTC) #8
Chris Dalton
This change added an assert exposed an existing bug. 5 bits wasn't enough for the ...
7 years, 2 months ago (2013-09-30 14:58:29 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/cdalton@nvidia.com/24853002/70001
7 years, 2 months ago (2013-09-30 14:59:57 UTC) #10
commit-bot: I haz the power
Failed to apply patch for src/gpu/gl/GrGLCoordTransform.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; A src/gpu/gl/GrGLCoordTransform.cpp ...
7 years, 2 months ago (2013-09-30 15:00:11 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/cdalton@nvidia.com/24853002/76001
7 years, 2 months ago (2013-10-01 12:07:24 UTC) #12
commit-bot: I haz the power
Retried try job too often on Build-Ubuntu12-GCC-x86_64-Release-Trybot for step(s) BuildBench, BuildEverything, BuildGm, BuildSkiaLib, BuildTests, BuildTools ...
7 years, 2 months ago (2013-10-01 14:12:34 UTC) #13
bsalomon
7 years, 2 months ago (2013-10-02 13:07:36 UTC) #14
Message was sent while issue was closed.
Committed patchset #4 manually as r11569 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698