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

Issue 5492047: Make GrStencilState a class to enable future optimizations (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years ago by bsalomon
Modified:
13 years ago
Reviewers:
TomH, reed1
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Patch Set 2 : fix comment #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+350 lines, -327 lines) Patch
M src/gpu/GrDefaultPathRenderer.cpp View 2 chunks +79 lines, -86 lines 2 comments Download
M src/gpu/GrGpu.h View 1 chunk +1 line, -2 lines 0 comments Download
M src/gpu/GrGpu.cpp View 2 chunks +15 lines, -16 lines 0 comments Download
M src/gpu/GrGpuGL.cpp View 5 chunks +36 lines, -37 lines 0 comments Download
M src/gpu/GrStencil.h View 1 5 chunks +62 lines, -7 lines 2 comments Download
M src/gpu/GrStencil.cpp View 3 chunks +157 lines, -179 lines 2 comments Download

Messages

Total messages: 4
bsalomon
It's OK to cry.
13 years ago (2011-12-15 17:01:34 UTC) #1
TomH
LGTM otherwise. http://codereview.appspot.com/5492047/diff/1007/src/gpu/GrDefaultPathRenderer.cpp File src/gpu/GrDefaultPathRenderer.cpp (right): http://codereview.appspot.com/5492047/diff/1007/src/gpu/GrDefaultPathRenderer.cpp#newcode44 src/gpu/GrDefaultPathRenderer.cpp:44: GR_STATIC_CONST_SAME_STENCIL_SETTINGS(gEOStencilPass, Eww. http://codereview.appspot.com/5492047/diff/1007/src/gpu/GrStencil.cpp File src/gpu/GrStencil.cpp (right): http://codereview.appspot.com/5492047/diff/1007/src/gpu/GrStencil.cpp#newcode11 ...
13 years ago (2011-12-15 19:18:07 UTC) #2
bsalomon
Closed with r2882 http://codereview.appspot.com/5492047/diff/1007/src/gpu/GrDefaultPathRenderer.cpp File src/gpu/GrDefaultPathRenderer.cpp (right): http://codereview.appspot.com/5492047/diff/1007/src/gpu/GrDefaultPathRenderer.cpp#newcode44 src/gpu/GrDefaultPathRenderer.cpp:44: GR_STATIC_CONST_SAME_STENCIL_SETTINGS(gEOStencilPass, On 2011/12/15 19:18:07, TomH wrote: ...
13 years ago (2011-12-15 20:33:52 UTC) #3
TomH
13 years ago (2011-12-15 20:36:37 UTC) #4
On 2011/12/15 20:33:52, bsalomon wrote:
> http://codereview.appspot.com/5492047/diff/1007/src/gpu/GrStencil.h#newcode240
> src/gpu/GrStencil.h:240: 
> On 2011/12/15 19:18:07, TomH wrote:
> > Can we have a comment to describe why we have this abomination?
> 
> I added this above the struct definition:
> /**
>  * GrStencilState needs to be a class with accessors and setters so that it
>  * can maintain flags related to its current state. However, we also want to
>  * be able to declare pre-made stencil settings at compile time (without
>  * inserting static initializer code). So all the data members are in this
>  * struct. A macro defined after the class can be used to jam an instance of
>  * this struct that is created from an initializer list into a
>  * GrStencilSettings. (We hang our heads in shame.)
>  */

Well said.
Sign in to reply to this message.

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