Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(926)

Issue 4517126: Correction of texture domain bounds. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 1 month ago by twiz
Modified:
12 years, 5 months ago
Reviewers:
junov, junov1, reed1
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

The code that flips the orientation of the texture domain was not swizzling the bounds correctly. The shader assumes that the bounds are passed as (t, l, b, r). Inverting or scaling the bounds can invalidate the l < r, t < b constraints. This fix resolves chrome issue: crbug.com/84010 Committed: http://code.google.com/p/skia/source/detail?r=1483

Patch Set 1 #

Total comments: 5

Patch Set 2 : Explicitly exchange 1, 3 during orientation flip. #

Patch Set 3 : Addition of relevant test to SampleTextureDomain.cpp #

Patch Set 4 : Correct arg types to setXYWH. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -11 lines) Patch
M gpu/src/GrGpuGLShaders.cpp View 1 2 2 chunks +10 lines, -8 lines 0 comments Download
M samplecode/SampleTextureDomain.cpp View 1 2 3 2 chunks +27 lines, -3 lines 0 comments Download

Messages

Total messages: 13
twiz
PTAL. Justin, did you add a unit test for the texture domain clamping behaviour? Can ...
13 years, 1 month ago (2011-06-01 20:54:32 UTC) #1
twiz
Sending again, so that skia-review@googlegroups.com picks up the thread. On 2011/06/01 20:54:32, twiz wrote: > ...
13 years, 1 month ago (2011-06-01 20:57:10 UTC) #2
reed1
http://codereview.appspot.com/4517126/diff/1/gpu/src/GrGpuGLShaders.cpp File gpu/src/GrGpuGLShaders.cpp (right): http://codereview.appspot.com/4517126/diff/1/gpu/src/GrGpuGLShaders.cpp#newcode347 gpu/src/GrGpuGLShaders.cpp:347: Should we check/sort the texDom here, before we store ...
13 years, 1 month ago (2011-06-01 21:05:42 UTC) #3
junov1
http://codereview.appspot.com/4517126/diff/1/gpu/src/GrGpuGLShaders.cpp File gpu/src/GrGpuGLShaders.cpp (right): http://codereview.appspot.com/4517126/diff/1/gpu/src/GrGpuGLShaders.cpp#newcode367 gpu/src/GrGpuGLShaders.cpp:367: values[3] = 1.0f - values[3]; I think it would ...
13 years, 1 month ago (2011-06-01 21:23:05 UTC) #4
reed1
On 2011/06/01 21:23:05, junov1 wrote: > http://codereview.appspot.com/4517126/diff/1/gpu/src/GrGpuGLShaders.cpp > File gpu/src/GrGpuGLShaders.cpp (right): > > http://codereview.appspot.com/4517126/diff/1/gpu/src/GrGpuGLShaders.cpp#newcode367 > ...
13 years, 1 month ago (2011-06-01 21:25:39 UTC) #5
junov1
On 2011/06/01 20:54:32, twiz wrote: > PTAL. > > Justin, did you add a unit ...
13 years, 1 month ago (2011-06-01 21:25:42 UTC) #6
twiz
http://codereview.appspot.com/4517126/diff/1/gpu/src/GrGpuGLShaders.cpp File gpu/src/GrGpuGLShaders.cpp (right): http://codereview.appspot.com/4517126/diff/1/gpu/src/GrGpuGLShaders.cpp#newcode347 gpu/src/GrGpuGLShaders.cpp:347: On 2011/06/01 21:05:42, reed1 wrote: > Should we check/sort ...
13 years, 1 month ago (2011-06-01 21:43:39 UTC) #7
twiz
On 2011/06/01 21:43:39, twiz wrote: > http://codereview.appspot.com/4517126/diff/1/gpu/src/GrGpuGLShaders.cpp > File gpu/src/GrGpuGLShaders.cpp (right): > > http://codereview.appspot.com/4517126/diff/1/gpu/src/GrGpuGLShaders.cpp#newcode347 > ...
13 years, 1 month ago (2011-06-01 21:47:59 UTC) #8
junov1
LGTM
13 years, 1 month ago (2011-06-01 23:18:34 UTC) #9
reed1
short, sweet, with comment LGTM
13 years, 1 month ago (2011-06-02 11:53:30 UTC) #10
twiz
On 2011/06/01 21:47:59, twiz wrote: > On 2011/06/01 21:43:39, twiz wrote: > > http://codereview.appspot.com/4517126/diff/1/gpu/src/GrGpuGLShaders.cpp > ...
13 years, 1 month ago (2011-06-02 20:12:43 UTC) #11
reed1
LGTM
13 years, 1 month ago (2011-06-02 20:18:21 UTC) #12
junov
13 years, 1 month ago (2011-06-03 13:27:17 UTC) #13
On 2011/06/02 20:18:21, reed1 wrote:
> LGTM

LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b