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

Issue 7322058: Move code that populates program desc to GrGLProgram. Move color and coverage flush to GrGLProgram (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 4 months ago by bsalomon
Modified:
11 years, 4 months ago
Reviewers:
JimVV, robertphillips
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Move code that builds GrGLProgram::Desc to GrGLProgram. Move color and coverage flush to GrGLProgram. Committed: https://code.google.com/p/skia/source/detail?r=7708

Patch Set 1 #

Patch Set 2 : #

Total comments: 13

Patch Set 3 : #

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+360 lines, -332 lines) Patch
M src/gpu/gl/GrGLProgram.h View 1 2 3 4 6 chunks +51 lines, -3 lines 0 comments Download
M src/gpu/gl/GrGLProgram.cpp View 1 2 3 4 chunks +234 lines, -1 line 0 comments Download
M src/gpu/gl/GrGpuGL.h View 7 chunks +5 lines, -19 lines 0 comments Download
M src/gpu/gl/GrGpuGL.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/gpu/gl/GrGpuGL_program.cpp View 7 chunks +11 lines, -244 lines 0 comments Download
M tests/GLProgramsTest.cpp View 1 2 3 4 4 chunks +58 lines, -63 lines 1 comment Download

Messages

Total messages: 7
bsalomon
https://codereview.appspot.com/7322058/diff/2001/src/gpu/gl/GrGLProgram.h File src/gpu/gl/GrGLProgram.h (right): https://codereview.appspot.com/7322058/diff/2001/src/gpu/gl/GrGLProgram.h#newcode270 src/gpu/gl/GrGLProgram.h:270: friend class GrGpuGL; // TODO: remove this by adding ...
11 years, 4 months ago (2013-02-12 18:31:31 UTC) #1
robertphillips
lgtm + suggestions. https://codereview.appspot.com/7322058/diff/2001/src/gpu/gl/GrGLProgram.cpp File src/gpu/gl/GrGLProgram.cpp (right): https://codereview.appspot.com/7322058/diff/2001/src/gpu/gl/GrGLProgram.cpp#newcode73 src/gpu/gl/GrGLProgram.cpp:73: the. -> the https://codereview.appspot.com/7322058/diff/2001/src/gpu/gl/GrGLProgram.cpp#newcode82 src/gpu/gl/GrGLProgram.cpp:82: one ...
11 years, 4 months ago (2013-02-12 19:03:21 UTC) #2
bsalomon
https://codereview.appspot.com/7322058/diff/2001/src/gpu/gl/GrGLProgram.cpp File src/gpu/gl/GrGLProgram.cpp (right): https://codereview.appspot.com/7322058/diff/2001/src/gpu/gl/GrGLProgram.cpp#newcode73 src/gpu/gl/GrGLProgram.cpp:73: On 2013/02/12 19:03:21, robertphillips wrote: > the. -> the ...
11 years, 4 months ago (2013-02-12 19:36:37 UTC) #3
JimVV
https://codereview.appspot.com/7322058/diff/6002/tests/GLProgramsTest.cpp File tests/GLProgramsTest.cpp (right): https://codereview.appspot.com/7322058/diff/6002/tests/GLProgramsTest.cpp#newcode41 tests/GLProgramsTest.cpp:41: fEmitsPointSize = random->nextF() > .5f; Why not use random->nextBool()? ...
11 years, 4 months ago (2013-02-12 19:54:40 UTC) #4
bsalomon
https://codereview.appspot.com/7322058/diff/6002/tests/GLProgramsTest.cpp File tests/GLProgramsTest.cpp (right): https://codereview.appspot.com/7322058/diff/6002/tests/GLProgramsTest.cpp#newcode41 tests/GLProgramsTest.cpp:41: fEmitsPointSize = random->nextF() > .5f; On 2013/02/12 19:54:41, JimVV ...
11 years, 4 months ago (2013-02-12 19:57:54 UTC) #5
bsalomon
https://codereview.appspot.com/7322058/diff/6002/tests/GLProgramsTest.cpp File tests/GLProgramsTest.cpp (right): https://codereview.appspot.com/7322058/diff/6002/tests/GLProgramsTest.cpp#newcode41 tests/GLProgramsTest.cpp:41: fEmitsPointSize = random->nextF() > .5f; On 2013/02/12 19:57:54, bsalomon ...
11 years, 4 months ago (2013-02-12 21:31:53 UTC) #6
JimVV
11 years, 4 months ago (2013-02-12 21:44:39 UTC) #7
LGTM

On 2013/02/12 21:31:53, bsalomon wrote:
> https://codereview.appspot.com/7322058/diff/6002/tests/GLProgramsTest.cpp
> File tests/GLProgramsTest.cpp (right):
> 
>
https://codereview.appspot.com/7322058/diff/6002/tests/GLProgramsTest.cpp#new...
> tests/GLProgramsTest.cpp:41: fEmitsPointSize = random->nextF() > .5f;
> On 2013/02/12 19:57:54, bsalomon wrote:
> > On 2013/02/12 19:54:41, JimVV wrote:
> > > Why not use random->nextBool()?
> > 
> > no good reason... this is copied from really old code that used the now
> > nonexistent class GrRandom which had a nextBool() that alternated
true/false.
> > Will change.
> 
> Done.
> 
>
https://codereview.appspot.com/7322058/diff/6002/tests/GLProgramsTest.cpp#new...
> tests/GLProgramsTest.cpp:48: 
> On 2013/02/12 19:57:54, bsalomon wrote:
> > On 2013/02/12 19:54:41, JimVV wrote:
> > > In the short term the routines above will be less random than using the
old
> > > random_int(), unless you want to try switching to SkMWCRandom.
> > 
> > will switch.
> 
> Done.
> 
> https://codereview.appspot.com/7322058/diff/8002/tests/GLProgramsTest.cpp
> File tests/GLProgramsTest.cpp (right):
> 
>
https://codereview.appspot.com/7322058/diff/8002/tests/GLProgramsTest.cpp#new...
> tests/GLProgramsTest.cpp:28: // TODO: Make GrTestFactory use SkMWCRandom and
> simply pass along param random
> Passing along an SkMWCRandom to the effect factories means changing a whole
lot
> more files. I'll submit that as a follow-up CL.
Sign in to reply to this message.

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