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

Issue 854013002: Refactor position computation to enable device space "nudge" (Closed)

Created:
5 years, 11 months ago by robertphillips
Modified:
5 years, 11 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Refactor position computation to enable device space "nudge" To match raster's handling of BW geometry we want to be able to perform a device space "nudge" on all geometry. This CL sets us up to be able to do that in GrGLVertexBuilder::transformToNormalizedDeviceSpace. BUG=423834 TBR=bsalomon@google.com Committed: https://skia.googlesource.com/skia/+/46d36f0e7b709a077c647841eee23bd3efdc4117

Patch Set 1 #

Patch Set 2 : Add suppressions #

Total comments: 4

Patch Set 3 : Address code review comments #

Patch Set 4 : Update to ToT #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -172 lines) Patch
M expectations/gm/ignored-tests.txt View 1 2 3 1 chunk +30 lines, -2 lines 0 comments Download
M include/gpu/GrShaderVar.h View 1 2 3 chunks +7 lines, -45 lines 0 comments Download
M src/gpu/GrAAConvexPathRenderer.cpp View 3 chunks +8 lines, -6 lines 0 comments Download
M src/gpu/GrDefaultGeoProcFactory.cpp View 3 chunks +8 lines, -7 lines 0 comments Download
M src/gpu/GrGeometryProcessor.h View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrGeometryProcessor.cpp View 1 2 3 chunks +38 lines, -6 lines 1 comment Download
M src/gpu/GrOvalRenderer.cpp View 9 chunks +24 lines, -22 lines 0 comments Download
M src/gpu/effects/GrBezierEffect.cpp View 12 chunks +24 lines, -24 lines 0 comments Download
M src/gpu/effects/GrBitmapTextGeoProc.cpp View 3 chunks +5 lines, -4 lines 0 comments Download
M src/gpu/effects/GrDashingEffect.cpp View 1 8 chunks +22 lines, -18 lines 0 comments Download
M src/gpu/effects/GrDistanceFieldTextureEffect.cpp View 9 chunks +24 lines, -22 lines 0 comments Download
M src/gpu/gl/GrGLGeometryProcessor.h View 2 chunks +28 lines, -6 lines 0 comments Download
M src/gpu/gl/GrGLShaderVar.h View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M src/gpu/gl/builders/GrGLVertexShaderBuilder.h View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp View 1 2 2 chunks +14 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
robertphillips
5 years, 11 months ago (2015-01-15 19:46:24 UTC) #2
joshualitt
On 2015/01/15 19:46:24, robertphillips wrote: nits
5 years, 11 months ago (2015-01-15 19:53:58 UTC) #3
joshualitt
https://codereview.chromium.org/854013002/diff/20001/src/gpu/GrGeometryProcessor.cpp File src/gpu/GrGeometryProcessor.cpp (right): https://codereview.chromium.org/854013002/diff/20001/src/gpu/GrGeometryProcessor.cpp#newcode266 src/gpu/GrGeometryProcessor.cpp:266: gpArgs->fPositionVar.set(kVec2f_GrSLType, GrShaderVar::kNone_TypeModifier, "pos2"); Maybe make a new setter with ...
5 years, 11 months ago (2015-01-15 19:54:04 UTC) #4
robertphillips
https://codereview.chromium.org/854013002/diff/20001/src/gpu/GrGeometryProcessor.cpp File src/gpu/GrGeometryProcessor.cpp (right): https://codereview.chromium.org/854013002/diff/20001/src/gpu/GrGeometryProcessor.cpp#newcode266 src/gpu/GrGeometryProcessor.cpp:266: gpArgs->fPositionVar.set(kVec2f_GrSLType, GrShaderVar::kNone_TypeModifier, "pos2"); On 2015/01/15 19:54:04, joshualitt wrote: > ...
5 years, 11 months ago (2015-01-15 20:55:33 UTC) #5
joshualitt
On 2015/01/15 20:55:33, robertphillips wrote: > https://codereview.chromium.org/854013002/diff/20001/src/gpu/GrGeometryProcessor.cpp > File src/gpu/GrGeometryProcessor.cpp (right): > > https://codereview.chromium.org/854013002/diff/20001/src/gpu/GrGeometryProcessor.cpp#newcode266 > ...
5 years, 11 months ago (2015-01-15 21:08:00 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/854013002/60001
5 years, 11 months ago (2015-01-18 16:06:00 UTC) #8
commit-bot: I haz the power
Presubmit check for 854013002-60001 failed and returned exit status 1. Running presubmit commit checks ...
5 years, 11 months ago (2015-01-18 16:06:06 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/854013002/60001
5 years, 11 months ago (2015-01-18 16:08:00 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://skia.googlesource.com/skia/+/46d36f0e7b709a077c647841eee23bd3efdc4117
5 years, 11 months ago (2015-01-18 16:14:20 UTC) #14
bsalomon
5 years, 11 months ago (2015-01-20 15:19:51 UTC) #15
Message was sent while issue was closed.
https://codereview.chromium.org/854013002/diff/60001/src/gpu/GrGeometryProces...
File src/gpu/GrGeometryProcessor.cpp (right):

https://codereview.chromium.org/854013002/diff/60001/src/gpu/GrGeometryProces...
src/gpu/GrGeometryProcessor.cpp:221: vb->codeAppendf("%s = (%s * %s).xy;",
v.vsOut(), uniName, posVar.c_str());
Is this right? It seems like we know that the vm is likely persp since the GP
emitted a vec3 pos but that the coordxform is non-persp. Don't we have to
homogenize either before or after the xform matrix multiply? Or would we never
get here because varyingType would already be vec3 because we earlier checked
the vm for persp?

Powered by Google App Engine
This is Rietveld 408576698