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: ...
12 years, 11 months 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.
Issue 5492047: Make GrStencilState a class to enable future optimizations
(Closed)
Created 12 years, 11 months ago by bsalomon
Modified 12 years, 11 months ago
Reviewers: reed1, TomH
Base URL: http://skia.googlecode.com/svn/trunk/
Comments: 6