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 13 years ago by bsalomon
Modified 13 years ago
Reviewers: reed1, TomH
Base URL: http://skia.googlecode.com/svn/trunk/
Comments: 6