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

Issue 54403003: Fix few inconsistencies in handling fixed-function texture coordinate set generation (Closed)

Created:
7 years, 1 month ago by Kimmo Kinnunen
Modified:
7 years, 1 month ago
Reviewers:
Chris Dalton, bsalomon
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Fix two inconsistencies in handling fixed-function texture coordinate set generation Prevent off-by-one bug leaving the texture coordinate set 0 always enabled if it ever was used. This makes the code consistent with its apparent purpose. When enabling / disabling texture coordinate sets, call glPathTexGen only if path rendering is applicable. This makes the functions consistent with GrGpuGL::resetContext. Committed: http://code.google.com/p/skia/source/detail?r=12074

Patch Set 1 #

Total comments: 2

Patch Set 2 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -18 lines) Patch
M src/gpu/gl/GrGLProgram.cpp View 1 1 chunk +4 lines, -1 line 0 comments Download
M src/gpu/gl/GrGpuGL.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/GrGpuGL.cpp View 1 3 chunks +23 lines, -16 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Kimmo Kinnunen
Chris, did I understand the intention of the code correctly? Especially wrt the second issue. ...
7 years, 1 month ago (2013-10-31 12:13:23 UTC) #1
bsalomon
On 2013/10/31 12:13:23, kkinnunen wrote: > Chris, did I understand the intention of the code ...
7 years, 1 month ago (2013-10-31 13:08:54 UTC) #2
Chris Dalton
I like what you've done here. Other than one comment, lgtm. https://codereview.chromium.org/54403003/diff/1/src/gpu/gl/GrGLProgram.cpp File src/gpu/gl/GrGLProgram.cpp (right): ...
7 years, 1 month ago (2013-10-31 17:49:09 UTC) #3
Kimmo Kinnunen
https://codereview.chromium.org/54403003/diff/1/src/gpu/gl/GrGLProgram.cpp File src/gpu/gl/GrGLProgram.cpp (right): https://codereview.chromium.org/54403003/diff/1/src/gpu/gl/GrGLProgram.cpp#newcode244 src/gpu/gl/GrGLProgram.cpp:244: if (fGpu->glCaps().fixedFunctionSupport()) { On 2013/10/31 17:49:09, Chris Dalton wrote: ...
7 years, 1 month ago (2013-11-01 06:32:10 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/kkinnunen@nvidia.com/54403003/70001
7 years, 1 month ago (2013-11-01 06:32:56 UTC) #5
commit-bot: I haz the power
7 years, 1 month ago (2013-11-01 11:54:58 UTC) #6
Message was sent while issue was closed.
Change committed as 12074

Powered by Google App Engine
This is Rietveld 408576698